Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8393 Umbrella issue to address fixing flaky tests
  3. CXF-8650

Fix org.apache.cxf.systest.jaxrs.JAXRSContinuationsServlet3Test.testSuspendSetTimeout

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.5.0, 3.4.5
    • 3.4.6, 3.5.1, 4.0.0
    • None
    • None
    • Unknown

    Description

      Error Message<html>
      <head>
      <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
      <title>Error 500 java.lang.NullPointerException: Cannot invoke &quot;javax.ws.rs.container.AsyncResponse.setTimeout(long, java.util.concurrent.TimeUnit)&quot; because &quot;org.apache.cxf.systest.jaxrs.AsyncResource2.asyncResponse&quot; is null</title>
      </head>
      <body><h2>HTTP ERROR 500 java.lang.NullPointerException: Cannot invoke &quot;javax.ws.rs.container.AsyncResponse.setTimeout(long, java.util.concurrent.TimeUnit)&quot; because &quot;org.apache.cxf.systest.jaxrs.AsyncResource2.asyncResponse&quot; is null</h2>
      <table>
      <tr><th>URI:</th><td>/async/resource2/setTimeOut</td></tr>
      <tr><th>STATUS:</th><td>500</td></tr>
      <tr><th>MESSAGE:</th><td>java.lang.NullPointerException: Cannot invoke &quot;javax.ws.rs.container.AsyncResponse.setTimeout(long, java.util.concurrent.TimeUnit)&quot; because &quot;org.apache.cxf.systest.jaxrs.AsyncResource2.asyncResponse&quot; is null</td></tr>
      <tr><th>SERVLET:</th><td>CXFServlet</td></tr>
      <tr><th>CAUSED BY:</th><td>java.lang.NullPointerException: Cannot invoke &quot;javax.ws.rs.container.AsyncResponse.setTimeout(long, java.util.concurrent.TimeUnit)&quot; because &quot;org.apache.cxf.systest.jaxrs.AsyncResource2.asyncResponse&quot; is null</td></tr>
      </table>
      <h3>Caused by:</h3><pre>java.lang.NullPointerException: Cannot invoke &quot;javax.ws.rs.container.AsyncResponse.setTimeout(long, java.util.concurrent.TimeUnit)&quot; because &quot;org.apache.cxf.systest.jaxrs.AsyncResource2.asyncResponse&quot; is null
       at org.apache.cxf.systest.jaxrs.AsyncResource2.setTimeOut(AsyncResource2.java:41)
       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
       at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
       at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.base/java.lang.reflect.Method.invoke(Method.java:568)
       at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179)
       at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
       at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:201)
       at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:104)
       at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)
       at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)
       at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
       at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
       at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265)
       at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)
       at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)
       at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
       at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:225)
       at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:304)
       at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:222)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
       at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:279)
       at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
       at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:550)
       at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
       at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600)
       at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
       at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
       at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
       at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
       at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
       at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
       at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
       at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
       at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
       at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
       at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
       at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
       at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
       at org.eclipse.jetty.server.Server.handle(Server.java:516)
       at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:400)
       at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:645)
       at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:392)
       at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
       at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
       at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
       at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
       at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
       at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
       at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
       at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
       at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)
       at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
       at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
       at java.base/java.lang.Thread.run(Thread.java:833)
      </pre>
      <hr/><a href="https://eclipse.org/jetty">Powered by Jetty:// 9.4.44.v20210927</a><hr/>
      
      </body>
      </html>
       expected:<200> but was:<500>Stacktracejava.lang.AssertionError: 
      <html>
      <head>
      <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
      <title>Error 500 java.lang.NullPointerException: Cannot invoke &quot;javax.ws.rs.container.AsyncResponse.setTimeout(long, java.util.concurrent.TimeUnit)&quot; because &quot;org.apache.cxf.systest.jaxrs.AsyncResource2.asyncResponse&quot; is null</title>
      </head>
      <body><h2>HTTP ERROR 500 java.lang.NullPointerException: Cannot invoke &quot;javax.ws.rs.container.AsyncResponse.setTimeout(long, java.util.concurrent.TimeUnit)&quot; because &quot;org.apache.cxf.systest.jaxrs.AsyncResource2.asyncResponse&quot; is null</h2>
      <table>
      <tr><th>URI:</th><td>/async/resource2/setTimeOut</td></tr>
      <tr><th>STATUS:</th><td>500</td></tr>
      <tr><th>MESSAGE:</th><td>java.lang.NullPointerException: Cannot invoke &quot;javax.ws.rs.container.AsyncResponse.setTimeout(long, java.util.concurrent.TimeUnit)&quot; because &quot;org.apache.cxf.systest.jaxrs.AsyncResource2.asyncResponse&quot; is null</td></tr>
      <tr><th>SERVLET:</th><td>CXFServlet</td></tr>
      <tr><th>CAUSED BY:</th><td>java.lang.NullPointerException: Cannot invoke &quot;javax.ws.rs.container.AsyncResponse.setTimeout(long, java.util.concurrent.TimeUnit)&quot; because &quot;org.apache.cxf.systest.jaxrs.AsyncResource2.asyncResponse&quot; is null</td></tr>
      </table>
      <h3>Caused by:</h3><pre>java.lang.NullPointerException: Cannot invoke &quot;javax.ws.rs.container.AsyncResponse.setTimeout(long, java.util.concurrent.TimeUnit)&quot; because &quot;org.apache.cxf.systest.jaxrs.AsyncResource2.asyncResponse&quot; is null
      	at org.apache.cxf.systest.jaxrs.AsyncResource2.setTimeOut(AsyncResource2.java:41)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      	at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179)
      	at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
      	at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:201)
      	at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:104)
      	at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)
      	at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)
      	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
      	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
      	at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265)
      	at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)
      	at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)
      	at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
      	at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:225)
      	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:304)
      	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:222)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
      	at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:279)
      	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:550)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624)
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1434)
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594)
      	at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1349)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
      	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
      	at org.eclipse.jetty.server.Server.handle(Server.java:516)
      	at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:400)
      	at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:645)
      	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:392)
      	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277)
      	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
      	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105)
      	at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
      	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338)
      	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315)
      	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173)
      	at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131)
      	at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034)
      	at java.base/java.lang.Thread.run(Thread.java:833)
      </pre>
      <hr/><a href="https://eclipse.org/jetty">Powered by Jetty:// 9.4.44.v20210927</a><hr/>
      
      </body>
      </html>
       expected:<200> but was:<500>
      	at org.apache.cxf.systest.jaxrs.JAXRSContinuationsServlet3Test.assertString(JAXRSContinuationsServlet3Test.java:104)
      	at org.apache.cxf.systest.jaxrs.JAXRSContinuationsServlet3Test.testSuspendSetTimeout(JAXRSContinuationsServlet3Test.java:96)
       

      Attachments

        Issue Links

          Activity

            People

              reta Andriy Redko
              reta Andriy Redko
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: