0 Replies Latest reply on Aug 13, 2008 5:36 AM by Xinhua Gu

    Need help: SAXParseException: An invalid XML character (Unic

    Xinhua Gu Newbie


      I encounter an exception by requesting my soap application.

      Caused by: java.io.IOException: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1f) was found in the element content of the document
       at org.jboss.wsf.common.DOMUtils.parse(DOMUtils.java:160)
       at org.jboss.wsf.common.DOMUtils.parse(DOMUtils.java:141)
       at org.jboss.ws.core.soap.SOAPElementWriter.writeElement(SOAPElementWriter.java:117)
       ... 26 more

      i think , it is because some utf-8 chars in soap xml can not be handled correctly. I have tried -Dfile.encoding=utf-8 in jvm but it does not help.

      i use jbossws-native-3.0.2.GA + jbossAS4.2.2.GA+sun1.5 jdk

      How can i fix it ? Can someone help?

      Thanks in advance!