Results 1 to 3 of 3
  1. #1
    Norberhuis is offline Member
    Join Date
    Jan 2009
    Location
    Delft
    Posts
    13
    Rep Power
    0

    Default local class incompatible, while I do declare serialVersionUID

    Hello,

    I get the: local class incompatible: stream classdesc serialVersionUID = -6641190487037000263, local class serialVersionUID = -3852747894808199202 error while I do declare private static final long serialVersionUID = -3852747894808199202L; in my class.

    I am running the server and client on the same computer and I am using eclipse within the same package to run.

  2. #2
    Norberhuis is offline Member
    Join Date
    Jan 2009
    Location
    Delft
    Posts
    13
    Rep Power
    0

    Default

    I tried somethings and I did get it to work. I do not know what I changed to make it work.

  3. #3
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    The object in the stream had some other serial version; I can't tell where it came from. Apparently, when you ran it again, the stream was created with your object. That's the purpose of the serialVersionUID, to make sure what you put in and what you try to get it out into are the same.

Similar Threads

  1. Replies: 3
    Last Post: 09-24-2008, 11:59 PM
  2. Declare methods in a class
    By Adiel224 in forum New To Java
    Replies: 5
    Last Post: 09-19-2008, 10:38 AM
  3. Load class file which resides in local path c:\
    By praveen.kb in forum Advanced Java
    Replies: 2
    Last Post: 08-12-2008, 01:55 PM
  4. serialVersionUID
    By jon80 in forum New To Java
    Replies: 5
    Last Post: 05-04-2008, 08:16 PM
  5. problem with scanner class:incompatible types
    By fred in forum New To Java
    Replies: 1
    Last Post: 07-20-2007, 07:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •