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

java.io.NotSerializableException when plugin is executed on a slave node

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • Master-Slave Jenkins Setup

      When executing the plugin on a Jenkins slave node the following exception is thrown:

      Failure to export test result(s).
      java.io.IOException: remote file operation failed: /home/builder/.jenkins/workspace/klaros-commons at hudson.remoting.Channel@5a8593:digit: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@6ca827
      at hudson.FilePath.act(FilePath.java:986)
      at hudson.FilePath.act(FilePath.java:968)
      at hudson.plugins.klaros.KlarosTestResultPublisher.perform(KlarosTestResultPublisher.java:543)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:782)
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.post2(MavenModuleSetBuild.java:1047)
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:668)
      at hudson.model.Run.execute(Run.java:1763)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      Caused by: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@6ca827
      at hudson.remoting.UserRequest.serialize(UserRequest.java:168)
      at hudson.remoting.UserRequest.<init>(UserRequest.java:62)
      at hudson.remoting.Channel.call(Channel.java:779)
      at hudson.FilePath.act(FilePath.java:979)
      ... 11 more
      Caused by: java.io.NotSerializableException: hudson.maven.MavenModuleSetBuild
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1184)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348)
      at hudson.remoting.UserRequest._serialize(UserRequest.java:157)
      at hudson.remoting.UserRequest.serialize(UserRequest.java:166)
      ... 14 more

            stolp stolp
            stolp stolp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: