|
-
April 28th, 2000, 05:13 AM
#1
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
-
April 28th, 2000, 07:21 AM
#2
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|