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

NotSerializableException in workflow-cps

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • pipeline
    • None
    • Jenkins 2.409
      Pipeline 596.v8c21c963d92d

      Upgrading the Pipeline plugin from 590 to 596 leads to exceptions in cleanWs(). Reverting the plugin removes the exception.

       

      08:54:58 08:54:58 08:54:58 08:54:58 08:54:58 08:54:58  [WS-CLEANUP] Deleting project workspace...
      08:54:58 08:54:58 08:54:58 08:54:58 08:54:58 08:54:58  an exception which occurred:
      08:54:58      in field groovy.lang.Closure.delegate
      08:54:58      in object org.jenkinsci.plugins.workflow.cps.CpsClosure2@7752d717
      08:54:58      in field org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.closures
      08:54:58      in object org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@474d8bb
      08:54:58      in object org.jenkinsci.plugins.workflow.cps.CpsThreadGroup@474d8bb
      08:54:58  Also:   org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 0a6d976f-d2e8-435f-a103-72f36aeaf282
      08:54:58  Caused: java.io.NotSerializableException: java.io.ByteArrayInputStream
      08:54:58      at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:274)
      08:54:58      at org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
      08:54:58      at org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
      08:54:58      at org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
      08:54:58      at org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)
      08:54:58      at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:341)
      08:54:58      at java.base/java.util.LinkedHashMap.internalWriteEntries(LinkedHashMap.java:333)
      08:54:58      at java.base/java.util.HashMap.writeObject(HashMap.java:1412)
      08:54:58      at org.jboss.marshalling.reflect.JDKSpecific$SerMethods.callWriteObject(JDKSpecific.java:89)
      08:54:58      at org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:199)
      08:54:58      at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1089)
      08:54:58      at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1080)
      08:54:58      at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:268)
      08:54:58      at org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
      08:54:58      at org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
      08:54:58      at org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
      08:54:58      at org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)
      08:54:58      at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:341)
      08:54:58      at com.cloudbees.groovy.cps.SerializableScript.writeObject(SerializableScript.java:26)
      08:54:58      at org.jboss.marshalling.reflect.JDKSpecific$SerMethods.callWriteObject(JDKSpecific.java:89)
      08:54:58      at org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:199)
      08:54:58      at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1089)
      08:54:58      at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1080)
      08:54:58      at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1080)
      08:54:58      at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:268)
      08:54:58      at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1143)
      08:54:58      at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1101)
      08:54:58      at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1080)
      08:54:58      at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1080)
      08:54:58      at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:268)
      08:54:58      at org.jboss.marshalling.river.BlockMarshaller.doWriteObject(BlockMarshaller.java:65)
      08:54:58      at org.jboss.marshalling.river.BlockMarshaller.writeObject(BlockMarshaller.java:56)
      08:54:58      at org.jboss.marshalling.MarshallerObjectOutputStream.writeObjectOverride(MarshallerObjectOutputStream.java:50)
      08:54:58      at org.jboss.marshalling.river.RiverObjectOutputStream.writeObjectOverride(RiverObjectOutputStream.java:179)
      08:54:58      at java.base/java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:341)
      08:54:58      at java.base/java.util.HashMap.internalWriteEntries(HashMap.java:1858)
      08:54:58      at java.base/java.util.HashMap.writeObject(HashMap.java:1412)
      08:54:58      at org.jboss.marshalling.reflect.JDKSpecific$SerMethods.callWriteObject(JDKSpecific.java:89)
      08:54:58      at org.jboss.marshalling.reflect.SerializableClass.callWriteObject(SerializableClass.java:199)
      08:54:58      at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1089)
      08:54:58      at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:268)
      08:54:58      at org.jboss.marshalling.river.RiverMarshaller.doWriteFields(RiverMarshaller.java:1143)
      08:54:58      at org.jboss.marshalling.river.RiverMarshaller.doWriteSerializableObject(RiverMarshaller.java:1101)
      08:54:58      at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:268)
      08:54:58      at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:58)
      08:54:58      at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:116)
      08:54:58      at org.jenkinsci.plugins.workflow.support.pickles.serialization.RiverWriter.lambda$writeObject$1(RiverWriter.java:144)
      08:54:58      at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:331)
      08:54:58      at org.jenkinsci.plugins.workflow.support.pickles.serialization.RiverWriter.writeObject(RiverWriter.java:143)
      08:54:58      at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.saveProgram(CpsThreadGroup.java:577)
      08:54:58      at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.saveProgram(CpsThreadGroup.java:554)
      08:54:58      at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.saveProgramIfPossible(CpsThreadGroup.java:537)
      08:54:58      at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:461)
      08:54:58      at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:330)
      08:54:58      at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:294)
      08:54:58      at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
      08:54:58      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      08:54:58      at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
      08:54:58      at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      08:54:58      at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
      08:54:58      at jenkins.util.ErrorLoggingExecutorService.lambda$wrap$0(ErrorLoggingExecutorService.java:51)
      08:54:58      at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      08:54:58      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      08:54:58      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      08:54:58      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      08:54:58      at java.base/java.lang.Thread.run(Thread.java:829)
      08:54:58  [Bitbucket] Notifying commit build result
      08:54:58  [Bitbucket] Build result notified
      08:54:58  Finished: FAILURE

            Unassigned Unassigned
            bananeweizen Michael Keppler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: