Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Fwd: IllegalStateException when using asynchronous servlet

Yes, I removed theĀ context.complete() from onError, but still have the same issue.

The problem is I suppose onError should not be called, I do not find any reason why the code goes to onError path.

On Thu, Sep 10, 2015 at 7:50 AM, Simone Bordet <sbordet@xxxxxxxxxxx> wrote:

On Thu, Sep 10, 2015 at 12:34 AM, Xiaodong Wang <xiaodongw79@xxxxxxxxx> wrote:
> Hi Joakim,
> Thanks for your response, I changed the code as you suggested but it still
> does not work. But it works in Tomcat.

Have you removed the call to context.complete() from onError() ?

> This is the error I got.
> [qtp990355670-43] WARN org.eclipse.jetty.util.thread.QueuedThreadPool -
> java.lang.IllegalStateException
> at
> org.eclipse.jetty.server.HttpOutput$AsyncICB.onCompleteSuccess(

We can certainly handle this better, perhaps with a no-op.
I'll look into it.

Simone Bordet
Developer advice, training, services and support
from the Jetty & CometD experts.
jetty-users mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top