Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4065747

incorerctly get java.io.InvalidClassException: Local class not compatible

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P2 P2
    • None
    • 1.1.2
    • core-libs
    • None


      I have a bean which has a serialized object, when trying to load the bean in
      beanbox the object cannot be serialized (if you go past 4065738) because of
      the following:

      java.io.InvalidClassException: connect.widgets.ImageListBox; Local class not compatible
              at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java)
              at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
              at java.io.ObjectInputStream.inputObject(ObjectInputStream.java)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
              at java.io.ObjectInputStream.inputArray(ObjectInputStream.java)
              at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
              at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java)
              at java.awt.Container.readObject(Container.java:1161)
      .....

      However the class in question connect.widgets.ImageListBox DID NOT change
      between serialization and deserialization (it was the same class the serialized object was created from) so I dont know why Local class not compatible exception
      is thrown.

      To reproduce, try loading the attached JAR file into beanbox and instantiate
      the loaded bean.

            jfialli Joe Fialli
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: