Hi Lillian,
unfortunately Jeanfrancois decided to leave the project. But I'll try
to help you.
Can you pls. share the Comet related code you're using
(GrizzlyCometServlet class)?
Thank you.
WBR,
Alexey.
On Mar 2, 2010, at 17:40 , Lillian Angel wrote:
> Hi,
>
> I am told you are the person I should be contacting for help :)
>
> I am creating a comet servlet for the Jboss Errai project. I am
> using Glassfish V2. I have enabled cometSupport in the domain.xml
> (the jmaki-comet demo works well!), but I keep running into the
> error below. I can't figure out why it is being thrown, as the
> thread invoking the methods all seem to be the same as well.
>
> To reproduce, I have uploaded the war here: http://langel.fedorapeople.org/errai-samples-store-1.1-SNAPSHOT.war
>
> I have modified org/jboss/errai/bus/server/servlet/
> GrizzlyCometServlet.java to print statements for every function it
> hits. Right now the code is pretty rough and most likely incorrect,
> but it is based on the grizzly+comet demo (http://docs.sun.com/app/docs/doc/820-4496/ggrgt?a=view
> ) and should be working a bit better than it is now. See the error
> below.
>
>
> If you have an insight, please share!
>
> Thanks a lot!
> Lillian
>
>
> [#|2010-03-02T11:02:29.447-0500|INFO|sun-appserver2.1|
> javax.enterprise.system.stream.out|
> _ThreadID=21;_ThreadName=httpWorkerThread-8080-0;|
> 14 service !!!!!!!!!!!!!GET|#]
> 15
> 16 [#|2010-03-02T11:02:29.448-0500|INFO|sun-appserver2.1|
> javax.enterprise.system.stream.out|
> _ThreadID=21;_ThreadName=httpWorkerThread-8080-0;|
> 17 doGet !!!!!!!!!!!!|#]
> 18
> 19 [#|2010-03-02T11:02:29.448-0500|INFO|sun-appserver2.1|
> javax.enterprise.system.stream.out|
> _ThreadID=21;_ThreadName=httpWorkerThread-8080-0;| 20
> attach !!!!!!!!!!!!|#]
>
> 21 22 [#|2010-03-02T11:02:29.448-0500|SEVERE|sun-appserver2.1|
> javax.enterprise.system.container.web|_ThreadID=21;_Thre
> adName=httpWorkerThread-8080-0;_RequestID=8e5691c7-2c78-4e1f-80c1-
> cee36fe1f247;|StandardWrapperValve[GrizzlyErraiServlet]: PWC1406:
> Servlet.service() for servlet GrizzlyErraiServlet threw exception
> 23 java.lang.IllegalStateException: Make sure you have enabled Comet
> or make sure the Thread invoking that method i
> s the same as the Servlet.service() Thread.
> 24 at
> com.sun.grizzly.comet.CometContext.<clinit>(CometContext.java:183)
> 25 at
> com.sun.grizzly.comet.CometEngine.register(CometEngine.java:285)
> 26 at
> com.sun.grizzly.comet.CometEngine.register(CometEngine.java:260)
> 27 at
> com.sun.grizzly.comet.CometEngine.register(CometEngine.java:245)
> 28 at
> org
> .jboss
> .errai
> .bus
> .server.servlet.GrizzlyCometServlet.init(GrizzlyCometServlet.java:44)
> 29 at
> org
> .apache
> .catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1100)
> 30 at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:
> 1023)
> 31 at
> org
> .apache
> .catalina.core.StandardContext.loadOnStartup(StandardContext.java:
> 4969)
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>