SQL exceptions from some DBs seem to include meta data in the creation of the subclass object which is not serializable. Unfortunately, serializable is still not built into the language spec so that compilers have to traverse the class members to make sure they live up to the contract.
Gregg Sent from my iPad On Apr 30, 2010, at 8:56 AM, "Christopher Dolan" <[email protected]> wrote: > 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 >> >> >
