Bug 22870 - deserialisation fails on non-classpath object.
Summary: deserialisation fails on non-classpath object.
Status: RESOLVED FIXED
Alias: None
Product: classpath
Classification: Unclassified
Component: classpath (show other bugs)
Version: unspecified
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-13 13:03 UTC by from-classpath
Modified: 2005-08-07 19:46 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description from-classpath 2005-02-13 13:03:27 UTC
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.
Comment 1 from-classpath 2005-05-18 07:38:48 UTC
Whee; this bug seems to be solved as my P2P software now works fine :)
Please close bug.
Comment 2 Mark Wielaard 2005-08-07 19:46:53 UTC
Closed on request from submitter.