NullPointerException from JAX-WS when reading soap response at AbstractProcessor.readFromNextStructure (Doc ID 1273764.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version: 10.3.2 to 10.3.3
Information in this document applies to any platform.

Symptoms

NullPointerException is thrown when reading soap response in JAX-WS webservice. 

Server log shows the following error:

<> <> <> <1291282264610> <BEA-101017> <[ServletContext@28820579[app:03-ecrm-ticketing module:/ecrm-ticketing-internal path:/ecrm-ticketing-internal spec-version:null]] Root cause of ServletException.
java.lang.NullPointerException
at com.sun.xml.stream.buffer.AbstractProcessor.readFromNextStructure(AbstractProcessor.java:177)
at com.sun.xml.stream.buffer.AbstractProcessor.readStructure(AbstractProcessor.java:163)
at com.sun.xml.stream.buffer.AbstractProcessor.readEiiState(AbstractProcessor.java:167)
at com.sun.xml.stream.buffer.stax.StreamReaderBufferProcessor.next(StreamReaderBufferProcessor.java:213)
at com.sun.xml.ws.streaming.XMLStreamReaderUtil.readRest(XMLStreamReaderUtil.java:67)
at com.sun.xml.ws.message.stream.StreamMessage.writePayloadTo(StreamMessage.java:315)
at com.sun.xml.ws.message.stream.StreamMessage.writeEnvelope(StreamMessage.java:343)
at com.sun.xml.ws.message.stream.StreamMessage.writeTo(StreamMessage.java:321)
at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:114)
at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:327)
at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:99)
at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:464)
at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:250)
at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:140)
at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:319)
at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:232)
at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:310)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at weblogic.wsee.jaxws.JAXWSServlet.service(JAXWSServlet.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3594)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

This is not related to malformed content of the soap response.

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