ICEpush
  1. ICEpush
  2. PUSH-129

Servlet 3.0's ARP support is broken on GlassFish Server 3.1

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 3.1
    • Component/s: Push Library
    • Labels:
      None
    • Environment:
      GlassFish Server 3.1, Component Showcase

      Description

      Using Component Showcase configured to utilize Servlet 3.0's ARP deployed to Tomcat 7 is broken. Once the blocking connection is established, things eventually go awry and the application stops functioning completely.

      [#|2011-04-20T22:25:24.611+0200|WARNING|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=139;_ThreadName=Thread-1;|StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception
      java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalStateException: Not Suspended
      at org.icefaces.impl.push.servlet.ICEpushResourceHandler$ICEpushResourceHandlerImpl.handleResourceRequest(ICEpushResourceHandler.java:226)
      at org.icefaces.impl.push.servlet.ICEpushResourceHandler.handleResourceRequest(ICEpushResourceHandler.java:110)
      at org.icefaces.impl.push.DynamicResourceDispatcher.handleResourceRequest(DynamicResourceDispatcher.java:81)
      at org.icefaces.application.ResourceRegistry.handleResourceRequest(ResourceRegistry.java:85)
      at org.icefaces.impl.application.WindowScopeManager.handleResourceRequest(WindowScopeManager.java:165)
      at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:125)
      at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:125)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:407)
      at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
      at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      at java.lang.Thread.run(Thread.java:680)
      Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Not Suspended
      at org.icepush.BlockingConnectionServer.respondIfPendingRequest(BlockingConnectionServer.java:133)
      at org.icepush.BlockingConnectionServer.access$700(BlockingConnectionServer.java:41)
      at org.icepush.BlockingConnectionServer$RunningServer.service(BlockingConnectionServer.java:198)
      at org.icepush.BlockingConnectionServer.service(BlockingConnectionServer.java:76)
      at org.icepush.ConfigurationServer.service(ConfigurationServer.java:87)
      at org.icepush.servlet.AsyncAdaptingServlet.service(AsyncAdaptingServlet.java:47)
      at org.icepush.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:51)
      at org.icepush.servlet.PathDispatcher.service(PathDispatcher.java:45)
      at org.icepush.servlet.BrowserDispatcher$BrowserEntry.service(BrowserDispatcher.java:111)
      at org.icepush.servlet.BrowserDispatcher.service(BrowserDispatcher.java:50)
      at org.icepush.servlet.PathDispatcher.service(PathDispatcher.java:45)
      at org.icepush.servlet.MainServlet.service(MainServlet.java:72)
      at org.icefaces.impl.push.servlet.ICEpushResourceHandler$ICEpushResourceHandlerImpl.handleResourceRequest(ICEpushResourceHandler.java:224)
      ... 32 more
      Caused by: java.lang.IllegalStateException: Not Suspended
      at com.sun.grizzly.tcp.Response.resume(Response.java:768)
      at org.apache.catalina.connector.Request.asyncComplete(Request.java:3982)
      at org.apache.catalina.connector.AsyncContextImpl.complete(AsyncContextImpl.java:252)
      at org.icepush.servlet.AsyncAdaptingServlet$AsyncRequestResponse.respondWith(AsyncAdaptingServlet.java:66)
      at org.icepush.BlockingConnectionServer.respondIfPendingRequest(BlockingConnectionServer.java:131)
      ... 44 more
      |#]

      [#|2011-04-20T22:27:25.350+0200|WARNING|glassfish3.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=143;_ThreadName=Thread-1;|StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception
      java.lang.RuntimeException: java.lang.RuntimeException: java.lang.IllegalStateException: Not Suspended
      at org.icefaces.impl.push.servlet.ICEpushResourceHandler$ICEpushResourceHandlerImpl.handleResourceRequest(ICEpushResourceHandler.java:226)
      at org.icefaces.impl.push.servlet.ICEpushResourceHandler.handleResourceRequest(ICEpushResourceHandler.java:110)
      at org.icefaces.impl.push.DynamicResourceDispatcher.handleResourceRequest(DynamicResourceDispatcher.java:81)
      at org.icefaces.application.ResourceRegistry.handleResourceRequest(ResourceRegistry.java:85)
      at org.icefaces.impl.application.WindowScopeManager.handleResourceRequest(WindowScopeManager.java:165)
      at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:125)
      at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:125)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:407)
      at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1534)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
      at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
      at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
      at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:326)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:227)
      at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:170)
      at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
      at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
      at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
      at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
      at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
      at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
      at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
      at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
      at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
      at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
      at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
      at java.lang.Thread.run(Thread.java:680)
      Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Not Suspended
      at org.icepush.BlockingConnectionServer.respondIfPendingRequest(BlockingConnectionServer.java:133)
      at org.icepush.BlockingConnectionServer.access$700(BlockingConnectionServer.java:41)
      at org.icepush.BlockingConnectionServer$RunningServer.service(BlockingConnectionServer.java:198)
      at org.icepush.BlockingConnectionServer.service(BlockingConnectionServer.java:76)
      at org.icepush.ConfigurationServer.service(ConfigurationServer.java:87)
      at org.icepush.servlet.AsyncAdaptingServlet.service(AsyncAdaptingServlet.java:47)
      at org.icepush.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:51)
      at org.icepush.servlet.PathDispatcher.service(PathDispatcher.java:45)
      at org.icepush.servlet.BrowserDispatcher$BrowserEntry.service(BrowserDispatcher.java:111)
      at org.icepush.servlet.BrowserDispatcher.service(BrowserDispatcher.java:50)
      at org.icepush.servlet.PathDispatcher.service(PathDispatcher.java:45)
      at org.icepush.servlet.MainServlet.service(MainServlet.java:72)
      at org.icefaces.impl.push.servlet.ICEpushResourceHandler$ICEpushResourceHandlerImpl.handleResourceRequest(ICEpushResourceHandler.java:224)
      ... 32 more
      Caused by: java.lang.IllegalStateException: Not Suspended
      at com.sun.grizzly.tcp.Response.resume(Response.java:768)
      at org.apache.catalina.connector.Request.asyncComplete(Request.java:3982)
      at org.apache.catalina.connector.AsyncContextImpl.complete(AsyncContextImpl.java:252)
      at org.icepush.servlet.AsyncAdaptingServlet$AsyncRequestResponse.respondWith(AsyncAdaptingServlet.java:66)
      at org.icepush.BlockingConnectionServer.respondIfPendingRequest(BlockingConnectionServer.java:131)
      ... 44 more
      |#]

        Activity

        Hide
        Ted Goddard added a comment -

        Repeat testing with GlassFish 3.1.2.

        Show
        Ted Goddard added a comment - Repeat testing with GlassFish 3.1.2.
        Hide
        Jack Van Ooststroom added a comment -

        Re-testing on GlassFish Server 3.1.2 was successful. Marking this one as FIXED.

        Show
        Jack Van Ooststroom added a comment - Re-testing on GlassFish Server 3.1.2 was successful. Marking this one as FIXED.

          People

          • Assignee:
            Jack Van Ooststroom
            Reporter:
            Jack Van Ooststroom
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: