commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Meade (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (DIGESTER-85) [digester] Include filename or uri if Digester.parse(File file or String uri throws a SAXException
Date Mon, 12 Mar 2007 15:57:09 GMT

     [ https://issues.apache.org/jira/browse/DIGESTER-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Erik Meade reopened DIGESTER-85:
--------------------------------


Often when the digester is used by a third party, whose code the developer is using (like
tomcat) the error handling does not output the file (url).  Rather than a convention that
all users of the digester "get the error handling right" (which personally, I rarely see,
given the number of times and hours I spend tracking down bad files), if the file (url) was
included in exception from digester, then from a tracking down the bad file point of view,
it would just work.

> [digester] Include filename or uri if Digester.parse(File file or String uri throws a
SAXException
> --------------------------------------------------------------------------------------------------
>
>                 Key: DIGESTER-85
>                 URL: https://issues.apache.org/jira/browse/DIGESTER-85
>             Project: Commons Digester
>          Issue Type: Improvement
>         Environment: Operating System: All
> Platform: All
>            Reporter: Erik Meade
>            Priority: Minor
>
> Would make debugging easier.
> A try catch SAXException block around the getXMLReader().parse(input);  statements in
the parse 
> File and parse(String  would allow the SAX Exception to be caught, taken apart, an error
statement 
> with file or uri added, and thrown.
> But how to capture the first stack trace?  Use NestedExceptions from jakarta-commons-lang?
 Use
> org.apache.commons.lang.exception.ExceptionUtils.getStackTrace and and cram the first
stack
> trace in the with new SAXExceptions?  Or avoid the new dependecy on lang and do something

> else?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message