You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bob DeRemer <bo...@thingworx.com> on 2012/01/10 22:04:42 UTC

periodic (60 sec) problem from Vysper bosh servlet embedded in Tomcat 7.0.23

Tomcat Community,

I'm not sure if this should be posted here or on the Mina/Vysper list, but since the problem seems to be around Jetty Servlet3 continuation functionality within the context of Tomcat, I thought I'd post here first.

PROBLEM
We're using vysper in an embedded mode and have modified the BoshServlet to work in the context of our web application.  The Vysper bosh servlet seems to make use of Jetty servlet3 continuation, and we're getting the following stack trace every 60 seconds.  60 seconds seems to be the default bosh session timeout when there is no activity:

I'm not sure what's going on with the low-level servlet3 continuation stuff, but if anyone has any suggestions/recommendations, I'd greatly appreciate it.

Thanks,
Bob

SEVERE: null
java.lang.IllegalStateException: Calling [asyncDispatch()] is not valid for a request with Async state [DISPATCHING]
      at org.apache.coyote.AsyncStateMachine.asyncDispatch(AsyncStateMachine.java:256)
      at org.apache.coyote.http11.Http11AprProcessor.actionInternal(Http11AprProcessor.java:468)
      at org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHttp11Processor.java:834)
      at org.apache.coyote.Request.action(Request.java:344)
      at org.apache.catalina.core.AsyncContextImpl.dispatch(AsyncContextImpl.java:185)
      at org.apache.catalina.core.AsyncContextImpl.dispatch(AsyncContextImpl.java:146)
      at org.apache.catalina.core.AsyncContextImpl.dispatch(AsyncContextImpl.java:140)
      at org.eclipse.jetty.continuation.Servlet3Continuation.resume(Servlet3Continuation.java:153)
      at org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext.write0(BoshBackedSessionContext.java:233)
      at org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext.requestExpired(BoshBackedSessionContext.java:451)
      at org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext.access$000(BoshBackedSessionContext.java:46)
      at org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext$1.onTimeout(BoshBackedSessionContext.java:605)
      at org.eclipse.jetty.continuation.Servlet3Continuation$2.onTimeout(Servlet3Continuation.java:90)
      at org.apache.catalina.core.AsyncListenerWrapper.fireOnTimeout(AsyncListenerWrapper.java:45)
      at org.apache.catalina.core.AsyncContextImpl.timeout(AsyncContextImpl.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.asyncDispatch(CoyoteAdapter.java:292)
      at org.apache.coyote.http11.AbstractHttp11Processor.asyncDispatch(AbstractHttp11Processor.java:1515)
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:523)
      at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1817)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)



Bob DeRemer
Senior Director, Architecture and Development

[cid:image001.png@01CCCFB1.909A3CD0]
http://www.thingworx.com<http://www.thingworx.com/>
Skype: bob.deremer.thingworx
O: 610.594.6200 x812
M: 717.881.3986


Re: periodic (60 sec) problem from Vysper bosh servlet embedded in Tomcat 7.0.23

Posted by Pid <pi...@pidster.com>.
> -----Original Message-----
> From: Pid [mailto:pid@pidster.com] 
> Sent: Wednesday, January 11, 2012 4:30 AM
> To: Tomcat Users List
> Subject: Re: periodic (60 sec) problem from Vysper bosh servlet embedded in Tomcat 7.0.23
> 
> On 10/01/2012 21:04, Bob DeRemer wrote:
>> Tomcat Community,
>>
>>  
>>
>> I'm not sure if this should be posted here or on the Mina/Vysper list, 
>> but since the problem seems to be around Jetty Servlet3 continuation 
>> functionality within the context of Tomcat, I thought I'd post here first.
> 
> Which version of Tomcat, exactly?
> 
> On 12/01/2012 12:02, Bob DeRemer wrote:
> Tomcat 7.0.23 64-bit on windows server 2008 R2 64-bit

Please don't top-post.


>> PROBLEM
>>
>> We're using vysper in an embedded mode and have modified the 
>> BoshServlet to work in the context of our web application.  The Vysper 
>> bosh servlet seems to make use of Jetty servlet3 continuation, and 
>> we're getting the following stack trace every 60 seconds.  60 seconds 
>> seems to be the default bosh session timeout when there is no activity:

Are you expecting the timeout to fire at this point, for those requests?

The request seems to think it is in the "DISPATCHING" state - is this
perhaps a long running stream of events?


>> I'm not sure what's going on with the low-level servlet3 continuation 
>> stuff, but if anyone has any suggestions/recommendations, I'd greatly 
>> appreciate it.

I would also investigate whether that library supports a particular
version of Tomcat.


p

>> Thanks,
>>
>> Bob
>>
>>  
>>
>> SEVERE: null
>>
>> _java.lang.IllegalStateException_: Calling [asyncDispatch()] is not 
>> valid for a request with Async state [DISPATCHING]
>>
>>       at
>> org.apache.coyote.AsyncStateMachine.asyncDispatch(_AsyncStateMachine.j
>> ava:256_)
>>
>>       at
>> org.apache.coyote.http11.Http11AprProcessor.actionInternal(_Http11AprP
>> rocessor.java:468_)
>>
>>       at
>> org.apache.coyote.http11.AbstractHttp11Processor.action(_AbstractHttp1
>> 1Processor.java:834_)
>>
>>       at org.apache.coyote.Request.action(_Request.java:344_)
>>
>>       at
>> org.apache.catalina.core.AsyncContextImpl.dispatch(_AsyncContextImpl.j
>> ava:185_)
>>
>>       at
>> org.apache.catalina.core.AsyncContextImpl.dispatch(_AsyncContextImpl.j
>> ava:146_)
>>
>>       at
>> org.apache.catalina.core.AsyncContextImpl.dispatch(_AsyncContextImpl.j
>> ava:140_)
>>
>>       at
>> org.eclipse.jetty.continuation.Servlet3Continuation.resume(_Servlet3Co
>> ntinuation.java:153_)
>>
>>       at
>> org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext.writ
>> e0(_BoshBackedSessionContext.java:233_)
>>
>>       at
>> org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext.requ
>> estExpired(_BoshBackedSessionContext.java:451_)
>>
>>       at
>> org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext.acce
>> ss$000(_BoshBackedSessionContext.java:46_)
>>
>>       at
>> org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext$1.on
>> Timeout(_BoshBackedSessionContext.java:605_)
>>
>>       at
>> org.eclipse.jetty.continuation.Servlet3Continuation$2.onTimeout(_Servl
>> et3Continuation.java:90_)
>>
>>       at
>> org.apache.catalina.core.AsyncListenerWrapper.fireOnTimeout(_AsyncList
>> enerWrapper.java:45_)
>>
>>       at
>> org.apache.catalina.core.AsyncContextImpl.timeout(_AsyncContextImpl.ja
>> va:118_)
>>
>>       at
>> org.apache.catalina.connector.CoyoteAdapter.asyncDispatch(_CoyoteAdapt
>> er.java:292_)
>>
>>       at
>> org.apache.coyote.http11.AbstractHttp11Processor.asyncDispatch(_Abstra
>> ctHttp11Processor.java:1515_)
>>
>>       at
>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(_
>> AbstractProtocol.java:523_)
>>
>>       at
>> org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(_AprEndpoin
>> t.java:1817_)
>>
>>       at 
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
>> Source)
>>
>>       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown 
>> Source)
>>
>>       at java.lang.Thread.run(Unknown Source)
>>
>>  
>>
>>  
>>
>>  
>>
>> *Bob DeRemer*
>>
>> *Senior Director, Architecture and Development*
>>
>>  
>>
>> Description: Description: Description: Description:
>> cid:image001.png@01CBE3DE.51A12030
>>
>> http://www.thingworx.com <http://www.thingworx.com/>
>>
>> Skype: bob.deremer.thingworx
>>
>> O: 610.594.6200 x812
>>
>> M: 717.881.3986
>>
>>  
>>
> 
> 


-- 

[key:62590808]


RE: periodic (60 sec) problem from Vysper bosh servlet embedded in Tomcat 7.0.23

Posted by Bob DeRemer <bo...@thingworx.com>.
Tomcat 7.0.23 64-bit on windows server 2008 R2 64-bit

