java.lang.IllegalStateException: Not supported.

Java.net JIRA | RobertoGB | 3 years ago
  1. 0

    Create asynchronous resource: {code:java} @GET @Path("/internal-server-error") public void internalServerError (@Suspended final AsyncResponse ar) { new Thread(new Runnable() { @Override public void run() { String result = veryExpensiveOperation(); ar.resume(result); } private String veryExpensiveOperation() { return "Hola"; } }).start(); }; {code} Client request: GET http://localhost:port/app/internal-server-error We get exception traces with error message {color:red}javax.ws.rs.ProcessingException: Attempt to suspend a connection of an asynchronous request failed in the underlying container.{color} {code} 11/12/2013 11:36:21.252 WARN [SOCIAL] org.eclipse.jetty.servlet.ServletHandler - javax.servlet.ServletException: javax.ws.rs.ProcessingException: Attempt to suspend a connection of an asynchronous request failed in the underlying container. at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:375) ~[jersey-container-servlet-core-2.4.1.jar:?] at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:372) ~[jersey-container-servlet-core-2.4.1.jar:?] at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335) ~[jersey-container-servlet-core-2.4.1.jar:?] at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:218) ~[jersey-container-servlet-core-2.4.1.jar:?] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:696) ~[jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1568) ~[jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:66) ~[guice-servlet-3.0.jar:?] at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) ~[guice-servlet-3.0.jar:?] at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) ~[guice-servlet-3.0.jar:?] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1539) ~[jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] at filter.CrossOriginResourceSharingFilter.doFilter(CrossOriginResourceSharingFilter.java:24) ~[classes/:?] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1556) ~[jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:208) ~[javamelody-core-1.47.0.jar:1.47.0] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:181) ~[javamelody-core-1.47.0.jar:1.47.0] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1548) ~[jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:524) [jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:568) [jetty-security-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1110) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:453) [jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1044) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.Server.handle(Server.java:459) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:280) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:229) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.io.AbstractConnection$1.run(AbstractConnection.java:505) [jetty-io-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607) [jetty-util-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536) [jetty-util-9.1.0.v20131115.jar:9.1.0.v20131115] at java.lang.Thread.run(Thread.java:744) [?:1.7.0_45] Caused by: javax.ws.rs.ProcessingException: Attempt to suspend a connection of an asynchronous request failed in the underlying container. at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:331) ~[jersey-server-2.4.1.jar:?] at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:106) ~[jersey-server-2.4.1.jar:?] at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:259) ~[jersey-server-2.4.1.jar:?] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) ~[jersey-common-2.4.1.jar:?] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) ~[jersey-common-2.4.1.jar:?] at org.glassfish.jersey.internal.Errors.process(Errors.java:315) ~[jersey-common-2.4.1.jar:?] at org.glassfish.jersey.internal.Errors.process(Errors.java:297) ~[jersey-common-2.4.1.jar:?] at org.glassfish.jersey.internal.Errors.process(Errors.java:267) ~[jersey-common-2.4.1.jar:?] at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:318) ~[jersey-common-2.4.1.jar:?] at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:236) ~[jersey-server-2.4.1.jar:?] at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:983) ~[jersey-server-2.4.1.jar:?] at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:361) ~[jersey-container-servlet-core-2.4.1.jar:?] ... 31 more {code}

    Java.net JIRA | 3 years ago | RobertoGB
    java.lang.IllegalStateException: Not supported.
  2. 0

    Create asynchronous resource: {code:java} @GET @Path("/internal-server-error") public void internalServerError (@Suspended final AsyncResponse ar) { new Thread(new Runnable() { @Override public void run() { String result = veryExpensiveOperation(); ar.resume(result); } private String veryExpensiveOperation() { return "Hola"; } }).start(); }; {code} Client request: GET http://localhost:port/app/internal-server-error We get exception traces with error message {color:red}javax.ws.rs.ProcessingException: Attempt to suspend a connection of an asynchronous request failed in the underlying container.{color} {code} 11/12/2013 11:36:21.252 WARN [SOCIAL] org.eclipse.jetty.servlet.ServletHandler - javax.servlet.ServletException: javax.ws.rs.ProcessingException: Attempt to suspend a connection of an asynchronous request failed in the underlying container. at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:375) ~[jersey-container-servlet-core-2.4.1.jar:?] at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:372) ~[jersey-container-servlet-core-2.4.1.jar:?] at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:335) ~[jersey-container-servlet-core-2.4.1.jar:?] at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:218) ~[jersey-container-servlet-core-2.4.1.jar:?] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:696) ~[jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1568) ~[jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:66) ~[guice-servlet-3.0.jar:?] at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) ~[guice-servlet-3.0.jar:?] at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) ~[guice-servlet-3.0.jar:?] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1539) ~[jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] at filter.CrossOriginResourceSharingFilter.doFilter(CrossOriginResourceSharingFilter.java:24) ~[classes/:?] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1556) ~[jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:208) ~[javamelody-core-1.47.0.jar:1.47.0] at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:181) ~[javamelody-core-1.47.0.jar:1.47.0] at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1548) ~[jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:524) [jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:568) [jetty-security-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1110) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:453) [jetty-servlet-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1044) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.Server.handle(Server.java:459) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:280) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:229) [jetty-server-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.io.AbstractConnection$1.run(AbstractConnection.java:505) [jetty-io-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607) [jetty-util-9.1.0.v20131115.jar:9.1.0.v20131115] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536) [jetty-util-9.1.0.v20131115.jar:9.1.0.v20131115] at java.lang.Thread.run(Thread.java:744) [?:1.7.0_45] Caused by: javax.ws.rs.ProcessingException: Attempt to suspend a connection of an asynchronous request failed in the underlying container. at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:331) ~[jersey-server-2.4.1.jar:?] at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:106) ~[jersey-server-2.4.1.jar:?] at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:259) ~[jersey-server-2.4.1.jar:?] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) ~[jersey-common-2.4.1.jar:?] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) ~[jersey-common-2.4.1.jar:?] at org.glassfish.jersey.internal.Errors.process(Errors.java:315) ~[jersey-common-2.4.1.jar:?] at org.glassfish.jersey.internal.Errors.process(Errors.java:297) ~[jersey-common-2.4.1.jar:?] at org.glassfish.jersey.internal.Errors.process(Errors.java:267) ~[jersey-common-2.4.1.jar:?] at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:318) ~[jersey-common-2.4.1.jar:?] at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:236) ~[jersey-server-2.4.1.jar:?] at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:983) ~[jersey-server-2.4.1.jar:?] at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:361) ~[jersey-container-servlet-core-2.4.1.jar:?] ... 31 more {code}

    Java.net JIRA | 3 years ago | RobertoGB
    java.lang.IllegalStateException: Not supported.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    6 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

      Not supported.

      at org.apache.catalina.connector.Request.startAsync()
    2. Glassfish Core
      RequestFacade.startAsync
      1. org.apache.catalina.connector.Request.startAsync(Request.java:1678)
      2. org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1031)
      2 frames
    3. JavaServlet
      ServletRequestWrapper.startAsync
      1. javax.servlet.ServletRequestWrapper.startAsync(ServletRequestWrapper.java:379)
      1 frame
    4. jersey-container-servlet
      AsyncContextDelegateProviderImpl$ExtensionImpl.suspend
      1. org.glassfish.jersey.servlet.async.AsyncContextDelegateProviderImpl$ExtensionImpl.suspend(AsyncContextDelegateProviderImpl.java:87)
      1 frame
    5. jersey-container-servlet-core
      ResponseWriter.suspend
      1. org.glassfish.jersey.servlet.internal.ResponseWriter.suspend(ResponseWriter.java:120)
      1 frame
    6. jersey-core-server
      ServerRuntime$1.run
      1. org.glassfish.jersey.server.ServerRuntime$AsyncResponder.suspend(ServerRuntime.java:757)
      2. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:331)
      3. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:106)
      4. org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:259)
      4 frames
    7. Jersey Core
      RequestScope.runInScope
      1. org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
      2. org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
      3. org.glassfish.jersey.internal.Errors.process(Errors.java:315)
      4. org.glassfish.jersey.internal.Errors.process(Errors.java:297)
      5. org.glassfish.jersey.internal.Errors.process(Errors.java:267)
      6. org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:320)
      6 frames
    8. jersey-core-server
      ApplicationHandler.handle
      1. org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:236)
      2. org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1028)
      2 frames
    9. jersey-container-servlet-core
      ServletContainer.service
      1. org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:373)
      2. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:381)
      3. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:344)
      4. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:219)
      4 frames
    10. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames
    11. Tomcat WS
      WsFilter.doFilter
      1. org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      1 frame
    12. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      2 frames