tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36231] - getCause() null for ServletException
Date Wed, 17 Aug 2005 19:30:40 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=36231>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=36231


Larry.Isaacs@sas.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|Catalina                    |Servlet & JSP API




------- Additional Comments From Larry.Isaacs@sas.com  2005-08-17 21:30 -------
Tomcat 5.5.9 requires 1.4 or later, but the servlet-api.jar it uses is expected 
to be able to run with 1.3, per the spec.  Thus, isn't not feasible to fix 
servlet-api.jar itself.  Tomcat could call initCause() as you suggest, but if 
someone wrote a webapp that depended on getCause() not returning null, the 
webapp would likely not be portable.  This is a case where "unnecessarily 
harder" is preferred to help ensure the portability of webapps.

Since I would guess that you likely don't care about portability, you could 
customize your Tomcat to fix this.  Simpler may be just to write a utility 
class with a static method that accepts a ServletException and returns the 
cause from getRootCause() or getCause(), which ever is not null.

Updating the component, since this is where the primary issue lies.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message