-----Original Message-----
From: Pid [mailto:pid@pidster.com] 
Sent: Wednesday, January 11, 2012 4:30 AM
To: Tomcat Users List
Subject: Re: periodic (60 sec) problem from Vysper bosh servlet embedded in Tomcat 7.0.23

On 10/01/2012 21:04, Bob DeRemer wrote:
> Tomcat Community,
> 
>  
> 
> I'm not sure if this should be posted here or on the Mina/Vysper list, 
> but since the problem seems to be around Jetty Servlet3 continuation 
> functionality within the context of Tomcat, I thought I'd post here first.

Which version of Tomcat, exactly?


p

> PROBLEM
> 
> We're using vysper in an embedded mode and have modified the 
> BoshServlet to work in the context of our web application.  The Vysper 
> bosh servlet seems to make use of Jetty servlet3 continuation, and 
> we're getting the following stack trace every 60 seconds.  60 seconds 
> seems to be the default bosh session timeout when there is no activity:
> 
>  
> 
> I'm not sure what's going on with the low-level servlet3 continuation 
> stuff, but if anyone has any suggestions/recommendations, I'd greatly 
> appreciate it.
> 
>  
> 
> Thanks,
> 
> Bob
> 
>  
> 
> SEVERE: null
> 
> _java.lang.IllegalStateException_: Calling [asyncDispatch()] is not 
> valid for a request with Async state [DISPATCHING]
> 
>       at
> org.apache.coyote.AsyncStateMachine.asyncDispatch(_AsyncStateMachine.j
> ava:256_)
> 
>       at
> org.apache.coyote.http11.Http11AprProcessor.actionInternal(_Http11AprP
> rocessor.java:468_)
> 
>       at
> org.apache.coyote.http11.AbstractHttp11Processor.action(_AbstractHttp1
> 1Processor.java:834_)
> 
>       at org.apache.coyote.Request.action(_Request.java:344_)
> 
>       at
> org.apache.catalina.core.AsyncContextImpl.dispatch(_AsyncContextImpl.j
> ava:185_)
> 
>       at
> org.apache.catalina.core.AsyncContextImpl.dispatch(_AsyncContextImpl.j
> ava:146_)
> 
>       at
> org.apache.catalina.core.AsyncContextImpl.dispatch(_AsyncContextImpl.j
> ava:140_)
> 
>       at
> org.eclipse.jetty.continuation.Servlet3Continuation.resume(_Servlet3Co
> ntinuation.java:153_)
> 
>       at
> org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext.writ
> e0(_BoshBackedSessionContext.java:233_)
> 
>       at
> org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext.requ
> estExpired(_BoshBackedSessionContext.java:451_)
> 
>       at
> org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext.acce
> ss$000(_BoshBackedSessionContext.java:46_)
> 
>       at
> org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext$1.on
> Timeout(_BoshBackedSessionContext.java:605_)
> 
>       at
> org.eclipse.jetty.continuation.Servlet3Continuation$2.onTimeout(_Servl
> et3Continuation.java:90_)
> 
>       at
> org.apache.catalina.core.AsyncListenerWrapper.fireOnTimeout(_AsyncList
> enerWrapper.java:45_)
> 
>       at
> org.apache.catalina.core.AsyncContextImpl.timeout(_AsyncContextImpl.ja
> va:118_)
> 
>       at
> org.apache.catalina.connector.CoyoteAdapter.asyncDispatch(_CoyoteAdapt
> er.java:292_)
> 
>       at
> org.apache.coyote.http11.AbstractHttp11Processor.asyncDispatch(_Abstra
> ctHttp11Processor.java:1515_)
> 
>       at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(_
> AbstractProtocol.java:523_)
> 
>       at
> org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(_AprEndpoin
> t.java:1817_)
> 
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
> 
>       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown 
> Source)
> 
>       at java.lang.Thread.run(Unknown Source)
> 
>  
> 
>  
> 
>  
> 
> *Bob DeRemer*
> 
> *Senior Director, Architecture and Development*
> 
>  
> 
> Description: Description: Description: Description:
> cid:image001.png@01CBE3DE.51A12030
> 
> http://www.thingworx.com <http://www.thingworx.com/>
> 
> Skype: bob.deremer.thingworx
> 
> O: 610.594.6200 x812
> 
> M: 717.881.3986
> 
>  
> 


-- 

[key:62590808]


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: periodic (60 sec) problem from Vysper bosh servlet embedded in Tomcat 7.0.23

Posted by Pid <pi...@pidster.com>.
On 10/01/2012 21:04, Bob DeRemer wrote:
> Tomcat Community,
> 
>  
> 
> I’m not sure if this should be posted here or on the Mina/Vysper list,
> but since the problem seems to be around Jetty Servlet3 continuation
> functionality within the context of Tomcat, I thought I’d post here first.

Which version of Tomcat, exactly?


p

> PROBLEM
> 
> We’re using vysper in an embedded mode and have modified the BoshServlet
> to work in the context of our web application.  The Vysper bosh servlet
> seems to make use of Jetty servlet3 continuation, and we’re getting the
> following stack trace every 60 seconds.  60 seconds seems to be the
> default bosh session timeout when there is no activity:
> 
>  
> 
> I’m not sure what’s going on with the low-level servlet3 continuation
> stuff, but if anyone has any suggestions/recommendations, I’d greatly
> appreciate it.
> 
>  
> 
> Thanks,
> 
> Bob
> 
>  
> 
> SEVERE: null
> 
> _java.lang.IllegalStateException_: Calling [asyncDispatch()] is not
> valid for a request with Async state [DISPATCHING]
> 
>       at
> org.apache.coyote.AsyncStateMachine.asyncDispatch(_AsyncStateMachine.java:256_)
> 
>       at
> org.apache.coyote.http11.Http11AprProcessor.actionInternal(_Http11AprProcessor.java:468_)
> 
>       at
> org.apache.coyote.http11.AbstractHttp11Processor.action(_AbstractHttp11Processor.java:834_)
> 
>       at org.apache.coyote.Request.action(_Request.java:344_)
> 
>       at
> org.apache.catalina.core.AsyncContextImpl.dispatch(_AsyncContextImpl.java:185_)
> 
>       at
> org.apache.catalina.core.AsyncContextImpl.dispatch(_AsyncContextImpl.java:146_)
> 
>       at
> org.apache.catalina.core.AsyncContextImpl.dispatch(_AsyncContextImpl.java:140_)
> 
>       at
> org.eclipse.jetty.continuation.Servlet3Continuation.resume(_Servlet3Continuation.java:153_)
> 
>       at
> org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext.write0(_BoshBackedSessionContext.java:233_)
> 
>       at
> org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext.requestExpired(_BoshBackedSessionContext.java:451_)
> 
>       at
> org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext.access$000(_BoshBackedSessionContext.java:46_)
> 
>       at
> org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext$1.onTimeout(_BoshBackedSessionContext.java:605_)
> 
>       at
> org.eclipse.jetty.continuation.Servlet3Continuation$2.onTimeout(_Servlet3Continuation.java:90_)
> 
>       at
> org.apache.catalina.core.AsyncListenerWrapper.fireOnTimeout(_AsyncListenerWrapper.java:45_)
> 
>       at
> org.apache.catalina.core.AsyncContextImpl.timeout(_AsyncContextImpl.java:118_)
> 
>       at
> org.apache.catalina.connector.CoyoteAdapter.asyncDispatch(_CoyoteAdapter.java:292_)
> 
>       at
> org.apache.coyote.http11.AbstractHttp11Processor.asyncDispatch(_AbstractHttp11Processor.java:1515_)
> 
>       at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(_AbstractProtocol.java:523_)
> 
>       at
> org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(_AprEndpoint.java:1817_)
> 
>       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
> Source)
> 
>       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
> 
>       at java.lang.Thread.run(Unknown Source)
> 
>  
> 
>  
> 
>  
> 
> *Bob DeRemer*
> 
> *Senior Director, Architecture and Development*
> 
>  
> 
> Description: Description: Description: Description:
> cid:image001.png@01CBE3DE.51A12030
> 
> http://www.thingworx.com <http://www.thingworx.com/>
> 
> Skype: bob.deremer.thingworx
> 
> O: 610.594.6200 x812
> 
> M: 717.881.3986
> 
>  
> 


-- 

[key:62590808]