You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by "Harnish, Michael" <MH...@fcg.com> on 2002/04/01 16:23:49 UTC

RE: getting the stacktrace

Tim,

This probably isn't an issue with Apache SOAP.  The stack trace is a
transient property of an exception, meaning it won't get serialized.  I
found a solution to this at
http://www.javaworld.com/javaworld/javatips/jw-javatip91.html - an excellent
article by Terren Suydam.  He recommends storing the stack trace in a
non-transient property of a custom exception class.

Regards,
Mike

> -----Original Message-----
> From: Tim Joyce [mailto:Tim.Joyce@uk.wdsglobal.com]
> Sent: Thursday, March 28, 2002 12:19 PM
> To: 'soap-user@xml.apache.org'
> Subject: getting the stacktrace 
> 
> 
> Hi,
> 
> I am having trouble getting the stack trace for server 
> exceptions back to
> the client using the org.apache.soap.server.DOMFaultListener.
> 
> eg a simple NullPointer has no stacktrace:
> 
> The call failed: 
> 
> Fault Code = SOAP-ENV:Server
> 
> Fault String = java.lang.NullPointerException; nested exception is:
> java.lang.NullPointerException
> 
> Fault Detail = [[stackTrace: null]]
> 
> has anyone got any ideas?
> 
> cheers
> 
> timj
>