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

java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.matrix.MatrixBuild

      23:19:07 FATAL: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.matrix.MatrixBuild
      23:19:07 java.lang.UnsupportedOperationException: Refusing to marshal java.io.PrintStream for security reasons; see https://jenkins.io/redirect/class-filter/
      23:19:07 	at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:546)
      23:19:07 	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
      23:19:07 	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
      23:19:07 	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
      23:19:07 	at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265)
      23:19:07 	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
      23:19:07 Caused: java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.EnvironmentVarSetter#log for class org.jenkinsci.plugins.EnvironmentVarSetter
      23:19:07 	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
      23:19:07 	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
      23:19:07 	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      23:19:07 	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
      23:19:07 	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
      23:19:07 	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
      23:19:07 	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
      23:19:07 	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
      23:19:07 	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
      23:19:07 	at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
      23:19:07 	at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74)
      23:19:07 	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
      23:19:07 	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
      23:19:07 	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
      23:19:07 	at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265)
      23:19:07 	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
      23:19:07 Caused: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.matrix.MatrixBuild
      23:19:07 	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
      23:19:07 	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
      23:19:07 	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      23:19:07 	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
      23:19:07 	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
      23:19:07 	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
      23:19:07 	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
      23:19:07 	at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
      23:19:07 	at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
      23:19:07 	at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
      23:19:07 	at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026)
      23:19:07 	at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015)
      23:19:07 	at com.thoughtworks.xstream.XStream.toXML(XStream.java:988)
      23:19:07 	at hudson.XmlFile.write(XmlFile.java:193)
      23:19:07 Caused: java.io.IOException
      23:19:07 	at hudson.XmlFile.write(XmlFile.java:200)
      23:19:07 	at hudson.model.Run.save(Run.java:2011)
      23:19:07 	at hudson.model.Run.setDisplayName(Run.java:807)
      23:19:07 	at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setDisplayName(BuildNameSetter.java:76)
      23:19:07 	at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.access$000(BuildNameSetter.java:31)
      23:19:07 	at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter$2.endBuild(BuildNameSetter.java:93)
      23:19:07 	at hudson.matrix.MatrixBuild$MatrixBuildExecution.post2(MatrixBuild.java:433)
      23:19:07 	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
      23:19:07 	at hudson.model.Run.execute(Run.java:1840)
      23:19:07 	at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
      23:19:07 	at hudson.model.ResourceController.execute(ResourceController.java:97)
      23:19:07 	at hudson.model.Executor.run(Executor.java:429) 

      JEP-200 related

      Jenkins 2.138
      Matrix Project Plugin 1.13

          [JENKINS-54362] java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.matrix.MatrixBuild

          Jack Newcombe created issue -
          Jack Newcombe made changes -
          Description Original: {code:java}
          23:19:07 FATAL: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.matrix.MatrixBuild
          23:19:07 java.lang.UnsupportedOperationException: Refusing to marshal java.io.PrintStream for security reasons; see https://jenkins.io/redirect/class-filter/
          23:19:07 at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:546)
          23:19:07 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
          23:19:07 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
          23:19:07 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
          23:19:07 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265)
          23:19:07 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
          23:19:07 Caused: java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.EnvironmentVarSetter#log for class org.jenkinsci.plugins.EnvironmentVarSetter
          23:19:07 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
          23:19:07 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
          23:19:07 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
          23:19:07 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
          23:19:07 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
          23:19:07 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
          23:19:07 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
          23:19:07 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
          23:19:07 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
          23:19:07 at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
          23:19:07 at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74)
          23:19:07 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
          23:19:07 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
          23:19:07 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
          23:19:07 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265)
          23:19:07 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
          23:19:07 Caused: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.matrix.MatrixBuild
          23:19:07 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
          23:19:07 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
          23:19:07 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
          23:19:07 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
          23:19:07 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
          23:19:07 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
          23:19:07 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
          23:19:07 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
          23:19:07 at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
          23:19:07 at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
          23:19:07 at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026)
          23:19:07 at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015)
          23:19:07 at com.thoughtworks.xstream.XStream.toXML(XStream.java:988)
          23:19:07 at hudson.XmlFile.write(XmlFile.java:193)
          23:19:07 Caused: java.io.IOException
          23:19:07 at hudson.XmlFile.write(XmlFile.java:200)
          23:19:07 at hudson.model.Run.save(Run.java:2011)
          23:19:07 at hudson.model.Run.setDisplayName(Run.java:807)
          23:19:07 at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setDisplayName(BuildNameSetter.java:76)
          23:19:07 at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.access$000(BuildNameSetter.java:31)
          23:19:07 at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter$2.endBuild(BuildNameSetter.java:93)
          23:19:07 at hudson.matrix.MatrixBuild$MatrixBuildExecution.post2(MatrixBuild.java:433)
          23:19:07 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
          23:19:07 at hudson.model.Run.execute(Run.java:1840)
          23:19:07 at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
          23:19:07 at hudson.model.ResourceController.execute(ResourceController.java:97)
          23:19:07 at hudson.model.Executor.run(Executor.java:429) {code}

          JEP-200 related
          New: {code:java}
          23:19:07 FATAL: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.matrix.MatrixBuild
          23:19:07 java.lang.UnsupportedOperationException: Refusing to marshal java.io.PrintStream for security reasons; see https://jenkins.io/redirect/class-filter/
          23:19:07 at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:546)
          23:19:07 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
          23:19:07 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
          23:19:07 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
          23:19:07 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265)
          23:19:07 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
          23:19:07 Caused: java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.EnvironmentVarSetter#log for class org.jenkinsci.plugins.EnvironmentVarSetter
          23:19:07 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
          23:19:07 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
          23:19:07 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
          23:19:07 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
          23:19:07 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
          23:19:07 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
          23:19:07 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
          23:19:07 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
          23:19:07 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
          23:19:07 at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
          23:19:07 at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74)
          23:19:07 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
          23:19:07 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
          23:19:07 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
          23:19:07 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265)
          23:19:07 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
          23:19:07 Caused: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.matrix.MatrixBuild
          23:19:07 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
          23:19:07 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
          23:19:07 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
          23:19:07 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
          23:19:07 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
          23:19:07 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
          23:19:07 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
          23:19:07 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
          23:19:07 at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
          23:19:07 at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
          23:19:07 at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026)
          23:19:07 at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015)
          23:19:07 at com.thoughtworks.xstream.XStream.toXML(XStream.java:988)
          23:19:07 at hudson.XmlFile.write(XmlFile.java:193)
          23:19:07 Caused: java.io.IOException
          23:19:07 at hudson.XmlFile.write(XmlFile.java:200)
          23:19:07 at hudson.model.Run.save(Run.java:2011)
          23:19:07 at hudson.model.Run.setDisplayName(Run.java:807)
          23:19:07 at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setDisplayName(BuildNameSetter.java:76)
          23:19:07 at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.access$000(BuildNameSetter.java:31)
          23:19:07 at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter$2.endBuild(BuildNameSetter.java:93)
          23:19:07 at hudson.matrix.MatrixBuild$MatrixBuildExecution.post2(MatrixBuild.java:433)
          23:19:07 at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
          23:19:07 at hudson.model.Run.execute(Run.java:1840)
          23:19:07 at hudson.matrix.MatrixBuild.run(MatrixBuild.java:323)
          23:19:07 at hudson.model.ResourceController.execute(ResourceController.java:97)
          23:19:07 at hudson.model.Executor.run(Executor.java:429) {code}

          JEP-200 related

          Jenkins 2.138
          Matrix Project Plugin 1.13

          Jack Newcombe added a comment -

          This feels like it might be a major or critical, but I'll leave that to the discretion of someone more familiar with JEP-200 related issues.

          Jack Newcombe added a comment - This feels like it might be a major or critical, but I'll leave that to the discretion of someone more familiar with JEP-200 related issues.
          Oleg Nenashev made changes -
          Assignee Original: Kohsuke Kawaguchi [ kohsuke ]

          Oleg Nenashev added a comment -

          Have you updated the Build Name Setter plugin?

          Oleg Nenashev added a comment - Have you updated the Build Name Setter plugin?
          Oleg Nenashev made changes -
          Component/s New: _unsorted [ 19622 ]
          Component/s Original: matrix-project-plugin [ 18765 ]

          Jack Newcombe added a comment -

          Yes, I have build-name-setter 1.6.7

          I also find that build name setter only works when setting at the start of the build, but not the end (causes a similar IOException)

          Jack Newcombe added a comment - Yes, I have build-name-setter 1.6.7 I also find that build name setter only works when setting at the start of the build, but not the end (causes a similar IOException)

          Oleg Nenashev added a comment -

          "
          Failed to serialize org.jenkinsci.plugins.EnvironmentVarSetter#log for class org.jenkinsci.plugins.EnvironmentVarSetter
          "

          It clearly says that you need to update to 1.6.8. See  JENKINS-48944 

          Oleg Nenashev added a comment - " Failed to serialize org.jenkinsci.plugins.EnvironmentVarSetter#log for class org.jenkinsci.plugins.EnvironmentVarSetter " It clearly says that you need to update to 1.6.8. See   JENKINS-48944  
          Oleg Nenashev made changes -
          Link New: This issue duplicates JENKINS-48944 [ JENKINS-48944 ]
          Oleg Nenashev made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            Unassigned Unassigned
            jnewc Jack Newcombe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: