[ 
http://jira.codehaus.org/browse/JIBX-233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dennis Sosnoski updated JIBX-233:
---------------------------------

    Assignee: Dennis Sosnoski

Thanks for the recommendation, I'll give the change a try.

The reason JiBX has its own chaining technique is because it is preserving 
compatibility with older JDKs. As long as we can continue to do that, changes 
to make it work better with later JDKs are great.

> 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
>            Assignee: Dennis Sosnoski
>            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

Reply via email to