tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bob DeRemer <>
Subject periodic (60 sec) problem from Vysper bosh servlet embedded in Tomcat 7.0.23
Date Tue, 10 Jan 2012 21:04:42 GMT
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.

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.


SEVERE: null
java.lang.IllegalStateException: Calling [asyncDispatch()] is not valid for a request with
Async state [DISPATCHING]
      at org.apache.coyote.AsyncStateMachine.asyncDispatch(
      at org.apache.coyote.http11.Http11AprProcessor.actionInternal(
      at org.apache.coyote.http11.AbstractHttp11Processor.action(
      at org.apache.coyote.Request.action(
      at org.apache.catalina.core.AsyncContextImpl.dispatch(
      at org.apache.catalina.core.AsyncContextImpl.dispatch(
      at org.apache.catalina.core.AsyncContextImpl.dispatch(
      at org.eclipse.jetty.continuation.Servlet3Continuation.resume(
      at org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext.write0(
      at org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext.requestExpired(
      at org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext.access$000(
      at org.apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext$1.onTimeout(
      at org.eclipse.jetty.continuation.Servlet3Continuation$2.onTimeout(
      at org.apache.catalina.core.AsyncListenerWrapper.fireOnTimeout(
      at org.apache.catalina.core.AsyncContextImpl.timeout(
      at org.apache.catalina.connector.CoyoteAdapter.asyncDispatch(
      at org.apache.coyote.http11.AbstractHttp11Processor.asyncDispatch(
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$ Source)
      at Source)

Bob DeRemer
Senior Director, Architecture and Development

Skype: bob.deremer.thingworx
O: 610.594.6200 x812
M: 717.881.3986

  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message