You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Tomcat] onTimeout() failed for listener of type [org.apache.catalina.core.AsyncListenerWrapper] java.lang.IllegalStateException: Calling [asyncComplete()] is not valid for a request with Async state [MUST_COMPLETE]
#1765
Closed
sspotorno opened this issue
Nov 12, 2014
· 0 comments
I am using atmosphere-meteor with LONG_POLLING transport. Due to a limitation in our cloud we suspend the connection in 25 seconds because every call lasting more than 25 seconds is killed by nginx. So our only solution was to do this:
All is working fine with atmosphere with this configuration but when i go to tomcat logs i see this error every 25 seconds:
_org.apache.catalina.core.AsyncContextImpl timeout
WARNING: onTimeout() failed for listener of type [org.apache.catalina.core.AsyncListenerWrapper]
java.lang.IllegalStateException: Calling [asyncComplete()] is not valid for a request with Async state [MUST_COMPLETE]_
_I am using tomcat version 7.0.50._
I have newrelic to track events from my webserver and because of this i realised was happening a lot. The strangest thing is that in tomcat logs is mentioned as a warning but arrives to newrelic as an error. Perhaps it is something in the newrelic configuration.
Do you know if we could set a timeout to 25 seconds for Async context or should we do something else in AppMeteorHandler?
Thanks in advanced!
Sebastian
The text was updated successfully, but these errors were encountered:
jfarcand
changed the title
MeteorServlet Async Context
[Tomcat] onTimeout() failed for listener of type [org.apache.catalina.core.AsyncListenerWrapper] java.lang.IllegalStateException: Calling [asyncComplete()] is not valid for a request with Async state [MUST_COMPLETE]
Nov 12, 2014
Hi,
I am using atmosphere-meteor with LONG_POLLING transport. Due to a limitation in our cloud we suspend the connection in 25 seconds because every call lasting more than 25 seconds is killed by nginx. So our only solution was to do this:
Handler:
All is working fine with atmosphere with this configuration but when i go to tomcat logs i see this error every 25 seconds:
_org.apache.catalina.core.AsyncContextImpl timeout
WARNING: onTimeout() failed for listener of type [org.apache.catalina.core.AsyncListenerWrapper]
java.lang.IllegalStateException: Calling [asyncComplete()] is not valid for a request with Async state [MUST_COMPLETE]_
_I am using tomcat version 7.0.50._
I have newrelic to track events from my webserver and because of this i realised was happening a lot. The strangest thing is that in tomcat logs is mentioned as a warning but arrives to newrelic as an error. Perhaps it is something in the newrelic configuration.
Do you know if we could set a timeout to 25 seconds for Async context or should we do something else in AppMeteorHandler?
Thanks in advanced!
Sebastian
The text was updated successfully, but these errors were encountered: