Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004073 [Resin] minor always 06-08-10 15:38 06-17-10 15:42
Reporter emil View Status public  
Assigned To alex
Priority high Resolution fixed  
Status closed   Product Version 4.0.6
Summary 0004073: compatibility with spring's MockHttpServletRequest
Description (req by moltobenny)

Resin 4.0.6, Spring 3.0.2:

This:

MockHttpServletRequest mockrequest = new MockHttpServletRequest();
MockHttpServletRequest mockresponse = new MockHttpServletResponse();
...
RequestDispatcher dispatcher = webApplicationContext.getServletContext().getReque stDispatcher(path);

dispatcher.forward(mockrequest, mockresponse);

...throw the following exception:

java.lang.ClassCastException: org.springframework.mock.web.MockHttpServletReques t cannot be cast to com.caucho.server.http.CauchoRequest
at com.caucho.server.http.CauchoRequestWrapper.getCau choRequest(CauchoRequestWrapper.java:781)

I've tried everything I can think of. Help?
Additional Information
Attached Files

- Relationships

- Notes
(0004638)
emil
06-09-10 14:18

full stack trace:

java.lang.ClassCastException: org.springframework.mock.web.MockHttpServletReques t cannot be cast to com.caucho.server.http.CauchoRequest
at com.caucho.server.http.CauchoRequestWrapper.getCau choRequest(CauchoRequestWrapper.java:781)
at com.caucho.server.http.CauchoRequestWrapper.getSes sionId(CauchoRequestWrapper.java:462)
at com.caucho.server.http.CauchoRequestWrapper.getSes sionId(CauchoRequestWrapper.java:464)
at com.caucho.server.http.AbstractCauchoRequest.finis hRequest(AbstractCauchoRequest.java:590)
at com.caucho.server.webapp.ForwardRequest.finishRequ est(ForwardRequest.java:112)
at com.caucho.server.webapp.RequestDispatcherImpl.for ward(RequestDispatcherImpl.java:293)
at com.caucho.server.webapp.RequestDispatcherImpl.for ward(RequestDispatcherImpl.java:121)
 
(0004639)
emil
06-09-10 14:19

bumped priority due to multiple requests
 
(0004642)
alex
06-17-10 15:42

support/1302
 

- Issue History
Date Modified Username Field Change
06-08-10 15:38 emil New Issue
06-09-10 14:18 emil Note Added: 0004638
06-09-10 14:19 emil Note Added: 0004639
06-09-10 14:19 emil Priority normal => high
06-17-10 15:42 alex Status new => assigned
06-17-10 15:42 alex Assigned To  => alex
06-17-10 15:42 alex Status assigned => closed
06-17-10 15:42 alex Note Added: 0004642
06-17-10 15:42 alex Resolution open => fixed
06-17-10 15:42 alex Fixed in Version  => 4.0.8


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