Message19
The ObjectInputStream cannot find a java class loaded from sys.path.
It results in a java.lang.ClassNotFoundException.
Note: It works if the java class is found on the classpath.
------------------ FILE: test117j.java ------------------
import java.io.*;
public class test117j implements java.io.Serializable {
public int a = 1;
}
------------------ END ------------------
from java import io
import test117j
oo = io.ObjectOutputStream(io.FileOutputStream("test117"))
oo.writeObject(test117j())
oi = io.ObjectInputStream(io.FileInputStream("test117"))
print oi.readObject()
|
|
Date |
User |
Action |
Args |
2008-02-20 17:16:37 | admin | link | issue222791 messages |
2008-02-20 17:16:37 | admin | create | |
|