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

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

    Details

    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            Hide
            stolp stolp added a comment -

            This has been broken by adding the non-serializable build to the callable object.

            Show
            stolp stolp added a comment - This has been broken by adding the non-serializable build to the callable object.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -
            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Torsten Stolpmann Path: .classpath http://jenkins-ci.org/commit/klaros-testmanagement-plugin/4ce1f5120ddf665ca378a93e8f87d14ad405daa3 Log: JENKINS-34334 : java.io.NotSerializableException when plugin is executed on a slave node Task-Url: https://issues.jenkins-ci.org/browse/JENKINS-34334 Compare: https://github.com/jenkinsci/klaros-testmanagement-plugin/compare/41daedda6554...4ce1f5120ddf
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Torsten Stolpmann
            Path:
            pom.xml
            src/changes/changes.xml
            src/main/java/hudson/plugins/klaros/KlarosTestResultPublisher.java
            src/main/java/hudson/plugins/klaros/ResultFormat.java
            src/main/java/hudson/plugins/klaros/ResultSet.java
            http://jenkins-ci.org/commit/klaros-testmanagement-plugin/3175b5e35350c376210b38df11a1337c345ea1b3
            Log:
            JENKINS-34334: java.io.NotSerializableException when plugin is executed
            on a slave node

            Task-Url: https://issues.jenkins-ci.org/browse/JENKINS-34334

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Torsten Stolpmann Path: pom.xml src/changes/changes.xml src/main/java/hudson/plugins/klaros/KlarosTestResultPublisher.java src/main/java/hudson/plugins/klaros/ResultFormat.java src/main/java/hudson/plugins/klaros/ResultSet.java http://jenkins-ci.org/commit/klaros-testmanagement-plugin/3175b5e35350c376210b38df11a1337c345ea1b3 Log: JENKINS-34334 : java.io.NotSerializableException when plugin is executed on a slave node Task-Url: https://issues.jenkins-ci.org/browse/JENKINS-34334

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: