Issue1394

classification
Title: Serialization of Jython objects from Java bugged - across a reset Jython state.
Type: Severity: normal
Components: Core Versions: 2.5.0
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: pjenvey, tigerfishdaisy
Priority: Keywords:

Created on 2009-07-03.15:16:54 by tigerfishdaisy, last changed 2009-07-08.13:19:31 by tigerfishdaisy.

Files
File name Uploaded Description Edit Remove
A.java tigerfishdaisy, 2009-07-08.13:19:03
PyTest.py tigerfishdaisy, 2009-07-08.13:19:17
Test.java tigerfishdaisy, 2009-07-08.13:19:31
Messages
msg4878 (view) Author: Ed (tigerfishdaisy) Date: 2009-07-03.15:16:54
Serialization of Jython objects that implement Serializable is bugged in
Java - across a new instance of the JVM.  

Serializing and reading in from the same instance of the JVM works fine.

When reading in from a different instance of the JVM, the JVM throws an
exception about the Jython proxy class not being found.
msg4889 (view) Author: Philip Jenvey (pjenvey) Date: 2009-07-08.00:53:23
Can you provide the output of the actual exception?
msg4892 (view) Author: Ed (tigerfishdaisy) Date: 2009-07-08.13:19:03
OK... I've also added the Java/Python code that causes this problem.

Exception in thread "main" java.lang.ClassNotFoundException:
org.python.proxies.main$PyTest$0
	at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:621)
	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1592)
	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1513)
	at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1749)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368)
	at Test.main(Test.java:28)
History
Date User Action Args
2009-07-08 13:19:31tigerfishdaisysetfiles: + Test.java
2009-07-08 13:19:17tigerfishdaisysetfiles: + PyTest.py
2009-07-08 13:19:04tigerfishdaisysetfiles: + A.java
messages: + msg4892
2009-07-08 00:53:23pjenveysetnosy: + pjenvey
messages: + msg4889
2009-07-03 15:16:54tigerfishdaisycreate