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

UnsupportedOperationException: Refusing to marshal com.sonymobile.tools.gerrit.gerritevents.watchdog.WatchTimeExceptionData for security reasons

    Details

    • Similar Issues:

      Description

      After upgrading jenkins and updating the gerrit trigger plugin, it couldn't read the gerrit-trigger.xml file so I deleted it. Now when I try to add a new server under gerrit trigger or try to edit existing server, when I save it throws an exception:

      Caused by: java.lang.UnsupportedOperationException: Refusing to marshal com.sonymobile.tools.gerrit.gerritevents.watchdog.WatchTimeExceptionData for security reasons; see https://jenkins.io/redirect/class-filter/
          at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:530)
          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)

      So following what is written on https://jenkins.io/redirect/class-filter/ I am reporting this issue. Note that after doing save a few times, little by little it saved all the needed values even though this exception continues to occur.

        Attachments

          Issue Links

            Activity

            ttux Marc des Garets created issue -
            ttux Marc des Garets made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-47736 [ JENKINS-47736 ]
            ttux Marc des Garets made changes -
            Description After upgrading jenkins and updating the gerrit trigger plugin, it couldn't read the gerrit-trigger.xml file so I deleted it. Now when I try to add a new server under gerrit trigger or try to edit existing server, when I save it throws an exception:

            Caused by: java.lang.UnsupportedOperationException: Refusing to marshal com.sonymobile.tools.gerrit.gerritevents.watchdog.WatchTimeExceptionData for security reasons; see https://jenkins.io/redirect/class-filter/
                at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:530)
                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)

            So following what is written on [https://jenkins.io/redirect/class-filter/] I am reporting this issue. Is there a way to bypass this for the time being?
            After upgrading jenkins and updating the gerrit trigger plugin, it couldn't read the gerrit-trigger.xml file so I deleted it. Now when I try to add a new server under gerrit trigger or try to edit existing server, when I save it throws an exception:

            Caused by: java.lang.UnsupportedOperationException: Refusing to marshal com.sonymobile.tools.gerrit.gerritevents.watchdog.WatchTimeExceptionData for security reasons; see [https://jenkins.io/redirect/class-filter/]
                 at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:530)
                 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)

            So following what is written on [https://jenkins.io/redirect/class-filter/] I am reporting this issue. Note that after doing save a few times, little by little it saved all the needed values.
            ttux Marc des Garets made changes -
            Description After upgrading jenkins and updating the gerrit trigger plugin, it couldn't read the gerrit-trigger.xml file so I deleted it. Now when I try to add a new server under gerrit trigger or try to edit existing server, when I save it throws an exception:

            Caused by: java.lang.UnsupportedOperationException: Refusing to marshal com.sonymobile.tools.gerrit.gerritevents.watchdog.WatchTimeExceptionData for security reasons; see [https://jenkins.io/redirect/class-filter/]
                 at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:530)
                 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)

            So following what is written on [https://jenkins.io/redirect/class-filter/] I am reporting this issue. Note that after doing save a few times, little by little it saved all the needed values.
            After upgrading jenkins and updating the gerrit trigger plugin, it couldn't read the gerrit-trigger.xml file so I deleted it. Now when I try to add a new server under gerrit trigger or try to edit existing server, when I save it throws an exception:

            Caused by: java.lang.UnsupportedOperationException: Refusing to marshal com.sonymobile.tools.gerrit.gerritevents.watchdog.WatchTimeExceptionData for security reasons; see [https://jenkins.io/redirect/class-filter/]
                 at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:530)
                 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)

            So following what is written on [https://jenkins.io/redirect/class-filter/] I am reporting this issue. Note that after doing save a few times, little by little it saved all the needed values even though this exception continues to occur.
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue is related to JENKINS-48943 [ JENKINS-48943 ]
            oleg_nenashev Oleg Nenashev made changes -
            Assignee lucamilanesio [ lucamilanesio ] Oleg Nenashev [ oleg_nenashev ]
            ttux Marc des Garets made changes -
            oleg_nenashev Oleg Nenashev made changes -
            Link This issue duplicates JENKINS-48943 [ JENKINS-48943 ]
            oleg_nenashev Oleg Nenashev made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Duplicate [ 3 ]
            lucamilanesio Luca Domenico Milanesio made changes -
            Component/s gerrit-code-review-plugin [ 23427 ]

              People

              • Assignee:
                oleg_nenashev Oleg Nenashev
                Reporter:
                ttux Marc des Garets
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: