miaoyf / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

java.lang.IllegalStateException: Not supported. #412

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Setup a web project with spray http://spray.io
2. Add java melody to web.xml (default settings) have also spray listener
3. Goto to anyurl in your webapp (I web to /isalive)

What is the expected output? What do you see instead?
no exceptions
but i get 

myrequest is to:
http://localhost:8080/mywebapp/isalive

[ERROR] [05/29/2014 14:29:09.048] [http-bio-8080-exec-8] 
[Servlet30ConnectorServlet(akka://myserver)] Error during processing of request 
GET request to 'http://localhost:8080/isalive'
java.lang.IllegalStateException: Not supported.
    at org.apache.catalina.connector.Request.startAsync(Request.java:1674)
    at org.apache.catalina.connector.Request.startAsync(Request.java:1667)
    at org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1023)
    at javax.servlet.ServletRequestWrapper.startAsync(ServletRequestWrapper.java:364)
    at spray.servlet.Servlet30ConnectorServlet$Responder.<init>(Servlet30ConnectorServlet.scala:89)
    at spray.servlet.Servlet30ConnectorServlet.service(Servlet30ConnectorServlet.scala:66)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:143)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:185)
    at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:159)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    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:724)

What version of the product are you using? On what application server, JDK,
operating system?
1.50.0, jdk1.7

Please provide any additional information below.

Original issue reported on code.google.com by tomer...@gmail.com on 29 May 2014 at 11:32

GoogleCodeExporter commented 8 years ago
Have you tried to add "<async-supported>true</async-supported>" in the filter 
of web.xml?
See https://code.google.com/p/javamelody/wiki/UserGuide#2._web.xml_file

Original comment by evernat@free.fr on 29 May 2014 at 12:26

GoogleCodeExporter commented 8 years ago
it's ok after applied async. thanks.

Original comment by tomer...@gmail.com on 29 May 2014 at 1:01

GoogleCodeExporter commented 8 years ago

Original comment by evernat@free.fr on 29 May 2014 at 2:11