Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003665 [Resin] minor always 09-02-09 16:20 09-03-09 09:59
Reporter ferg View Status public  
Assigned To ferg
Priority immediate Resolution fixed  
Status closed   Product Version 3.1.6
Summary 0003665: Comet servlet dispatch in 3.1.6
Description (rep by Fiaz Hossain)

I have this issue with the current Comet servlet that seems to make my code fragile and it ends up with the following excption. The problem is anytime someone adds an HttpServletRequestWrapper in the request chain my Comet servlet breaks and I have to add a URI exclude to the filter-mapping. Adding the exclude avoids the exception but I still miss some useful functionality provided by the filter so ideally I need a different solution. It would have been nice if the HttpConnectionController knew that the request object is really a wrapper and could traverse to a point where it can do the casting safely to an AbstractHttpRequest.
Cause0: java.lang.ClassCastException: routing.filter.RemoteAddrFilterBase$RemoteAddrWrapper cannot be cast to com.caucho.server.connection.AbstractHttpRequest
at com.caucho.server.connection.HttpConnectionController.getAbstractHttpRequest(
at com.caucho.server.connection.HttpConnectionController.<init>(
at com.caucho.server.dispatch.CometServletFilterChain.doFilter(
at system.filter.FooDomainRedirectFilter.doFilter(
Additional Information
Attached Files

- Relationships

- Notes
09-03-09 09:59


- Issue History
Date Modified Username Field Change
09-02-09 16:20 ferg New Issue
09-03-09 09:59 ferg Note Added: 0004212
09-03-09 09:59 ferg Assigned To  => ferg
09-03-09 09:59 ferg Status new => closed
09-03-09 09:59 ferg Resolution open => fixed
09-03-09 09:59 ferg Fixed in Version  => 4.0.2

Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker