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

collecting artifacts from another build fails the build with InvalidClassException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • copyartifact-plugin
    • None

      I use the buildsetp 'copy artifacts from another project'. it worked fine up to when I updated to version 1.380.

      now I get the following callstack:
      ERROR: Failed to copy artifacts from MyBuild with filter: path/to/my/artifact_file.txt
      hudson.util.IOException2: hudson.remoting.RequestAbortedException: java.io.InvalidClassException: hudson.remoting.Pipe$ConnectCommand; local class incompatible: stream classdesc serialVersionUID = -9128735897846418140, local class serialVersionUID = -6288356765470642528
      at hudson.FilePath.copyRecursiveTo(FilePath.java:1474)
      at hudson.FilePath.copyRecursiveTo(FilePath.java:1399)
      at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:160)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
      at hudson.model.Build$RunnerImpl.build(Build.java:174)
      at hudson.model.Build$RunnerImpl.doRun(Build.java:138)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
      at hudson.model.Run.run(Run.java:1280)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:140)
      Caused by: java.util.concurrent.ExecutionException: hudson.remoting.RequestAbortedException: java.io.InvalidClassException: hudson.remoting.Pipe$ConnectCommand; local class incompatible: stream classdesc serialVersionUID = -9128735897846418140, local class serialVersionUID = -6288356765470642528
      at hudson.remoting.Request$1.get(Request.java:218)
      at hudson.remoting.Request$1.get(Request.java:172)
      at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
      at hudson.FilePath.copyRecursiveTo(FilePath.java:1472)
      ... 11 more
      Caused by: hudson.remoting.RequestAbortedException: java.io.InvalidClassException: hudson.remoting.Pipe$ConnectCommand; local class incompatible: stream classdesc serialVersionUID = -9128735897846418140, local class serialVersionUID = -6288356765470642528
      at hudson.remoting.Request.abort(Request.java:257)
      at hudson.remoting.Channel.terminate(Channel.java:681)
      at hudson.remoting.Channel$ReaderThread.run(Channel.java:973)
      Caused by: java.io.InvalidClassException: hudson.remoting.Pipe$ConnectCommand; local class incompatible: stream classdesc serialVersionUID = -9128735897846418140, local class serialVersionUID = -6288356765470642528
      at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
      at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
      at java.io.ObjectInputStream.readClassDesc(Unknown Source)
      at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
      at java.io.ObjectInputStream.readObject0(Unknown Source)
      at java.io.ObjectInputStream.readObject(Unknown Source)
      at hudson.remoting.Channel$ReaderThread.run(Channel.java:948)
      FATAL: channel is already closed
      hudson.remoting.ChannelClosedException: channel is already closed
      at hudson.remoting.Channel.send(Channel.java:467)
      at hudson.remoting.Request.call(Request.java:105)
      at hudson.remoting.Channel.call(Channel.java:630)
      at hudson.Launcher$RemoteLauncher.kill(Launcher.java:744)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:421)
      at hudson.model.Run.run(Run.java:1280)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:140)
      Caused by: java.io.InvalidClassException: hudson.remoting.Pipe$ConnectCommand; local class incompatible: stream classdesc serialVersionUID = -9128735897846418140, local class serialVersionUID = -6288356765470642528
      at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
      at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
      at java.io.ObjectInputStream.readClassDesc(Unknown Source)
      at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
      at java.io.ObjectInputStream.readObject0(Unknown Source)
      at java.io.ObjectInputStream.readObject(Unknown Source)
      at hudson.remoting.Channel$ReaderThread.run(Channel.java:948)

      I don't know where to look for the solution.

            mindless Alan Harder
            emanuelelhardt emanuelelhardt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: