Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3898

Socket Read Timeout - Couldn't parse stream - Runtime Exception - JOnAS 5.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0
    • NeedMoreInfo
    • Configuration
    • None
    • Windows Server 2003 R2, Standard x64 Edition

    • Unknown

    Description

      Hi,

      I'm facing Socket Read Timeout kind of problem concerning CXF services deployed on a JOnAS 5.1.5 application server running with JDK 1.6.
      I'm stuck, and actually no way to get rid of it.
      The problem happens sporadically,thanks for your comments & help :

      The stack :

      java.lang.RuntimeException: Couldn't parse stream.
      at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:816)
      at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(StaxInInterceptor.java:83)
      at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:226)
      at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:88)
      at org.ow2.jonas.ws.cxf.http.JOnASDestination.invoke(JOnASDestination.java:111)
      at org.ow2.jonas.ws.cxf.jaxws.CXFWSEndpoint.invoke(CXFWSEndpoint.java:151)
      at org.ow2.jonas.ws.jaxws.http.servlet.JAXWSServlet.invokeDestination(JAXWSServlet.java:113)
      at org.ow2.jonas.ws.jaxws.http.servlet.JAXWSServlet.doPost(JAXWSServlet.java:75)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:340)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: com.ctc.wstx.exc.WstxIOException: Read timed out
      at com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:548)
      at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:604)
      at com.ctc.wstx.stax.WstxInputFactory.createSR(WstxInputFactory.java:629)
      at com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(WstxInputFactory.java:324)
      at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(StaxUtils.java:814)
      ... 21 more
      Caused by: java.net.SocketTimeoutException: Read timed out
      at java.net.SocketInputStream.socketRead0(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:129)
      at org.apache.coyote.http11.InternalInputBuffer.fill(InternalInputBuffer.java:751)
      at org.apache.coyote.http11.InternalInputBuffer$InputStreamInputBuffer.doRead(InternalInputBuffer.java:781)
      at org.apache.coyote.http11.filters.ChunkedInputFilter.readBytes(ChunkedInputFilter.java:243)
      at org.apache.coyote.http11.filters.ChunkedInputFilter.parseChunkHeader(ChunkedInputFilter.java:273)
      at org.apache.coyote.http11.filters.ChunkedInputFilter.doRead(ChunkedInputFilter.java:132)
      at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:710)
      at org.apache.coyote.Request.doRead(Request.java:428)
      at org.apache.catalina.connector.InputBuffer.realReadBytes(InputBuffer.java:304)
      at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:403)
      at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:327)
      at org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:162)
      at com.ctc.wstx.io.UTF8Reader.loadMore(UTF8Reader.java:362)
      at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:110)
      at com.ctc.wstx.io.ReaderBootstrapper.initialLoad(ReaderBootstrapper.java:245)
      at com.ctc.wstx.io.ReaderBootstrapper.bootstrapInput(ReaderBootstrapper.java:132)
      at com.ctc.wstx.stax.WstxInputFactory.doCreateSR(WstxInputFactory.java:543)
      ... 25 more

      Attachments

        Activity

          People

            Unassigned Unassigned
            warehouse Olivier Hortin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: