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

Cannot run maven x.x builds after LTS 1.509.4 upgrade because of InvalidClassException PlexusModuleContributorFactory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • jenkins : 1.509.4
      maven plugin : 1.509.4

      Slave : SUSE with ( JRE 1.6.0 IBM J9 2.4 )
      Master : Ubuntu with ( Oracle 1.6.0_26-b03 )

      After upgrading from 1.509.2 to 1.509.4 some maven projects fail with an "java.io.InvalidClassException: hudson.maven.PlexusModuleContributorFactory$1;" exception.

      tried, but did not help:

      • different maven version: 2.2.11, 3.0.3 , 3.1.0
      • create new empty project
      • remove all files from slave so jenkins had to copy slave files + maven

      Guessing the problem could be the other JVM on the Slave? Its an IBM JVM 1.6.0 while the master is an Oracle JVM. But on the other hand this is no issue with maven 1.509.2 plugin. Projects on another slave ( Oracle VM, Ubuntu) are still working.

      Workaround: Downgrade maven plugin to 1.509.2

      LOG:

      No emails were triggered.
      Parsing POMs
      ERROR: Failed to parse POMs
      hudson.util.IOException2: remote file operation failed: /srv/jenkins-baubau/workspace/BauBau-Dataservice-Build at hudson.remoting.Channel@539bd9e8:BauBau-buildserver
      at hudson.FilePath.act(FilePath.java:906)
      at hudson.FilePath.act(FilePath.java:883)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:922)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:654)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:565)
      at hudson.model.Run.execute(Run.java:1592)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:508)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:237)
      Caused by: java.io.InvalidClassException: hudson.maven.PlexusModuleContributorFactory$1; local class incompatible: stream classdesc serialVersionUID = -8108615509280767004, local class serialVersionUID = 878384944515657062
      at java.io.InvalidClassException.<init>(InvalidClassException.java:62)
      at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:601)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1600)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1513)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1749)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1770)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1770)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
      at hudson.remoting.UserRequest.deserialize(UserRequest.java:182)
      at hudson.remoting.UserRequest.perform(UserRequest.java:98)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:326)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:314)
      at java.util.concurrent.FutureTask.run(FutureTask.java:149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
      at java.lang.Thread.run(Thread.java:736)

            kutzi kutzi
            rainerw Rainer Weinhold
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: