[ https://issues.apache.org/jira/browse/AXIS2-2145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rich Scheuerle resolved AXIS2-2145. ----------------------------------- Resolution: Fixed > 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 > Components: jaxws > Reporter: Rich Scheuerle > Assigned To: Rich Scheuerle > Attachments: patch.txt > > > 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. > P.S. This filter is only installed specifically for JAXB marshalling in the > JAXWS code. It is not a general purpose filter. -- 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]