java.lang.IllegalStateException: Calling [asyncPostProcess()] is not valid for a request with Async state [STARTED]

tomcat-users | Satyen Hingorani | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    "async-supported" problem with Tomcat 7.0.29

    tomcat-users | 4 years ago | Satyen Hingorani
    java.lang.IllegalStateException: Calling [asyncPostProcess()] is not valid for a request with Async state [STARTED]
  2. 0

    "async-supported" problem with Tomcat 7.0.29

    tomcat-users | 4 years ago | Satyen Hingorani
    java.lang.IllegalStateException: Calling [asyncPostProcess()] is not valid for a request with Async state [STARTED]
  3. 0

    Tomcat ERROR: java.lang.IllegalStateException: Calling [asyncPostProcess()] is not valid for a request with Async state [STARTED]

    Stack Overflow | 4 years ago | Androidewbie
    java.lang.IllegalStateException: Calling [asyncPostProcess()] is not valid for a request with Async state [STARTED]
  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 | 4 years ago | Peter De Wachter
    java.lang.IllegalStateException: Calling [asyncPostProcess()] is not valid for a request with Async state [STARTED]
  6. 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 | 4 years ago | Peter De Wachter
    java.lang.IllegalStateException: Calling [asyncPostProcess()] is not valid for a request with Async state [STARTED]

    1 unregistered visitors
    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

      Calling [asyncPostProcess()] is not valid for a request with Async state [STARTED]

      at org.apache.coyote.AsyncStateMachine.asyncPostProcess()
    2. Grizzly HTTP
      NioEndpoint$SocketProcessor.run
      1. org.apache.coyote.AsyncStateMachine.asyncPostProcess(AsyncStateMachine.java:202)
      2. org.apache.coyote.AbstractProcessor.asyncPostProcess(AbstractProcessor.java:116)
      3. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      4. org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1653)
      4 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      3. java.lang.Thread.run(Unknown Source)
      3 frames