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

Unsuccessful uninstall/upgrade for crowd2 plugin

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • crowd2-plugin
    • None

      I noticed strange behaviour which I do not understand.

      Steps to reproduce:

      • crowd selected as a Security Realm
      • some config added
      • crowd2 plugin uninstall
      • restart Jenkins

      After mentioned steps I get this error.

      com.thoughtworks.xstream.mapper.CannotResolveClassException: de.theit.jenkins.crowd.CrowdSecurityRealm
      	at com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:81)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)
      	at com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:55)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)
      	at com.thoughtworks.xstream.mapper.PackageAliasingMapper.realClass(PackageAliasingMapper.java:88)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)
      	at com.thoughtworks.xstream.mapper.ClassAliasingMapper.realClass(ClassAliasingMapper.java:79)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)
      	at com.thoughtworks.xstream.mapper.ArrayMapper.realClass(ArrayMapper.java:74)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)
      	at com.thoughtworks.xstream.mapper.SecurityMapper.realClass(SecurityMapper.java:71)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)
      	at hudson.util.XStream2$CompatibilityMapper.realClass(XStream2.java:378)
      	at hudson.util.xstream.MapperDelegate.realClass(MapperDelegate.java:45)
      	at com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:125)
      	at com.thoughtworks.xstream.mapper.CachingMapper.realClass(CachingMapper.java:47)
      	at hudson.util.RobustReflectionConverter.determineType(RobustReflectionConverter.java:511)
      	at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:341)
      Caused: jenkins.util.xstream.CriticalXStreamException: 
      ---- Debugging information ----
      cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
      cause-message       : de.theit.jenkins.crowd.CrowdSecurityRealm
      class               : hudson.model.Hudson
      required-type       : hudson.model.Hudson
      converter-type      : hudson.util.RobustReflectionConverter
      path                : /hudson/securityRealm
      line number         : 9
      version             : not available
      -------------------------------
      	at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:370)
      	at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:284)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      	at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:72)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
      	at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
      	at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1431)
      	at hudson.util.XStream2.unmarshal(XStream2.java:161)
      	at hudson.util.XStream2.unmarshal(XStream2.java:132)
      	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1411)
      	at hudson.XmlFile.unmarshal(XmlFile.java:180)
      Caused: java.io.IOException: Unable to read /var/jenkins_home/config.xml
      	at hudson.XmlFile.unmarshal(XmlFile.java:183)
      	at hudson.XmlFile.unmarshal(XmlFile.java:163)
      	at jenkins.model.Jenkins.loadConfig(Jenkins.java:3234)
      	at jenkins.model.Jenkins.access$1200(Jenkins.java:340)
      	at jenkins.model.Jenkins$12.run(Jenkins.java:3336)
      	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
      	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
      	at jenkins.model.Jenkins$5.runTask(Jenkins.java:1160)
      	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
      	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:829)
      Caused: org.jvnet.hudson.reactor.ReactorException
      	at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:282)
      	at jenkins.InitReactorRunner.run(InitReactorRunner.java:50)
      	at jenkins.model.Jenkins.executeReactor(Jenkins.java:1193)
      	at jenkins.model.Jenkins.<init>(Jenkins.java:991)
      	at hudson.model.Hudson.<init>(Hudson.java:86)
      	at hudson.model.Hudson.<init>(Hudson.java:82)
      	at hudson.WebAppMain$3.run(WebAppMain.java:298)
      Caused: hudson.util.HudsonFailedToLoad
      	at hudson.WebAppMain$3.run(WebAppMain.java:315)
      

      This happens on Java 11 and Java 8.

      Right now as a workaround I need to remove config/crowd setup and then proceed with update/uninstallation.

            dumam Bartosz Nowak
            dumam Bartosz Nowak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: