• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • core

      org.jvnet.hudson.reactor.ReactorException: hudson.util.IOException2: Unable to read /usr/local/jenkins/config.xml
      at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
      at jenkins.InitReactorRunner.run(InitReactorRunner.java:43)
      at jenkins.model.Jenkins.executeReactor(Jenkins.java:910)
      at jenkins.model.Jenkins.<init>(Jenkins.java:806)
      at hudson.model.Hudson.<init>(Hudson.java:81)
      at hudson.model.Hudson.<init>(Hudson.java:77)
      at hudson.WebAppMain$3.run(WebAppMain.java:221)
      Caused by: hudson.util.IOException2: Unable to read /usr/local/jenkins/config.xml
      at hudson.XmlFile.unmarshal(XmlFile.java:170)
      at jenkins.model.Jenkins$17.run(Jenkins.java:2530)
      at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      at jenkins.model.Jenkins$7.runTask(Jenkins.java:899)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:722)
      Caused by: com.thoughtworks.xstream.converters.ConversionException: Could not set field class hudson.security.csrf.DefaultCrumbIssuer.PROXY_HEADER : null : Could not set field class hudson.security.csrf.DefaultCrumbIssuer.PROXY_HEADER : null
      ---- Debugging information ----
      message : Could not set field class hudson.security.csrf.DefaultCrumbIssuer.PROXY_HEADER : null
      cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
      cause-message : Could not set field class hudson.security.csrf.DefaultCrumbIssuer.PROXY_HEADER : null
      class : hudson.security.csrf.DefaultCrumbIssuer
      required-type : hudson.security.csrf.DefaultCrumbIssuer
      converter-type : hudson.util.RobustReflectionConverter
      path : /hudson/crumbIssuer/PROXY_HEADER
      line number : 219
      class[1] : hudson.model.Hudson
      version : not available
      -------------------------------
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:333)
      at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:275)
      at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:222)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
      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:1061)
      at hudson.util.XStream2.unmarshal(XStream2.java:109)
      at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045)
      at hudson.XmlFile.unmarshal(XmlFile.java:166)
      ... 9 more
      Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Could not set field class hudson.security.csrf.DefaultCrumbIssuer.PROXY_HEADER : null
      at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.write(Sun14ReflectionProvider.java:141)
      at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.writeField(Sun14ReflectionProvider.java:104)
      at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:290)
      at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:222)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
      ... 24 more
      Caused by: java.lang.IllegalArgumentException
      at sun.misc.Unsafe.objectFieldOffset(Native Method)
      at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.getFieldOffset(Sun14ReflectionProvider.java:150)
      at com.thoughtworks.xstream.converters.reflection.Sun14ReflectionProvider.write(Sun14ReflectionProvider.java:112)
      ... 28 more

      Solution: manually edit config.xml and remove crumb settings will allow jenkins to be accessible again.
      The diff shows that the PROXY__HEADER field is not in the config anymore after reconfiguring with proxy support in 1.531

          [JENKINS-19613] Upgrade error to 1.531: PROXY_HEADER is null

          Leo Leung added a comment - - edited

          I have the same issue when upgrading to both 1.531 and 1.532.
          I can't upgrade to either versions.

          Leo Leung added a comment - - edited I have the same issue when upgrading to both 1.531 and 1.532. I can't upgrade to either versions.

          Thomas Pasch added a comment -

          Same here with an upgrade from 1.527 to 1.532

          Thomas Pasch added a comment - Same here with an upgrade from 1.527 to 1.532

          Me too going from 1.529 to 1.532 and to master.

          Peter Eisentraut added a comment - Me too going from 1.529 to 1.532 and to master.

          John Dyer added a comment -

          +1

          John Dyer added a comment - +1

          We got same error while upgrading from 1.482 to 1.532

          Claus Wittmann added a comment - We got same error while upgrading from 1.482 to 1.532

          Code changed in jenkins
          User: Jesse Glick
          Path:
          changelog.html
          core/src/main/java/hudson/security/csrf/DefaultCrumbIssuer.java
          http://jenkins-ci.org/commit/jenkins/d82ba3b7524096fe571a37894c5b85091f4f45ad
          Log:
          [FIXED JENKINS-19613] 49c731f made PROXY_HEADER static under the assumption that XStream would treat that like a missing field.
          Unfortunately it threw an error instead, breaking startup; fixed by renaming the constant.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/src/main/java/hudson/security/csrf/DefaultCrumbIssuer.java http://jenkins-ci.org/commit/jenkins/d82ba3b7524096fe571a37894c5b85091f4f45ad Log: [FIXED JENKINS-19613] 49c731f made PROXY_HEADER static under the assumption that XStream would treat that like a missing field. Unfortunately it threw an error instead, breaking startup; fixed by renaming the constant.

          dogfood added a comment -

          Integrated in jenkins_main_trunk #2900
          [FIXED JENKINS-19613] 49c731f made PROXY_HEADER static under the assumption that XStream would treat that like a missing field. (Revision d82ba3b7524096fe571a37894c5b85091f4f45ad)

          Result = UNSTABLE
          Jesse Glick : d82ba3b7524096fe571a37894c5b85091f4f45ad
          Files :

          • core/src/main/java/hudson/security/csrf/DefaultCrumbIssuer.java
          • changelog.html

          dogfood added a comment - Integrated in jenkins_main_trunk #2900 [FIXED JENKINS-19613] 49c731f made PROXY_HEADER static under the assumption that XStream would treat that like a missing field. (Revision d82ba3b7524096fe571a37894c5b85091f4f45ad) Result = UNSTABLE Jesse Glick : d82ba3b7524096fe571a37894c5b85091f4f45ad Files : core/src/main/java/hudson/security/csrf/DefaultCrumbIssuer.java changelog.html

          Leo Leung added a comment - - edited

          Tested OK with jenkins.jar ver. 1.534-SNAPSHOT (private-09/27/2013 03:51 GMT-jenkins).

          Leo Leung added a comment - - edited Tested OK with jenkins.jar ver. 1.534-SNAPSHOT (private-09/27/2013 03:51 GMT-jenkins).

          Take a look at the changelog, the fix is in 1.534.
          If you want to use 1.533, see the workaround at the end of my bug report:
          Just remove the PROXY_HEADER settings manually from config.xml

          Björn Pedersen added a comment - Take a look at the changelog, the fix is in 1.534. If you want to use 1.533, see the workaround at the end of my bug report: Just remove the PROXY_HEADER settings manually from config.xml

          Code changed in jenkins
          User: Jesse Glick
          Path:
          changelog.html
          core/src/main/java/hudson/security/csrf/DefaultCrumbIssuer.java
          http://jenkins-ci.org/commit/jenkins/582a87f2028773e3886a7abcceb36245bcd36506
          Log:
          [FIXED JENKINS-19613] 49c731f made PROXY_HEADER static under the assumption that XStream would treat that like a missing field.
          Unfortunately it threw an error instead, breaking startup; fixed by renaming the constant.

          (cherry picked from commit d82ba3b7524096fe571a37894c5b85091f4f45ad)

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html core/src/main/java/hudson/security/csrf/DefaultCrumbIssuer.java http://jenkins-ci.org/commit/jenkins/582a87f2028773e3886a7abcceb36245bcd36506 Log: [FIXED JENKINS-19613] 49c731f made PROXY_HEADER static under the assumption that XStream would treat that like a missing field. Unfortunately it threw an error instead, breaking startup; fixed by renaming the constant. (cherry picked from commit d82ba3b7524096fe571a37894c5b85091f4f45ad)

            jglick Jesse Glick
            pedersen Björn Pedersen
            Votes:
            12 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved: