[SWS-434] JibxMarshaller - marshalSaxHandlers Created: 01/Oct/08  Updated: 04/May/12  Resolved: 12/Dec/08

Status: Closed
Project: Spring Web Services
Component/s: OXM
Affects Version/s: 1.5.4
Fix Version/s: 1.5.6

Type: Bug Priority: Major
Reporter: Aschauer Maria Assignee: Tareq Abedrabbo
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File SWS-434.patch    
Issue Links:
is duplicated by SWS-455 Mangled predefined xml 'special chara... Closed
is duplicated by SWS-445 CLONE -JibxMarshaller - marshalSaxHan... Closed


JiBX does not support SAX natively, so there is written to a buffer first:

ByteArrayOutputStream os = new ByteArrayOutputStream();
marshalOutputStream(graph, os);
ByteArrayInputStream is = new ByteArrayInputStream(os.toByteArray());

the character < results in &<; and not in < as expected.


Comment by Arjen Poutsma [ 03/Oct/08 ]

Sadly, this seems to be a JiBX bug, and there is very little I can do about it.

Comment by Aschauer Maria [ 06/Oct/08 ]

I don't think it's a jibx bug because the following code line

marshalOutputStream(graph, os);

writes the correct result to 'os'. later on after the transformation the behavior mentioned above occurs.

Transformer transformer = transformerFactory.newTransformer();
SAXResult saxResult = new SAXResult(contentHandler);
transformer.transform(new StreamSource(is), saxResult);

maybe it's a transformation problem?

Comment by Tareq Abedrabbo [ 12/Dec/08 ]

The problem lies in how AxiomHandler processes predefined entity reference. The patch adds a test for those references in the startEntity method.

Comment by Arjen Poutsma [ 12/Dec/08 ]

Fixed. Thanks for the patch, Tareq!

Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Fri Oct 19 09:45:18 UTC 2018 using JIRA 7.9.2#79002-sha1:3bb15b68ecd99a30eb364c4c1a393359bcad6278.