Mike,

thanks for this, but I am not attempting to serialise the exception,  the
DOMFaultListener writes the stack trace to Fault.FaultDetail for
serialisation.  However, something is going wrong subsequently, and I can't
work out what.

Do you get FaultDetail sucessfully passed betqween server and client?

cheers

timj


> -----Original Message-----
> From: Harnish, Michael [mailto:[EMAIL PROTECTED]]
> Sent: 01 April 2002 15:24
> To: '[EMAIL PROTECTED]'
> Subject: 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:[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