users@grizzly.java.net

Comet Hidden Servlet example - Error

From: Nachiappan Veerappan Nachiappan <Nachiappan.Veerappan_at_Sun.COM>
Date: Wed, 10 Jun 2009 16:51:57 -0700

Hello,

I was trying to deploy and run the hidden servlet comet example on
glassfish v3 server. I downloaded the grizzly-comet-hidden-1.9.9.war
file from the maven repository. After i deployed the web application, i
navigated to the URL in two different browser (firefox and seamonkey)
and press the click button few times. I am getting the following error
message in the log file. I don't see the value of the counter on the web
page. Can anyone tell me what may be the problem?

Thanks,
Nachiappan

[#|2009-06-10T16:45:32.405-0700|SEVERE|glassfish|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=23;_ThreadName=Thread-1;|StandardWrapperValve[HiddenCometServlet]:
PWC1406: Servlet.service() for servlet HiddenCometServlet threw exception
java.lang.IllegalStateException: PWC1227: Cannot forward after response
has been committed
    at
org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:389)
    at
org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:367)
    at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:315)
    at
com.sun.grizzly.samples.comet.HiddenCometServlet.doPost(HiddenCometServlet.java:139)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
    at
org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1437)
    at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:293)
    at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:187)
    at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:647)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:97)
    at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:85)
    at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:185)
    at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:353)
    at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:249)
    at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:203)
    at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:746)
    at
com.sun.grizzly.comet.CometEngine.executeServlet(CometEngine.java:481)
    at com.sun.grizzly.comet.CometEngine.handle(CometEngine.java:350)
    at
com.sun.grizzly.comet.CometAsyncFilter.doFilter(CometAsyncFilter.java:84)
    at
com.sun.grizzly.arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:147)
    at
com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:126)
    at
com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:88)
    at com.sun.grizzly.http.TaskBase.run(TaskBase.java:189)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
    at java.lang.Thread.run(Thread.java:637)
|#]