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

JEP-200 compatibility for ClearCase UCM Plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Many of these seen, but all seemingly related to net.praqma.clearcase.ucm.entities.Stream.

       

      SEVERE: Failed to save build record
      java.io.IOException: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
          at hudson.XmlFile.write(XmlFile.java:200)
          at hudson.model.Run.save(Run.java:1923)
          at hudson.model.Run.execute(Run.java:1784)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)
      Caused by: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
          at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
          at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
          at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
          at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
          at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
          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.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
          at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
          at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
          at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026)
          at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015)
          at com.thoughtworks.xstream.XStream.toXML(XStream.java:988)
          at hudson.XmlFile.write(XmlFile.java:193)
          ... 5 more
      Caused by: java.lang.RuntimeException: Failed to serialize net.praqma.hudson.CCUCMBuildAction#stream for class net.praqma.hudson.CCUCMBuildAction
          at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
          at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
          at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
          at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
          at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
          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.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
          at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
          at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
          at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74)
          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)
          ... 18 more
      Caused by: java.lang.UnsupportedOperationException: Refusing to marshal net.praqma.clearcase.ucm.entities.Stream for security reasons; see https://jenkins.io/redirect/class-filter/
          at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:543)
          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)
          ... 33 more
      

       

       

        Attachments

          Activity

          Hide
          madsnielsen Mads Nielsen added a comment - - edited

          Hi Christopher,

          I think we're affected by JEP-200. You can workaround your issue by following the the guide in this link:

          https://jenkins.io/blog/2018/01/13/jep-200/

          I.E:
          -Dhudson.remoting.ClassFilter=net.praqma.clearcase.ucm.entities.Stream,<insert-other-potential-classes>
          We'll try to fix this as soon as possible. In the meantime you can work around your issues with the method above.

          Best regards,

          MAds

          Show
          madsnielsen Mads Nielsen added a comment - - edited Hi Christopher, I think we're affected by JEP-200. You can workaround your issue by following the the guide in this link: https://jenkins.io/blog/2018/01/13/jep-200/ I.E: -Dhudson.remoting.ClassFilter=net.praqma.clearcase.ucm.entities.Stream,<insert-other-potential-classes> We'll try to fix this as soon as possible. In the meantime you can work around your issues with the method above. Best regards, MAds
          Hide
          w60001 Christopher Shannon added a comment -

          I started down this path, but gave up after adding all of these (first three probably not related to this plugin).  I could not keep rebooting my production server to keep expanding this list and gave up...

           

          -Dhudson.remoting.ClassFilter=java.io.PrintStream,java.util.Formatter,java.io.FileOutputStream,net.praqma.clearcase.ucm.entities.Stream,net.praqma.clearcase.PVob,net.praqma.clearcase.ucm.entities.Project,net.praqma.clearcase.ucm.entities.Baseline,net.praqma.clearcase.ucm.entities.Component,net.praqma.clearcase.ucm.entities.Activity,net.praqma.clearcase.ucm.entities.Changeset,net.praqma.clearcase.ucm.entities.Version,net.praqma.clearcase.Branch,net.praqma.clearcase.ucm.entities.UCMEntity

           

           

          Show
          w60001 Christopher Shannon added a comment - I started down this path, but gave up after adding all of these (first three probably not related to this plugin).  I could not keep rebooting my production server to keep expanding this list and gave up...   -Dhudson.remoting.ClassFilter=java.io.PrintStream,java.util.Formatter,java.io.FileOutputStream,net.praqma.clearcase.ucm.entities.Stream,net.praqma.clearcase.PVob,net.praqma.clearcase.ucm.entities.Project,net.praqma.clearcase.ucm.entities.Baseline,net.praqma.clearcase.ucm.entities.Component,net.praqma.clearcase.ucm.entities.Activity,net.praqma.clearcase.ucm.entities.Changeset,net.praqma.clearcase.ucm.entities.Version,net.praqma.clearcase.Branch,net.praqma.clearcase.ucm.entities.UCMEntity    
          Hide
          madsnielsen Mads Nielsen added a comment -

          Ok Christopher, we'll make it a priority to get a fix out as fast as possible. 

          Show
          madsnielsen Mads Nielsen added a comment - Ok Christopher, we'll make it a priority to get a fix out as fast as possible. 
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Mads Nielsen has it been fixed? I have seen some activity around the lib, but I am not sure what is the current status

          Show
          oleg_nenashev Oleg Nenashev added a comment - Mads Nielsen has it been fixed? I have seen some activity around the lib, but I am not sure what is the current status
          Hide
          madsnielsen Mads Nielsen added a comment -

          Oleg Nenashev Not fixed yet. We'll probably need to put this plugin up for adoption, since we no longer have an active ClearCase environment to test things out.

          Show
          madsnielsen Mads Nielsen added a comment - Oleg Nenashev Not fixed yet. We'll probably need to put this plugin up for adoption, since we no longer have an active ClearCase environment to test things out.

            People

            Assignee:
            praqma Praqma Support
            Reporter:
            w60001 Christopher Shannon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: