Summary: | ClassCastException in org.apache.jasper.runtime.PageContextImpl.getException | ||
---|---|---|---|
Product: | Tomcat 5 | Reporter: | Steve Revilak <srevilak> |
Component: | Jasper | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 5.0.19 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | other |
Description
Steve Revilak
2004-09-10 16:53:50 UTC
Good, interesting catch. It seems like something simple in the PageContext imlpementation, like if(! (exception instanceof Exception)) { exception = new JspException(exception); } would be a good wrap. It only wraps if needed, and the JspException constructor takes a Throwable root cause, so I think we'll be all set. I'll wait to see what more experienced Jasper developers (Kin-Man?) think of this. Yoav Shapira's suggestion (2004-09-15 18:14) seems like a reasonable way to handle this. If my opinion matters :) Fixed for 5.0.29 and 5.5.3. |