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

Removing non-serializable member from CucumberTestResultsAction

XMLWordPrintable

      In some cases executing workflow job with calling to gherkingPublisher is ended with floowing exception which cause to job be in failed status.

       

       

      Unexpected exception in CPS VM thread: CpsFlowExecutionOwner[lgolug625/xhome_web_automation/reddy1/14:lgolug625/xhome_web_automation/reddy1 #14]

      java.lang.IllegalStateException: Can't send a remote FilePath to a different remote channel

              at hudson.FilePath.writeObject(FilePath.java:2993)

              at sun.reflect.GeneratedMethodAccessor120.invoke(Unknown Source)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:498)

              at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:135)

      Caused: com.thoughtworks.xstream.converters.ConversionException: Could not call hudson.FilePath.writeObject() : Can't send a remote FilePath to a different remote channel

      ---- Debugging information ----

      message             : Could not call hudson.FilePath.writeObject()

      cause-exception     : java.lang.IllegalStateException

      cause-message       : Can't send a remote FilePath to a different remote channel

      -------------------------------

              at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteObject(SerializationMethodInvoker.java:141)

              at com.thoughtworks.xstream.converters.reflection.SerializableConverter.doMarshal(SerializableConverter.java:259)

              at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:83)

              at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)

              at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)

              at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)

              at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265)

              at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)

      Caused: java.lang.RuntimeException: Failed to serialize com.microfocus.application.automation.tools.octane.actions.cucumber.CucumberTestResultsAction#workspace for class com.microfocus.application.automation.tools.octane.actions.cucumber.CucumberTestResultsAction

              at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)

            radislavb Radi Berkovich
            radislavb Radi Berkovich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: