Atmosphere IllegalStateException

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Atmosphere IllegalStateException

Marco Abderhalden
Hi,

I'am getting the following IllegalStateException using the event push
plugin. The code worked fine 2 weeks ago. Now perhaps  because of
getting a newer atmosphere-snapshot-version this error occurs.

2013-05-16 21:10:32,461 [http-nio-9090-exec-1] ERROR
[/grailsTodo].[MeteorServlet]  - Servlet.service() for servlet
[MeteorServlet] in context with path [/grailsEventTest] threw exception
java.lang.IllegalStateException: Not supported.
     at
org.atmosphere.cpr.AtmosphereRequest.startAsync(AtmosphereRequest.java:594)
     at
org.atmosphere.container.Servlet30CometSupport.suspend(Servlet30CometSupport.java:138)
     at
org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:104)
     at
org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket.doService(Tomcat7Servlet30SupportWithWebSocket.java:65)
     at
org.atmosphere.container.TomcatWebSocketUtil.doService(TomcatWebSocketUtil.java:87)
     at
org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket.service(Tomcat7Servlet30SupportWithWebSocket.java:61)
     at
org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:1550)
     at
org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:176)
     at
org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:162)
     at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
     at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
     at java.lang.Thread.run(Thread.java:722)
2013-05-16 21:10:37,495 [http-nio-9090-exec-2] ERROR
cpr.AtmosphereFramework  - AtmosphereFramework exception
java.lang.IllegalStateException: Not supported.
     at
org.atmosphere.cpr.AtmosphereRequest.startAsync(AtmosphereRequest.java:594)
     at
org.atmosphere.container.Servlet30CometSupport.suspend(Servlet30CometSupport.java:138)
     at
org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:104)
     at
org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket.doService(Tomcat7Servlet30SupportWithWebSocket.java:65)
     at
org.atmosphere.container.TomcatWebSocketUtil.doService(TomcatWebSocketUtil.java:87)
     at
org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket.service(Tomcat7Servlet30SupportWithWebSocket.java:61)
     at
org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:1550)
     at
org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:176)
     at
org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:162)
     at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
     at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
     at java.lang.Thread.run(Thread.java:722)


Does somebody have an idea how to locate the reason of this error? The
connection from groovy on the server to the browser is ok. I can sent
event based messages to the browser, but not vice versa.

Regards
- Marco

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: Atmosphere IllegalStateException

smaldini
is your grails app servlet 3 ?


On Thu, May 16, 2013 at 8:18 PM, Marco Abderhalden <[hidden email]> wrote:
Hi,

I'am getting the following IllegalStateException using the event push plugin. The code worked fine 2 weeks ago. Now perhaps  because of getting a newer atmosphere-snapshot-version this error occurs.

2013-05-16 21:10:32,461 [http-nio-9090-exec-1] ERROR [/grailsTodo].[MeteorServlet]  - Servlet.service() for servlet [MeteorServlet] in context with path [/grailsEventTest] threw exception
java.lang.IllegalStateException: Not supported.
    at org.atmosphere.cpr.AtmosphereRequest.startAsync(AtmosphereRequest.java:594)
    at org.atmosphere.container.Servlet30CometSupport.suspend(Servlet30CometSupport.java:138)
    at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:104)
    at org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket.doService(Tomcat7Servlet30SupportWithWebSocket.java:65)
    at org.atmosphere.container.TomcatWebSocketUtil.doService(TomcatWebSocketUtil.java:87)
    at org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket.service(Tomcat7Servlet30SupportWithWebSocket.java:61)
    at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:1550)
    at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:176)
    at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:162)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)
2013-05-16 21:10:37,495 [http-nio-9090-exec-2] ERROR cpr.AtmosphereFramework  - AtmosphereFramework exception
java.lang.IllegalStateException: Not supported.
    at org.atmosphere.cpr.AtmosphereRequest.startAsync(AtmosphereRequest.java:594)
    at org.atmosphere.container.Servlet30CometSupport.suspend(Servlet30CometSupport.java:138)
    at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:104)
    at org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket.doService(Tomcat7Servlet30SupportWithWebSocket.java:65)
    at org.atmosphere.container.TomcatWebSocketUtil.doService(TomcatWebSocketUtil.java:87)
    at org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket.service(Tomcat7Servlet30SupportWithWebSocket.java:61)
    at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:1550)
    at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:176)
    at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:162)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)


Does somebody have an idea how to locate the reason of this error? The connection from groovy on the server to the browser is ok. I can sent event based messages to the browser, but not vice versa.

Regards
- Marco

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
Stéphane
--

Reply | Threaded
Open this post in threaded view
|

Re: Atmosphere IllegalStateException

Marco Abderhalden
We use grails 2.2.1. In BuildConfig.groovy we have the line grails.servlet.version = "2.5".



Am 17.05.2013 02:10, schrieb Stephane Maldini:
is your grails app servlet 3 ?


On Thu, May 16, 2013 at 8:18 PM, Marco Abderhalden <[hidden email]> wrote:
Hi,

I'am getting the following IllegalStateException using the event push plugin. The code worked fine 2 weeks ago. Now perhaps  because of getting a newer atmosphere-snapshot-version this error occurs.

2013-05-16 21:10:32,461 [http-nio-9090-exec-1] ERROR [/grailsTodo].[MeteorServlet]  - Servlet.service() for servlet [MeteorServlet] in context with path [/grailsEventTest] threw exception
java.lang.IllegalStateException: Not supported.
    at org.atmosphere.cpr.AtmosphereRequest.startAsync(AtmosphereRequest.java:594)
    at org.atmosphere.container.Servlet30CometSupport.suspend(Servlet30CometSupport.java:138)
    at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:104)
    at org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket.doService(Tomcat7Servlet30SupportWithWebSocket.java:65)
    at org.atmosphere.container.TomcatWebSocketUtil.doService(TomcatWebSocketUtil.java:87)
    at org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket.service(Tomcat7Servlet30SupportWithWebSocket.java:61)
    at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:1550)
    at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:176)
    at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:162)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)
2013-05-16 21:10:37,495 [http-nio-9090-exec-2] ERROR cpr.AtmosphereFramework  - AtmosphereFramework exception
java.lang.IllegalStateException: Not supported.
    at org.atmosphere.cpr.AtmosphereRequest.startAsync(AtmosphereRequest.java:594)
    at org.atmosphere.container.Servlet30CometSupport.suspend(Servlet30CometSupport.java:138)
    at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:104)
    at org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket.doService(Tomcat7Servlet30SupportWithWebSocket.java:65)
    at org.atmosphere.container.TomcatWebSocketUtil.doService(TomcatWebSocketUtil.java:87)
    at org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket.service(Tomcat7Servlet30SupportWithWebSocket.java:61)
    at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:1550)
    at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:176)
    at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:162)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)


Does somebody have an idea how to locate the reason of this error? The connection from groovy on the server to the browser is ok. I can sent event based messages to the browser, but not vice versa.

Regards
- Marco

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
Stéphane
--


Reply | Threaded
Open this post in threaded view
|

Re: Atmosphere IllegalStateException

Marco Abderhalden

I changed
    window.grailsEvents = new grails.Events("${createLink(uri:'')}", {logLevel:"debug", transport:"sse"});
to
    window.grailsEvents = new grails.Events("${createLink(uri:'')}");
and now the exception vanished. The option part of the params seems to cause the problems.



Am 17.05.2013 08:21, schrieb Marco Abderhalden:
We use grails 2.2.1. In BuildConfig.groovy we have the line grails.servlet.version = "2.5".



Am 17.05.2013 02:10, schrieb Stephane Maldini:
is your grails app servlet 3 ?


On Thu, May 16, 2013 at 8:18 PM, Marco Abderhalden <[hidden email]> wrote:
Hi,

I'am getting the following IllegalStateException using the event push plugin. The code worked fine 2 weeks ago. Now perhaps  because of getting a newer atmosphere-snapshot-version this error occurs.

2013-05-16 21:10:32,461 [http-nio-9090-exec-1] ERROR [/grailsTodo].[MeteorServlet]  - Servlet.service() for servlet [MeteorServlet] in context with path [/grailsEventTest] threw exception
java.lang.IllegalStateException: Not supported.
    at org.atmosphere.cpr.AtmosphereRequest.startAsync(AtmosphereRequest.java:594)
    at org.atmosphere.container.Servlet30CometSupport.suspend(Servlet30CometSupport.java:138)
    at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:104)
    at org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket.doService(Tomcat7Servlet30SupportWithWebSocket.java:65)
    at org.atmosphere.container.TomcatWebSocketUtil.doService(TomcatWebSocketUtil.java:87)
    at org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket.service(Tomcat7Servlet30SupportWithWebSocket.java:61)
    at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:1550)
    at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:176)
    at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:162)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)
2013-05-16 21:10:37,495 [http-nio-9090-exec-2] ERROR cpr.AtmosphereFramework  - AtmosphereFramework exception
java.lang.IllegalStateException: Not supported.
    at org.atmosphere.cpr.AtmosphereRequest.startAsync(AtmosphereRequest.java:594)
    at org.atmosphere.container.Servlet30CometSupport.suspend(Servlet30CometSupport.java:138)
    at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:104)
    at org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket.doService(Tomcat7Servlet30SupportWithWebSocket.java:65)
    at org.atmosphere.container.TomcatWebSocketUtil.doService(TomcatWebSocketUtil.java:87)
    at org.atmosphere.container.Tomcat7Servlet30SupportWithWebSocket.service(Tomcat7Servlet30SupportWithWebSocket.java:61)
    at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:1550)
    at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:176)
    at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:162)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)


Does somebody have an idea how to locate the reason of this error? The connection from groovy on the server to the browser is ok. I can sent event based messages to the browser, but not vice versa.

Regards
- Marco

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email





--
Stéphane
--