Carsten Ziegeler wrote:
Sylvain Wallez wrote:
Carsten Ziegeler wrote:
2) Logging of exceptions - currently correct stacktraces are tied to our
own logkit formatter (if I'm not mistaken), so as soon as you're not
using logkit or not using this formatter, you don't get the correct
stacktraces.
This problem only happens in places where we wrap an exception in a
SAXException and log that SAXException. This is because SAXException
doesn't provide the getCause() method that's used by JDK 1.4's exception
chaining.
However, if the exception is wrapped in e.g. a ProcessingException, the
problem doesn't exist.
A solution to this problem is to define our own "class XMLException
extends SAXException" that will provide this getCause() and change all
"throw new SAXException()" in our code with "throw new XMLException".
If it solves the problem, well fine :) But I'm wondering if this is
necessary as
it worked in 2.1.7.
IMHO, this could be fixed by using
return ExceptionUtils.getFullStackTrace(throwable);
instead of
return ExceptionUtils.getStackTrace(throwable);
Vadim