Partial stack trace is printed when JiBXException is wrapped in another
exception
---------------------------------------------------------------------------------
Key: JIBX-233
URL: http://jira.codehaus.org/browse/JIBX-233
Project: JiBX
Issue Type: Improvement
Components: core
Affects Versions: JiBX 1.1.6
Reporter: Vladimir Berezniker
Priority: Minor
JiBXException has its own mechanism for dealing with nested exceptions.
However, when running in JDK 5 and if outer most exception class is not
JiBXException (e.g. org.apache.maven.plugin.MojoExecutionException) only
partial stack trace is printed. This impedes investigations of bad binding
files as in many cases root cause exception is not printed.
This is due to printStackTraceAsCause method implementation in Throwable class.
One way to fix is to implement getCause() method as following:
public Throwable getCause()
{
return getRootCause();
}
this way printStackTraceAsCause will honour the root cause that JiBXException
contains.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
jibx-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jibx-devs