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

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

    XMLWordPrintable

Details

    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

            oleg_nenashev Oleg Nenashev added a comment -

            "gerrit-events" library is not being used in other plugins within jenkinsci organization.
            If you see Gerrit Events 2.11.1 in the log, it means that you HAVE NOT upgraded to Gerrit Trigger Plugin 2.27.2. Please do so. Last screenshot does not show the version at all

            oleg_nenashev Oleg Nenashev added a comment - "gerrit-events" library is not being used in other plugins within jenkinsci organization. If you see Gerrit Events 2.11.1 in the log, it means that you HAVE NOT upgraded to Gerrit Trigger Plugin 2.27. 2 . Please do so. Last screenshot does not show the version at all

            Good point, so when 2.72.2 is being picked up by jenkins and I can upgrade then this issue will be gone?

            ttux Marc des Garets added a comment - Good point, so when 2.72.2 is being picked up by jenkins and I can upgrade then this issue will be gone?

            Ok sorry, I didn't see https://issues.jenkins-ci.org/browse/JENKINS-48943 so you can close this issue and sorry for wasting your time.

            ttux Marc des Garets added a comment - Ok sorry, I didn't see https://issues.jenkins-ci.org/browse/JENKINS-48943 so you can close this issue and sorry for wasting your time.
            oleg_nenashev Oleg Nenashev added a comment -

            np, it happens

            oleg_nenashev Oleg Nenashev added a comment - np, it happens

            oleg_nenashev I've removed the Gerrit Code Review plugin, this issue is specific to the Gerrit Trigger.

            lucamilanesio Luca Domenico Milanesio added a comment - oleg_nenashev I've removed the Gerrit Code Review plugin, this issue is specific to the Gerrit Trigger.

            People

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

              Dates

                Created:
                Updated:
                Resolved: