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)

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Component/s: maven-plugin
    • Labels:
    • Environment:
      JDK 7
      Jenkins 2.9
      Maven 3.1.1
    • Similar Issues:

      Description

      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.

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              sudha_koppad sudha koppad
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: