Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C57DB0CF for ; Tue, 10 Jan 2012 21:13:44 +0000 (UTC) Received: (qmail 26199 invoked by uid 500); 10 Jan 2012 21:13:40 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 26106 invoked by uid 500); 10 Jan 2012 21:13:40 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 26095 invoked by uid 99); 10 Jan 2012 21:13:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jan 2012 21:13:39 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [72.167.180.18] (HELO p3plex1out02.prod.phx3.secureserver.net) (72.167.180.18) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 10 Jan 2012 21:13:30 +0000 Received: (qmail 28641 invoked from network); 10 Jan 2012 21:04:53 -0000 Received: from unknown (HELO smtp.ex1.secureserver.net) (72.167.180.19) by p3plex1out02.prod.phx3.secureserver.net with SMTP; 10 Jan 2012 21:04:52 -0000 Received: from P3PW5EX1MB14.EX1.SECURESERVER.NET ([10.6.135.86]) by P3PW5EX1HT001.EX1.SECURESERVER.NET ([72.167.180.19]) with mapi; Tue, 10 Jan 2012 14:04:47 -0700 From: Bob DeRemer To: "users@tomcat.apache.org" Date: Tue, 10 Jan 2012 14:04:42 -0700 Subject: periodic (60 sec) problem from Vysper bosh servlet embedded in Tomcat 7.0.23 Thread-Topic: periodic (60 sec) problem from Vysper bosh servlet embedded in Tomcat 7.0.23 Thread-Index: AczP23jjRoc8OPNUTsOZb6JkYgZbGQ== Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/related; boundary="_004_BD7102DA11F0E84FA6EBC1543E47127A8A6BCEAFP3PW5EX1MB14EX1_"; type="multipart/alternative" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_004_BD7102DA11F0E84FA6EBC1543E47127A8A6BCEAFP3PW5EX1MB14EX1_ Content-Type: multipart/alternative; boundary="_000_BD7102DA11F0E84FA6EBC1543E47127A8A6BCEAFP3PW5EX1MB14EX1_" --_000_BD7102DA11F0E84FA6EBC1543E47127A8A6BCEAFP3PW5EX1MB14EX1_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 functional= ity 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 followin= g stack trace every 60 seconds. 60 seconds seems to be the default bosh se= ssion 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(AsyncStateMachin= e.java:256) at org.apache.coyote.http11.Http11AprProcessor.actionInternal(Http11A= prProcessor.java:468) at org.apache.coyote.http11.AbstractHttp11Processor.action(AbstractHt= tp11Processor.java:834) at org.apache.coyote.Request.action(Request.java:344) at org.apache.catalina.core.AsyncContextImpl.dispatch(AsyncContextImp= l.java:185) at org.apache.catalina.core.AsyncContextImpl.dispatch(AsyncContextImp= l.java:146) at org.apache.catalina.core.AsyncContextImpl.dispatch(AsyncContextImp= l.java:140) at org.eclipse.jetty.continuation.Servlet3Continuation.resume(Servlet= 3Continuation.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(Se= rvlet3Continuation.java:90) at org.apache.catalina.core.AsyncListenerWrapper.fireOnTimeout(AsyncL= istenerWrapper.java:45) at org.apache.catalina.core.AsyncContextImpl.timeout(AsyncContextImpl= .java:118) at org.apache.catalina.connector.CoyoteAdapter.asyncDispatch(CoyoteAd= apter.java:292) at org.apache.coyote.http11.AbstractHttp11Processor.asyncDispatch(Abs= tractHttp11Processor.java:1515) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.proce= ss(AbstractProtocol.java:523) at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndp= oint.java:1817) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Sou= rce) 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 Skype: bob.deremer.thingworx O: 610.594.6200 x812 M: 717.881.3986 --_000_BD7102DA11F0E84FA6EBC1543E47127A8A6BCEAFP3PW5EX1MB14EX1_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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 f= irst.

 

PROBLEM

We’re using vysper= in an embedded mode and have modified the BoshServlet to work in the conte= xt 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 sess= ion timeout when there is no activity:

<= o:p> 

I’m not sure what’s go= ing on with the low-level servlet3 continuation stuff, but if anyone has an= y suggestions/recommendations, I’d greatly appreciate it.<= /p>

 

Thanks,

Bob

 

SEVERE: nul= l

java.lang.Il= legalStateException: Calling [asyncDispatch()] is not valid for a requ= est with Async state [DISPATCHING]

      at org.apache.coyote.Asyn= cStateMachine.asyncDispatch(AsyncStateMachine.java:256)<= /p>

    &nb= sp; at org.apache.coyote.http11.Http11AprProcessor.actionInternal(Http= 11AprProcessor.java:468)

      at org.apache.coyote.http11.Abst= ractHttp11Processor.action(AbstractHttp11Processor.java:834= )

   &nbs= p;  at org.apache.coyote.Request.action(Request.java:344)<= /span>

   &n= bsp;  at org.apache.catalina.core.AsyncContextImpl.dispatch(= Async= ContextImpl.java:185)

      at org.apache.catalina.core.AsyncCo= ntextImpl.dispatch(AsyncContextImpl.java:146)

      at o= rg.apache.catalina.core.AsyncContextImpl.dispatch(AsyncContextImpl.jav= a:140)=  =      at org.eclipse.jetty.continuation.Servlet3Continua= tion.resume(Servlet3Continuation.java:153)

      at org.= apache.vysper.xmpp.extension.xep0124.BoshBackedSessionContext.write0(B= oshBackedSessionContext.java:233)

      at org.apache.vysper.xm= pp.extension.xep0124.BoshBackedSessionContext.requestExpired(BoshBacke= dSessionContext.java:451)

BoshBackedSessionCont= ext.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.apa= che.catalina.core.AsyncListenerWrapper.fireOnTimeout(AsyncListenerWra= pper.java:45)

      at org.apache.catalina.core.AsyncContextImp= l.timeout(AsyncContextImpl.java:118)

      at org.apache.c= atalina.connector.CoyoteAdapter.asyncDispatch(CoyoteAdapter.java:292)=

  &= nbsp;   at org.apache.coyote.http11.AbstractHttp11Processor.async= Dispatch()

      at org.= apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(= Abstr= actProtocol.java:523)

      at org.apache.tomcat.util.net.AprEn= dpoint$SocketProcessor.run(AprEndpoint.java:1817)

      at= java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

   &nb= sp;  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Sou= rce)=

  &= nbsp;   at java.lang.Thread.run(Unknown Source)

 

 =

 

B= ob DeRemer

Senior Dire= ctor, Architecture and Development

 

3D"Description:

http://www.thingworx.com

Skype: bob.deremer.thingworx

O: 610.594.6200 x812

M: 717.881.3986

 =

= --_000_BD7102DA11F0E84FA6EBC1543E47127A8A6BCEAFP3PW5EX1MB14EX1_-- --_004_BD7102DA11F0E84FA6EBC1543E47127A8A6BCEAFP3PW5EX1MB14EX1_--