com.sun.xml.ws.protocol.soap.MessageCreationException

tip

It's possible you're trying to write to a connection that's already closed. Another cause for this is that you closed the socket with unread data in the socket receive buffer.


rafaelrafael
tip

This might be caused by unmatching versions of SSL. Java starts normally with SSLv2 and your server might not be able to negotiate. You have to force Java to use SSLv3. See this comment: https://goo.gl/hx0YB3


rafaelrafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • OBIA 7.9.6.3 Installation
    via by 953165,
  • Security Realm AD Issue
    via by the_assface,
  • Unable to load XSD from the MDS
    via by 992723,
  • Configuration of Nodemanager with JSSE( JCEKS Keystore)
    via by Vineet Bedi-Oracle,
    • com.sun.xml.ws.protocol.soap.MessageCreationException: Couldn't create SOAP message due to exception: Unable to create StAX reader or writer at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:292) at com.sun.xml.ws.transport.http.HttpAdapter.decodePacket(HttpAdapter.java:287) at com.sun.xml.ws.transport.http.HttpAdapter.access$500(HttpAdapter.java:102) at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:512) at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:253) at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:141) at weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:172) at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:708) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146) at weblogic.wsee.util.ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:103) at weblogic.wsee.jaxws.HttpServletAdapter$3.run(HttpServletAdapter.java:311) at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:336) at weblogic.servlet.http.AbstractAsyncServlet.service(AbstractAsyncServlet.java:99) at javax.servlet.http.HttpServlet.service(HttpServlet.java:821) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:178) Caused by: com.sun.xml.ws.streaming.XMLReaderException: Unable to create StAX reader or writer at com.sun.xml.ws.api.streaming.XMLStreamReaderFactory$NoLock.doCreate(XMLStreamReaderFactory.java:430) at com.sun.xml.ws.api.streaming.XMLStreamReaderFactory$Woodstox.doCreate(XMLStreamReaderFactory.java:454) at com.sun.xml.ws.api.streaming.XMLStreamReaderFactory.doCreate(XMLStreamReaderFactory.java:219) at com.sun.xml.ws.api.streaming.XMLStreamReaderFactory.create(XMLStreamReaderFactory.java:172) at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:311) at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:135) at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:287) ... 22 more Caused by: com.ctc.wstx.exc.WstxIOException: Connection reset at com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:536) at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:585) at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:641) at com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:344) at com.sun.xml.ws.api.streaming.XMLStreamReaderFactory$NoLock.doCreate(XMLStreamReaderFactory.java:428) at com.sun.xml.ws.api.streaming.XMLStreamReaderFactory$Woodstox.doCreate(XMLStreamReaderFactory.java:454) at com.sun.xml.ws.api.streaming.XMLStreamReaderFactory.doCreate(XMLStreamReaderFactory.java:219) at com.sun.xml.ws.api.streaming.XMLStreamReaderFactory.create(XMLStreamReaderFactory.java:172) at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:311) at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:136) ... 23 more Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read(SocketInputStream.java:168) at weblogic.utils.io.ChunkedInputStream.read(ChunkedInputStream.java:159) at java.io.InputStream.read(InputStream.java:85) at com.certicom.tls.record.ReadHandler.readFragment(Unknown Source) at com.certicom.tls.record.ReadHandler.readRecord(Unknown Source) at com.certicom.tls.record.ReadHandler.read(Unknown Source) at com.certicom.io.InputSSLIOStreamWrapper.read(Unknown Source) at weblogic.servlet.internal.PostInputStream.read(PostInputStream.java:177) at weblogic.servlet.internal.ServletInputStreamImpl.read(ServletInputStreamImpl.java:228) at weblogic.wsee.jaxws.HttpServletAdapter$RequestResponseWrapper$InputStreamWrapper.read(HttpServletAdapter.java:571) at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264) at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:307) at java.io.InputStreamReader.read(InputStreamReader.java:167) at com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:250) at com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:133) at com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:531) ... 32 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    263 more bugmates