Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-76

NPE in AsyncContexImpl.dispatch()

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.0.0.Alpha19
    • Fix Version/s: 1.0.0.Alpha20
    • Component/s: None
    • Labels:
      None

      Description

      I have 2 failing tests in the jbossws-cxf testsuite [1][2]. In both, CXF is expected to deliver asynch response messages. When running the tests, I'm seeing the following exceptions on server log:

      14:45:30,953 ERROR [stderr] (Thread-69) Exception in thread "Thread-69" java.lang.NullPointerException
      14:45:30,955 ERROR [stderr] (Thread-69) 	at io.undertow.servlet.spec.AsyncContextImpl.dispatch(AsyncContextImpl.java:156)
      14:45:30,956 ERROR [stderr] (Thread-69) 	at org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation.redispatch(Servlet3ContinuationProvider.java:108)
      14:45:30,957 ERROR [stderr] (Thread-69) 	at org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation.resume(Servlet3ContinuationProvider.java:113)
      14:45:30,957 ERROR [stderr] (Thread-69) 	at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker$JaxwsServerHandler.handleResponse(AbstractJAXWSMethodInvoker.java:134)
      14:45:30,957 ERROR [stderr] (Thread-69) 	at org.jboss.test.ws.jaxws.samples.asynch.EndpointImpl$1.run(EndpointImpl.java:60)
      

      and

      14:42:36,132 ERROR [org.xnio.nio] (default I/O-3) Task failed on channel thread: java.lang.NullPointerException
      	at io.undertow.servlet.spec.AsyncContextImpl.dispatch(AsyncContextImpl.java:156)
      	at org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation.redispatch(Servlet3ContinuationProvider.java:108)
      	at org.apache.cxf.transport.http.Servlet3ContinuationProvider$Servlet3Continuation.onTimeout(Servlet3ContinuationProvider.java:160)
      	at io.undertow.servlet.spec.AsyncContextImpl.onAsyncTimeout(AsyncContextImpl.java:509)
      	at io.undertow.servlet.spec.AsyncContextImpl.access$400(AsyncContextImpl.java:65)
      	at io.undertow.servlet.spec.AsyncContextImpl$TimeoutTask.run(AsyncContextImpl.java:415)
      	at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:549) [xnio-nio-3.1.0.CR3.jar:3.1.0.CR3]
      	at org.xnio.nio.WorkerThread.run(WorkerThread.java:458) [xnio-nio-3.1.0.CR3.jar:3.1.0.CR3]
      

      [1] http://jbossws.jboss.org:8180/hudson/job/CXF-CORE-AS-8.0.0-SUN-JDK-6/134/testReport/org.jboss.test.ws.jaxws.samples.asynch/AsynchTestCase/
      [2] http://jbossws.jboss.org:8180/hudson/job/CXF-CORE-AS-8.0.0-SUN-JDK-6/134/testReport/org.jboss.test.ws.jaxws.cxf.continuations/ContinuationsTestCase/

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                swd847 Stuart Douglas
                Reporter:
                asoldano Alessio Soldano
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: