Click to See Complete Forum and Search --> : Serializable error


MKeen
April 28th, 2000, 05:13 AM
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

kib63613
April 28th, 2000, 07:21 AM
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