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

Unable to serialize hudson.FilePath when Building a package with CRX plugin

      We are getting the following exception when trying to create a bundle using the CRX plugin. Note that we are not building on the master node, rather a separate Linux build node. We have found other plugins that have had the same "Unable to serialize" issue:

      https://issues.jenkins-ci.org/browse/JENKINS-29938

      We would like to be able to farm jobs using the CRX plugin to non-master build nodes if possible. Thanks in advance.

      Building remotely on linuxbuildnode (x86_64) in workspace /jenkins/workspace/MyJob
      FATAL: remote file operation failed: /mnt/workspace/MyJob at hudson.remoting.Channel@59fe7650:linuxbuildnode: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@3aba12f7
      java.io.IOException: remote file operation failed: /jenkins/workspace/MyJob at hudson.remoting.Channel@59fe7650:linuxbuildnode: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@3aba12f7
      at hudson.FilePath.act(FilePath.java:985)
      at hudson.FilePath.act(FilePath.java:967)
      at org.jenkinsci.plugins.graniteclient.BuildPackageBuilder.perform(BuildPackageBuilder.java:101)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:776)
      at hudson.model.Build$BuildExecution.build(Build.java:203)
      at hudson.model.Build$BuildExecution.doRun(Build.java:160)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
      at hudson.model.Run.execute(Run.java:1738)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:381)
      Caused by: java.io.IOException: Unable to serialize hudson.FilePath$FileCallableWrapper@3aba12f7
      at hudson.remoting.UserRequest.serialize(UserRequest.java:169)
      at hudson.remoting.UserRequest.<init>(UserRequest.java:63)
      at hudson.remoting.Channel.call(Channel.java:776)
      at hudson.FilePath.act(FilePath.java:978)
      ... 11 more
      Caused by: java.io.NotSerializableException: org.jenkinsci.plugins.graniteclient.JenkinsResponseProgressListener
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1183)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1547)
      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1508)
      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1431)
      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1177)
      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:347)
      at hudson.remoting.UserRequest._serialize(UserRequest.java:158)
      at hudson.remoting.UserRequest.serialize(UserRequest.java:167)
      ... 14 more
      Started calculate disk usage of build
      Finished Calculation of disk usage of build in 0 seconds
      Started calculate disk usage of workspace
      Finished Calculation of disk usage of workspace in 0 seconds
      Finished: FAILURE

          [JENKINS-31463] Unable to serialize hudson.FilePath when Building a package with CRX plugin

          Code changed in jenkins
          User: christ66
          Path:
          src/main/java/org/jenkinsci/plugins/graniteclient/JenkinsResponseProgressListener.java
          http://jenkins-ci.org/commit/crx-content-package-deployer-plugin/e3d2d2d5eecfa8d26545f30009d34e39543d5d6e
          Log:
          [FIX JENKINS-31463] Implement Serializable.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: christ66 Path: src/main/java/org/jenkinsci/plugins/graniteclient/JenkinsResponseProgressListener.java http://jenkins-ci.org/commit/crx-content-package-deployer-plugin/e3d2d2d5eecfa8d26545f30009d34e39543d5d6e Log: [FIX JENKINS-31463] Implement Serializable.

          Code changed in jenkins
          User: Mark Adamcin
          Path:
          src/main/java/org/jenkinsci/plugins/graniteclient/JenkinsResponseProgressListener.java
          http://jenkins-ci.org/commit/crx-content-package-deployer-plugin/01891645204f0d8686bf04ced2780e4fad7e5565
          Log:
          Merge pull request #4 from christ66/JENKINS-31463

          [FIX JENKINS-31463] Implement Serializable.

          Compare: https://github.com/jenkinsci/crx-content-package-deployer-plugin/compare/04719c74488f...01891645204f

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mark Adamcin Path: src/main/java/org/jenkinsci/plugins/graniteclient/JenkinsResponseProgressListener.java http://jenkins-ci.org/commit/crx-content-package-deployer-plugin/01891645204f0d8686bf04ced2780e4fad7e5565 Log: Merge pull request #4 from christ66/ JENKINS-31463 [FIX JENKINS-31463] Implement Serializable. Compare: https://github.com/jenkinsci/crx-content-package-deployer-plugin/compare/04719c74488f...01891645204f

            Unassigned Unassigned
            bduffy Brent Duffy
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: