Tuesday, August 4, 2009

Caused by: javax.xml.stream.XMLStreamException: Underlying stream encoding UTF8 and input paramter for writeStartDocument() method UTF-8 do not match.

Caused by: javax.xml.stream.XMLStreamException: Underlying stream encoding UTF8 and input paramter for writeStartDocument() method UTF-8 do not match.
at com.sun.xml.stream.writers.XMLStreamWriterImpl.writeStartDocument(XMLStreamWriterImpl.java:1187)
at org.apache.axiom.om.impl.llom.OMDocumentImpl.internalSerialize(OMDocumentImpl.java:397)
at org.apache.axiom.om.impl.llom.OMDocumentImpl.internalSerialize(OMDocumentImpl.java:324)
at org.apache.abdera.parser.stax.FOMDocument.writeTo(FOMDocument.java:193)
... 32 more


SOLUTION to add the exclusion to the dependency.

<exclusions>
<exclusion>
<groupId>com.sun.xml.stream</groupId>
<artifactId>sjsxp</artifactId>
</exclusion>
</exclusions>

2 comments:

Venkatesh said...

This is the only post I found on the issue. It was big headache for me also. thanks a ton.

Venkatesh said...

worked like a charm. thanx