XML Feeds

.

[java-dev] Re: find a non-serializable class/object

jbmaxwell jbmaxwell at rubato-music.com
Sun Jan 6 15:01:24 MST 2008


No. All it shows in the trace, before it hits my "save" method is:

java.io.NotSerializableException: java.lang.Object
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
	at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
	at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
	at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
	at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
	at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)

...which doesn't do me much good.

J.



Quote: owen wrote on Sun, 06 January 2008 21:36
----------------------------------------------------
> Doesn't it say in the stack trace?
> 
> --
> O
> 
> jbmaxwell wrote:
> > I'm wondering if there's any way of tracking down the specific object
> > that's causing a NotSerializableException? I have a fairly complex
> > object that I'm trying to write to disk, and I keep getting this
> > exception. I've checked all of my class files, and they all implement
> > Serializable. If I could at least find out which object is failing,
> > maybe I could figure out what's wrong.
> > 
> > Any thoughts appreciated.
> > 
> > thanks,
> > 
> > J. _______________________________________________ java-dev mailing
> > 
> 
> 
> 
----------------------------------------------------




More information about the java-dev mailing list