[jdom-interest] java 1.1 exception

Jason Hunter jhunter at servlets.com
Fri May 24 17:36:33 PDT 2002


I haven't seen such a thing before.  I wonder if some readObject()
method is causing problems.  It's called from native code, so it might
not appear on a stack trace.

-jh-

Michael Salmon wrote:
> 
> hi folks,
>     curious if anyone has seen an error similar to this when deserializing
> a Document in java 1.1.
> 
> java.io.InvalidClassException: com.sun.java.util.collections.AbstractList; IllegalAccessException
> at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:945)
> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:284)
> at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:403)
> at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:985)
> * at java.io.ObjectInputStream.readObject(ObjectInputStream.java:284)
> at TestApplet.run(TestApplet.java:32)
> at java.lang.Thread.run(Thread.java:504)
> 
>     I have tested that the serialized object stream im reading from is valid
> with a newer jdk and in TestApplet that the exception is thrown from, the
> objectinputstream object is valid when I read from it.
>     I am looking at classes in jdom that extend collections, ContentList,
> AttributeList and changed the private classes to public and did the same for
> their inner-classes. That did not fix it though.
>     I also tried building jdom with ant, target=1.1, rebuilding my app with
> the changed jdom and rewriting my serialized object with the new program.
> 
> thanks,
>     ms
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list