JAX-WS Intermittent JAXB Marshalling errors
-------------------------------------------
Key: AXIS2-2145
URL: https://issues.apache.org/jira/browse/AXIS2-2145
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Reporter: Rich Scheuerle
The JAXB Marshaller code is generating bad xml in intermittent situations.
Specifically, an xmlns:xmlns is being written in the root element of the JAXB
emission.
Stack Dump = org.apache.axis2.AxisFault: javax.xml.stream.XMLStreamException:
The namespace prefix "xmlns" must not be declared.; nested exception is:
org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException:
The namespace prefix "xmlns" must not be declared.
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:284)
Solution Proposal:
Current code:
JAXB Marshaller ----> Woodstox XMLStreamWriter
New code:
JAXB Marshaller -----> XMLStreamWriterFilter ----> Woodstox XMLStreamWriter
This filter will detect the erroneous xmlns:xmlns and swallow it (with logs).
We can use the logged information to open a formal defect against JAXB.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]