commit-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commit-cp] [bugs #11958] deserialisation fails on non-classpath object.


From: Thomas Zander
Subject: [commit-cp] [bugs #11958] deserialisation fails on non-classpath object.
Date: Sun, 13 Feb 2005 13:03:28 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/3.3; Linux) KHTML/3.3.91 (like Gecko)

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11958>

                 Summary: deserialisation fails on non-classpath object.
                 Project: classpath
            Submitted by: zander
            Submitted on: Sun 02/13/2005 at 13:03
                Category: classpath
                Severity: 5 - Average
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
        Platform Version: None

    _______________________________________________________

Details:

I tried to deserialize a stream coming from a Sun JVM (which means a good
stream) and got this exception:



java.lang.ClassNotFoundException: pvr/net/ServiceEvent

   at java.lang.VMClassLoader.loadClass (Native Method)

   at java.lang.Class.forName (Class.java:210)

   at java.io.ObjectInputStream.resolveClass (ObjectInputStream.java:749)

   at java.io.ObjectInputStream.readClassDescriptor
(ObjectInputStream.java:530)

   at java.io.ObjectInputStream.readObject (ObjectInputStream.java:228)

   at java.io.ObjectInputStream.readObject (ObjectInputStream.java:275)

   at pvr.net.IPV4Master$IPV4Connection.send (IPV4Master.java:887)

   ...6 more



Some printlines in the ObjectInputStream.java told me that the class.forName
was called with a 'null' as classloader, which IIRC is not going to find
classes that are in my classpath.  (right?)

Which makes the bug that the currentLoader() method returned null.



I ran using jamvm 1.2.4 and current classpath CVS.






    _______________________________________________________

This item URL is:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11958>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]