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

Unable to serialize org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultArchiver

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Because of the anonymous callable in Cucumber Test Result Archiver we need to make the class serializable, otherwise you will get the exception:

      ERROR: Failed to archive cucumber reports 
      java.io.IOException: Unable to serialize org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultArchiver$1@
      at hudson.remoting.UserRequest.serialize(UserRequest.java:169) 
      at hudson.remoting.UserRequest.<init>(UserRequest.java:63) 
      at hudson.remoting.Channel.call(Channel.java:750) 
      at org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultArchiver.perform(CucumberTestResultArchiver.java:115) 
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) 
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770) 
      at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734) 
      at hudson.model.Build$BuildExecution.post2(Build.java:183) 
      at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:683) 
      at hudson.model.Run.execute(Run.java:1783) 
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
      at hudson.model.ResourceController.execute(ResourceController.java:89) 
      at hudson.model.Executor.run(Executor.java:240) 
      Caused by: java.io.NotSerializableException: org.jenkinsci.plugins.cucumber.jsontestsupport.CucumberTestResultArchiver 
      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.writeObject(ObjectOutputStream.java:347) 
      at hudson.remoting.UserRequest._serialize(UserRequest.java:158) 
      at hudson.remoting.UserRequest.serialize(UserRequest.java:167) 
      ... 12 more 
      

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: James Nord
            Path:
            pom.xml
            src/test/java/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberJSONSupportPluginIT.java
            src/test/resources/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberJSONSupportPluginIT/passWIthEmbeddedItem.json
            http://jenkins-ci.org/commit/cucumber-testresult-plugin/35fab782f1746218527d0fa5d55e8d39e62e0041
            Log:
            JENKINS-28588 Add unit test to make sure plugin works on a slave.

            Add a unit test that runs the plugin on a slave to ensure no serialization
            issues occur.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: James Nord Path: pom.xml src/test/java/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberJSONSupportPluginIT.java src/test/resources/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberJSONSupportPluginIT/passWIthEmbeddedItem.json http://jenkins-ci.org/commit/cucumber-testresult-plugin/35fab782f1746218527d0fa5d55e8d39e62e0041 Log: JENKINS-28588 Add unit test to make sure plugin works on a slave. Add a unit test that runs the plugin on a slave to ensure no serialization issues occur.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: James Nord
            Path:
            src/main/java/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberTestResultArchiver.java
            http://jenkins-ci.org/commit/cucumber-testresult-plugin/f076b53967609a5a8e500b776c83c76aa6679f53
            Log:
            [FIXED JENKINS-28588] make the callable a static class.

            Don't send over the CucumberTestResultArchiver just to find out what the
            remote temporary directory is.

            Compare: https://github.com/jenkinsci/cucumber-testresult-plugin/compare/04a653f0b77e...f076b5396760

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: James Nord Path: src/main/java/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberTestResultArchiver.java http://jenkins-ci.org/commit/cucumber-testresult-plugin/f076b53967609a5a8e500b776c83c76aa6679f53 Log: [FIXED JENKINS-28588] make the callable a static class. Don't send over the CucumberTestResultArchiver just to find out what the remote temporary directory is. Compare: https://github.com/jenkinsci/cucumber-testresult-plugin/compare/04a653f0b77e...f076b5396760
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: James Nord
            Path:
            pom.xml
            src/test/java/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberJSONSupportPluginIT.java
            src/test/resources/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberJSONSupportPluginIT/passWithEmbeddedItem.json
            http://jenkins-ci.org/commit/cucumber-testresult-plugin/beb29eae6c66d87b891d87f5ab35f21b05695373
            Log:
            JENKINS-28588 Add unit test to make sure plugin works on a slave.

            Add a unit test that runs the plugin on a slave to ensure no serialization
            issues occur.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: James Nord Path: pom.xml src/test/java/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberJSONSupportPluginIT.java src/test/resources/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberJSONSupportPluginIT/passWithEmbeddedItem.json http://jenkins-ci.org/commit/cucumber-testresult-plugin/beb29eae6c66d87b891d87f5ab35f21b05695373 Log: JENKINS-28588 Add unit test to make sure plugin works on a slave. Add a unit test that runs the plugin on a slave to ensure no serialization issues occur.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: James Nord
            Path:
            src/main/java/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberTestResultArchiver.java
            http://jenkins-ci.org/commit/cucumber-testresult-plugin/ade853de2a9ad60d87186b3a755d956bd79a3e27
            Log:
            [FIXED JENKINS-28588] make the callable a static class.

            Don't send over the CucumberTestResultArchiver just to find out what the
            remote temporary directory is.

            Compare: https://github.com/jenkinsci/cucumber-testresult-plugin/compare/f076b5396760...ade853de2a9a

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: James Nord Path: src/main/java/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberTestResultArchiver.java http://jenkins-ci.org/commit/cucumber-testresult-plugin/ade853de2a9ad60d87186b3a755d956bd79a3e27 Log: [FIXED JENKINS-28588] make the callable a static class. Don't send over the CucumberTestResultArchiver just to find out what the remote temporary directory is. Compare: https://github.com/jenkinsci/cucumber-testresult-plugin/compare/f076b5396760...ade853de2a9a
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: James Nord
            Path:
            pom.xml
            src/main/java/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberTestResultArchiver.java
            src/test/java/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberJSONSupportPluginIT.java
            src/test/resources/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberJSONSupportPluginIT/passWithEmbeddedItem.json
            http://jenkins-ci.org/commit/cucumber-testresult-plugin/841f22327f1101c9df9252c86fae54230a3f491b
            Log:
            Merge pull request #4 from jenkinsci/JENKINS-28588

            made the plugin work in a master/slave environment again.

            Compare: https://github.com/jenkinsci/cucumber-testresult-plugin/compare/7478db5f7867...841f22327f11

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: James Nord Path: pom.xml src/main/java/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberTestResultArchiver.java src/test/java/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberJSONSupportPluginIT.java src/test/resources/org/jenkinsci/plugins/cucumber/jsontestsupport/CucumberJSONSupportPluginIT/passWithEmbeddedItem.json http://jenkins-ci.org/commit/cucumber-testresult-plugin/841f22327f1101c9df9252c86fae54230a3f491b Log: Merge pull request #4 from jenkinsci/ JENKINS-28588 made the plugin work in a master/slave environment again. Compare: https://github.com/jenkinsci/cucumber-testresult-plugin/compare/7478db5f7867...841f22327f11

              People

              • Assignee:
                teilo James Nord
                Reporter:
                schristou Steven Christou
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: