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

Scan Multibranch Pipeline fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • gerrit-code-review-0.3.5
    • gerrit-code-review-0.3.6

      After the initial scan all subsequent scans fail (both manual and event triggered).

      Scan Multibranch Pipeline Log:

      Branch indexing
      FATAL: Failed to recompute children of project
      java.lang.RuntimeException: Failed to serialize hudson.util.PersistedList#data for class jenkins.branch.MultiBranchProject$BranchSourceList
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:254)
      	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:222)
      	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:208)
      	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:149)
      	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 com.thoughtworks.xstream.XStream.toXML(XStream.java:975)
      	at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:575)
      	at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:277)
      	at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:164)
      	at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1026)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      Caused by: java.lang.RuntimeException: Failed to serialize jenkins.branch.BranchSource#source for class jenkins.branch.BranchSource
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:254)
      	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:222)
      	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:208)
      	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:149)
      	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 hudson.util.CopyOnWriteList$ConverterImpl.marshal(CopyOnWriteList.java:187)
      	at hudson.util.XStream2$AssociatedConverterImpl.marshal(XStream2.java:460)
      	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:263)
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:250)
      	... 19 more
      Caused by: java.lang.RuntimeException: Failed to serialize jenkins.plugins.gerrit.AbstractGerritSCMSource#projectOpenChanges for class jenkins.plugins.gerrit.GerritSCMSource
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:254)
      	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:222)
      	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:208)
      	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:149)
      	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:263)
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:250)
      	... 35 more
      Caused by: java.lang.RuntimeException: Failed to serialize jenkins.plugins.gerrit.ProjectOpenChanges#openChanges for class jenkins.plugins.gerrit.ProjectOpenChanges
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:254)
      	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:222)
      	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:208)
      	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:149)
      	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:263)
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:250)
      	... 44 more
      Caused by: java.lang.UnsupportedOperationException: Refusing to marshal com.google.common.cache.LocalCache$LocalLoadingCache for security reasons; see https://jenkins.io/redirect/class-filter/
      	at hudson.util.XStream2$BlacklistedTypesConverter.marshal(XStream2.java:542)
      	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:263)
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:250)
      	... 53 more
      Finished: FAILURE
      

            lucamilanesio Luca Domenico Milanesio
            johnv John V
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: