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