Mantis - Resin
Viewing Issue Advanced Details
4874 minor always 11-25-11 02:29 11-28-11 11:44
mate  
ferg  
normal  
closed 4.0.23  
fixed  
none    
none 4.0.25  
0004874: javax.servlet.error.exception_type invalidly cast to Throwable in PageContextImpl
In com.caucho.jsp.PageContextImpl.getThrowable() the "javax.servlet.error.exception_type" attribute of the request is cast to a java.lang.Throwable even though the specification says it should be a java.lang.Class
This will cause problems getting error data out of the request, such as <c:out value="${pageContext.errorData.throwable.localizedMessage}" />

Notes
(0005626)
mate   
11-25-11 02:39   
I suppose line 947 should simply be changed from
  exn = (Throwable) getCauchoRequest().getAttribute(RequestDispatcher.ERROR_EXCEPTION_TYPE);
to
  exn = (Throwable) getCauchoRequest().getAttribute(RequestDispatcher.ERROR_EXCEPTION);
(0005631)
ferg   
11-28-11 11:44   
jsp/315p