users@glassfish.java.net

Re: "GRIZZLY0023: Interrupting idle Thread" filling log, web apps not responding

From: Ryan Lubke <ryan.lubke_at_oracle.com>
Date: Tue, 01 May 2012 11:01:47 -0700

On 5/1/12 9:56 AM, Bobby Bissett wrote:
>> I finally sat down tonight to try a simple test case, and my test case
>> works just fine. (You'd think that'd be a good thing!) So I need to
>> figure out what the difference is between my test case and our real
>> app.
> I think what might have been happening is that I was doing the first
> push before the initial requests to load the page were even done.
> Whether or not that's the case, I can now start a sample app and our
> production app with<async-supported>true</async-supported> and they
> start without the problems I saw before.
>
> But now I'm seeing two problems:
>
> 1. My sessions never expire, which we can't have. I know this isn't
> the ICEPush forum, but in case you have an idea about it I wanted to
> mention it.
Perhaps someone from the web container team will chime in here.
>
> 2. I now see exceptions like the one below. Do you know what could be
> causing this? I do have a small sample web app that reproduces it.
> After the error below, then I start seeing other ones, such as
> "java.lang.IllegalStateException: Response already closed" and I have
> to restart the server to get the web app running again.
Could you email me your app/reproduction steps? I'll take a look asap.
>
> Again, this is with GF 3.1.2.
>
> Thanks,
> Bobby
>
>
> [#|2012-05-01T12:43:35.623-0400|WARNING|glassfish3.1.2|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=20;_ThreadName=Thread-3;|StandardWrapperValve[MainServlet]:
> PWC1406: Servlet.service() for servlet MainServlet threw exception
> java.lang.RuntimeException: java.lang.RuntimeException:
> java.lang.IllegalStateException: Not Suspended
> at org.vaadin.artur.icepush.ICEPushServlet.service(ICEPushServlet.java:68)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
> at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1542)
> 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 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
> at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
> at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
> at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
> at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:849)
> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:746)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1045)
> at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:228)
> 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.vaadin.artur.icepush.ICEPushServlet.service(ICEPushServlet.java:62)
> ... 25 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:3991)
> at org.apache.catalina.connector.AsyncContextImpl.complete(AsyncContextImpl.java:242)
> at org.icepush.servlet.AsyncAdaptingServlet$AsyncRequestResponse.respondWith(AsyncAdaptingServlet.java:66)
> at org.icepush.BlockingConnectionServer.respondIfPendingRequest(BlockingConnectionServer.java:131)
> ... 37 more
> |#]