javax.xml.stream.XMLStreamException: Got character[0] expected a valid XML character (Doc ID 1495581.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle WebLogic Server - Version 10.3.5 and later
Information in this document applies to any platform.

Symptoms

On WebLogic 10.3.5 noticing below exception trace when hosting a webservice.The client that is sending the XML is a WebLogic 10.0.1

java.rmi.RemoteException: SOAP Fault:javax.xml.rpc.soap.SOAPFaultException: Unable to parse the incoming request
Detail:
java.io.IOException
at weblogic.xml.domimpl.Loader.load(Loader.java:101)
at weblogic.xml.saaj.SOAPPartImpl.createDocumentFromInputStream(SOAPPartImpl.java:134)
at weblogic.xml.saaj.SOAPMessageImpl.createSOAPPart(SOAPMessageImpl.java:418)
at weblogic.xml.saaj.SOAPMessageImpl.constructMessage(SOAPMessageImpl.java:212)
at weblogic.xml.saaj.SOAPMessageImpl.<init>(SOAPMessageImpl.java:149)
at weblogic.xml.saaj.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:124)
at weblogic.xml.saaj.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:103)
at weblogic.xml.saaj.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:93)
at weblogic.wsee.connection.soap.SoapServerConnection.createSOAPMessage(SoapServerConnection.java:141)
at weblogic.wsee.connection.soap.SoapConnection.receive(SoapConnection.java:107)
at weblogic.wsee.ws.dispatch.server.ConnectionHandler.handleRequest(ConnectionHandler.java:259)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:123)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:85)
at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:257)
at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:156)
... 33 more
Caused by: Error at line:1 col:2 Got character[0] expected a valid XML character
at weblogic.xml.babel.scanner.ScannerState.checkedRead(ScannerState.java:625)
at weblogic.xml.babel.scanner.CharData.read(CharData.java:65)
at weblogic.xml.babel.scanner.Scanner.startState(Scanner.java:296)
at weblogic.xml.babel.scanner.Scanner.scan(Scanner.java:178)
at weblogic.xml.babel.baseparser.BaseParser.prime(BaseParser.java:268)
at weblogic.xml.babel.baseparser.BaseParser.initScanner(BaseParser.java:118)
at weblogic.xml.babel.baseparser.BaseParser.recycle(BaseParser.java:204)
at weblogic.xml.stax.XMLStreamReaderBase.setInput(XMLStreamReaderBase.java:97)
... 36 more
Caused by: javax.xml.stream.XMLStreamException: Got character[0] expected a valid XML character
at weblogic.xml.stax.XMLStreamReaderBase.setInput(XMLStreamReaderBase.java:99)
at weblogic.xml.stax.RecyclingFactory.createXMLStreamReader(RecyclingFactory.java:40)
at weblogic.xml.domimpl.Loader.createXMLStreamReader(Loader.java:66)
at weblogic.xml.domimpl.Loader.load(Loader.java:95)
at weblogic.xml.saaj.SOAPPartImpl.createDocumentFromInputStream(SOAPPartImpl.java:134)
at weblogic.xml.saaj.SOAPMessageImpl.createSOAPPart(SOAPMessageImpl.java:418)
at weblogic.xml.saaj.SOAPMessageImpl.constructMessage(SOAPMessageImpl.java:212)
at weblogic.xml.saaj.SOAPMessageImpl.<init>(SOAPMessageImpl.java:149)
at weblogic.xml.saaj.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:124)
at weblogic.xml.saaj.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:103)
at weblogic.xml.saaj.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:93)
at weblogic.wsee.connection.soap.SoapServerConnection.createSOAPMessage(SoapServerConnection.java:141)
at weblogic.wsee.connection.soap.SoapConnection.receive(SoapConnection.java:107)
at weblogic.wsee.ws.dispatch.server.ConnectionHandler.handleRequest(ConnectionHandler.java:259)
at weblogic.wsee.handler.HandlerIterator.handleRequest(HandlerIterator.java:123)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:85)
at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
....
; nested exception is:
javax.xml.rpc.soap.SOAPFaultException: Unable to parse the incoming request
at com.dstoutput.daweb.webservices.RefServicesPort_Stub.hasActiveSession(RefServicesPort_Stub.java:32)
at com.dstoutput.docdepot.eventobjects.EventBase.validateUserWithDA(Unknown Source)
at com.dstoutput.docdepot.eventobjects.EventBase.validateUser(Unknown Source)
at com.dstoutput.docdepot.eventobjects.EventBase.service(Unknown Source)

 

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms