java.lang.IllegalStateException: state=ASYNC

GitHub | poutsma | 5 months ago
  1. 0

    "Slow" client causes IllegalStateException

    GitHub | 5 months ago | poutsma
    java.lang.IllegalStateException: state=ASYNC
  2. 0

    #12177 (Infinite exception loop when using push with multiple browser tabs open) – Vaadin

    vaadin.com | 8 months ago
    java.lang.IllegalStateException: Calling [asyncComplete()] is not valid for a request with Async state [COMPLETING]
  3. 0

    java.lang.IllegalStateException: Calling [asyncComplete()]

    Apache Bugzilla | 5 years ago | zhh200910
    java.lang.IllegalStateException: Calling [asyncComplete()] is not valid for a request with Async state [DISPATCHED]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    I'm using Spring 3.2.3 and Tomcat 7.0.41 with the NIO backend. I'm (still) experiencing problems with timeout handling of DeferredResult. (See SPR-10485 for an earlier bug.) Consider the following code: {code} @Controller public class TestController { @RequestMapping(value="/test") @ResponseBody public DeferredResult<String> test() { return new DeferredResult<String>(50L, "timeout\n"); } } {code} Now, create 100 threads which send this request in a loop: (The "parallel" command here is GNU parallel.) {code} yes 'curl --silent http://localhost:8080/test' | parallel -j100 {code} Some of these requests will fail and Tomcat will log the this exception: {code} jul 01, 2013 11:42:38 AM org.apache.coyote.AbstractProtocol$AbstractConnectionHandler process SEVERE: Error reading request, ignored java.lang.IllegalStateException: Calling [asyncPostProcess()] is not valid for a request with Async state [STARTED] at org.apache.coyote.AsyncStateMachine.asyncPostProcess(AsyncStateMachine.java:204) at org.apache.coyote.AbstractProcessor.asyncPostProcess(AbstractProcessor.java:116) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:593) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1686) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:724) {code}

    Spring JIRA | 3 years ago | Peter De Wachter
    java.lang.IllegalStateException: Calling [asyncPostProcess()] is not valid for a request with Async state [STARTED]
  6. 0

    Client disconnect causes java.lang.IllegalStateException when using WriteListener

    Apache Bugzilla | 9 months ago | jes
    java.lang.IllegalStateException: Calling [asyncError()] is not valid for a request with Async state [MUST_COMPLETE]

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalStateException

      state=ASYNC

      at org.eclipse.jetty.server.HttpOutput.run()
    2. Jetty
      SelectChannelEndPoint$2.run
      1. org.eclipse.jetty.server.HttpOutput.run(HttpOutput.java:944)
      2. org.eclipse.jetty.server.handler.ContextHandler.handle(ContextHandler.java:1286)
      3. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:427)
      4. org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253)
      5. org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
      6. org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
      7. org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
      7 frames
    3. org.eclipse.jetty
      ExecuteProduceConsume.run
      1. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
      2. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
      3. org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
      3 frames
    4. Jetty
      QueuedThreadPool$2.run
      1. org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
      2. org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
      2 frames
    5. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame