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

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

    XMLWordPrintable

Details

    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

            schristou Steven Christou created issue -

            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/79c5fce2c2f0338568eccbfb1e866cedd584b734
            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.

            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/79c5fce2c2f0338568eccbfb1e866cedd584b734 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.

            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/b2459548f089e8a8359046449592aa3899b691d2
            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/79c5fce2c2f0^...b2459548f089

            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/b2459548f089e8a8359046449592aa3899b691d2 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/79c5fce2c2f0 ^...b2459548f089
            scm_issue_link SCM/JIRA link daemon made changes -
            Field Original Value New Value
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]

            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/ad6a95c2d0c0f5e0c0a2e8c69422a3616c936a52
            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.

            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/ad6a95c2d0c0f5e0c0a2e8c69422a3616c936a52 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.

            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/04a653f0b77e790e3aacd7be9d4cd85970c574bd
            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/b2459548f089...04a653f0b77e

            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/04a653f0b77e790e3aacd7be9d4cd85970c574bd 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/b2459548f089...04a653f0b77e

            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.

            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.

            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

            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

            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.

            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.

            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

            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

            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

            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
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 163434 ] JNJira + In-Review [ 197198 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-49101 [ JENKINS-49101 ]
            teilo James Nord made changes -
            Assignee James Nord [ teilo ]

            People

              Unassigned Unassigned
              schristou Steven Christou
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: