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:[EMAIL PROTECTED]]
> Sent: Thursday, March 28, 2002 12:19 PM
> To: '[EMAIL PROTECTED]'
> 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
> 

Reply via email to