Eclipse Jetty 8.x is EOL (End of Life) as of November 2014.

https://www.eclipse.org/jetty/documentation/current/what-jetty-version.html

It is also subject to various security issues at this point (as it's not
been kept up to date, a crucial part of public facing server software)

https://www.eclipse.org/jetty/security-reports.html

Please consider upgrading.

Lastly, AsyncContinuation has been dropped entirely in favor of the
standard Servlet 3.0 AsyncContext.

Joakim Erdfelt / [email protected]


On Mon, Jun 15, 2020 at 2:06 AM Gurudatta Pai <[email protected]>
wrote:

> Hi All,
>
> I am facing a problem in Jetty version 8.1.x.
>
> Using `asyncContext = (AsyncContinuation) baseRequest.startAsync()` to
> follow the suspend/resume model which jetty provides. When the request is
> re-dispatched with asyncContext.resume() I get a NullPointerException() in
> the following code of ContextHandlerCollection.java.
>
>
> https://github.com/eclipse/jetty.project/blob/jetty-8.1.x/jetty-server/src/main/java/org/eclipse/jetty/server/handler/ContextHandlerCollection.java#L190
>
> I see that the asyncContext.getContextHandler() method can return a null
> and the null check if handled in above code, but still I see a NPE.
>
> Trace from Arthus
>
> `---ts=2020-06-11
> 22:52:33;thread_name=qtp877855051-143;id=8f;is_daemon=false;priority=5;TCCL=sun.misc.Launcher$AppClassLoader@18b4aac2
>     `---[0.534915ms]
> org.eclipse.jetty.server.handler.ContextHandlerCollection:handle()
>         +---[0.007736ms]
> org.eclipse.jetty.server.handler.ContextHandlerCollection:getHandlers() #183
>         +---[0.006051ms]
> org.eclipse.jetty.server.Request:getAsyncContinuation() #187
>         +---[0.005221ms]
> org.eclipse.jetty.server.AsyncContinuation:isAsync() #188
>         +---[0.263914ms]
> org.eclipse.jetty.server.AsyncContinuation:getContextHandler() #190 [throws
> Exception]
>         `---[0.0016ms] throw:java.lang.NullPointerException() #905
>
>
> Could you please let me understand why NPE is thrown here or am I missing
> something?
>
> Thanks.
> _______________________________________________
> jetty-users mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/jetty-users
>
_______________________________________________
jetty-users mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to