You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2015/06/20 17:52:45 UTC
[Bug 58063] New: Some async responses are empty when using
Javamelody and Spring-webmvc
https://bz.apache.org/bugzilla/show_bug.cgi?id=58063
Bug ID: 58063
Summary: Some async responses are empty when using Javamelody
and Spring-webmvc
Product: Tomcat 7
Version: 7.0.47
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: dev@tomcat.apache.org
Reporter: evernat@free.fr
Created attachment 32840
--> https://bz.apache.org/bugzilla/attachment.cgi?id=32840&action=edit
Source to reproduce the issue
I have a test webapp using async with Javamelody 1.56 and Spring-webmvc, in
Tomcat 7.0.47 with JDK 1.7.0_80.
When running in Tomcat 7.0.47, some async cases do not work and http responses
are empty (buttons Async, Callable, Forward Async and Forward Callable),
while others are OK (buttons Ajax, Redirect Ajax, Redirect Async, Redirect
Callable, Forward Ajax, ResponseBody Async, ResponseBody Callable).
When running in Jetty 9.1.0_RC2, all cases are OK.
I created this issue as suggested by Mark [1].
To reproduce the issue:
- unzip attached test-V3.zip
- mvn tomcat7:run
- open http://localhost:8080/ -> 4 buttons do not work and have empty
responses, with javamelody
- mvn jetty:run
- open http://localhost:8080/ -> all buttons work, with javamelody
- comment javamelody in pom.xml
- mvn tomcat7:run
- open http://localhost:8080/ -> all buttons work, without javamelody
Note: the last change [2], added before flushing the response, does not fix the
issue.
If the httpResponse is not wrapped in a CounterServletResponseWrapper by the
MonitoringFilter [3] or if Jetty is used instead of Tomcat,
there is no more issue but I do not know why.
This issue is also 338 in Javamelody:
https://code.google.com/p/javamelody/issues/detail?id=338#c6
[1]
http://mail-archives.apache.org/mod_mbox/tomcat-users/201506.mbox/%3C557DA84B.9010100@apache.org%3E
[2] https://code.google.com/p/javamelody/source/detail?r=4090
[3]
https://code.google.com/p/javamelody/source/browse/trunk/javamelody-core/src/main/java/net/bull/javamelody/MonitoringFilter.java#181
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 58063] Some async responses are empty when using Javamelody and
Spring-webmvc
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58063
Violeta Georgieva <vi...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #1 from Violeta Georgieva <vi...@apache.org> ---
Hello,
In Javamelody web fragment, the filter MonitoringFilter must specify dispatcher
type ASYNC.
Regards,
Violeta
E.g.
<filter-mapping>
<filter-name>javamelody</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>ASYNC</dispatcher>
</filter-mapping>
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 58063] Some async responses are empty when using Javamelody and
Spring-webmvc
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58063
--- Comment #2 from evernat <ev...@free.fr> ---
I did not know the async dispatcher type in filter mapping.
So, many thanks Violeta. You have removed a thorn from my side.
And this is merged in javamelody.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 58063] Some async responses are empty when using Javamelody and
Spring-webmvc
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58063
evernat <ev...@free.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
CC| |evernat@free.fr
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org