-
Serializable error
Using RMI, I have created a resultset in my impl class and am moving the results into a vector. I then return the vector to my applet class, but I get the following error message -
java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
java.io.InvalidClassException: [Ljava.lang.Object;; Serializable is incompatible with Externalizable
java.io.InvalidClassException: [Ljava.lang.Object;; Serializable is incompatible with Externalizable
java.util.Vector CatalogueMan.ItemImpl_Stub.getItems(java.lang.String)
void CatalogueMan.CatAssignApplet.loadItemTbl()
void CatalogueMan.CatAssignApplet.jbInit()
void CatalogueMan.CatAssignApplet.init()
void sun.applet.AppletPanel.run()
void java.lang.Thread.run()
However, if I return a String the above error does not occur. I am using JDK1.2.2.
Thanks,
Matt
-
Re: Serializable error
Is it the case that you do not serialize your class which contains your data ?
If so, please have your class implement the interface java.io.Serializable.
You may also check if the class contained in the class is serializable. Sometimes,
it might be the case.
good luck,
Alfred Wu