Issue222791
Created on 2000-11-18.18:52:28 by bckfnn, last changed 2000-11-18.21:50:30 by bckfnn.
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2000-11-18 18:52:28 | bckfnn | create | |
Created on 2000-11-18.18:52:28 by bckfnn, last changed 2000-11-18.21:50:30 by bckfnn.
| Messages | |||
|---|---|---|---|
| msg19 (view) | Author: Finn Bock (bckfnn) | Date: 2000-11-18.18:52:28 | |
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()
|
|||
| msg20 (view) | Author: Finn Bock (bckfnn) | Date: 2000-11-18.21:50:30 | |
This is fixed by using a PythonObjectInputStream to read back the file. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2000-11-18 18:52:28 | bckfnn | create | |
Supported by Python Software Foundation,
Powered by Roundup