Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56409

exception at runtime: local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = -3648203929803272796 (java.io.InvalidClassException)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Blocker Blocker
    • maven-plugin
    • JDK 7
      Jenkins 2.9
      Maven 3.1.1

      We have an internal dependent jar which generates the model classes from XSD. While building the Jar through Jenkins, the default serialVersionUID (private static final long serialVersionUID = 1L;

      ) is not getting generated in any of the generated JAVA classes, however the same is getting generated when compiling the jar manually through Maven. Because of this we are getting below exception at runtime:

      local class incompatible: stream classdesc serialVersionUID = 1, local class serialVersionUID = -3648203929803272796 (java.io.InvalidClassException)

       

      Versions as below:

      JDK 7

      Jenkins 2.9

      Maven 3.1.1

       

      Kindly suggest the root cause and resolution for same.

            Unassigned Unassigned
            sudha_koppad sudha koppad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: