CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Apr 2000
    Posts
    2

    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


  2. #2
    Join Date
    Dec 1999
    Location
    Chonghe, Taipei County, Taiwan, R.O.C.
    Posts
    231

    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
  •  





Click Here to Expand Forum to Full Width

Featured