I'm intrigued and confused. Throwable is Serializable so how is it possible to make a subclass not serializable? Chris
-----Original Message----- From: Peter Firmstone [mailto:[email protected]] Sent: Friday, April 30, 2010 2:22 AM To: [email protected] Subject: Re: Tricky question - UnmarshalException Serialized Form. Thanks Gregg, I'm thinking about making all the new Exception classes non serializable to eliminate any codebase downloads for older jini version clients, thanks for the soln. That way only RemoteExceptions need be Serialized. Cheers, Peter. Gregg Wonderly wrote: > Peter Firmstone wrote: >> No mate, that sounds cool, it would be nice to send stack traces >> remotely with nested exceptions too if possible anyone got any >> experiences or suggestions? > > ex.printStackTrace( new PrintWriter( new StringWriter() ) ); > > This works for me where I have does this to make sure that I don't > have to worry about SQLExceptions and the like not being serializable. > > Gregg Wonderly > >
