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

Could not call hudson.plugins.warnings.WarningsPublisher.readResolve() : null

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • warnings-plugin
    • Jenkins LTS 1.424.6
      Warnings 4.6
      Static Analysis Utilities 1.43

      We are currently using version 4.5 of the warnings plugin. If we try to update to version 4.6 we get the following error during server start:
      2012-07-02 18:05:20,442 ERROR [STDERR] Jul 2, 2012 6:05:20 PM jenkins.model.Jenkins$6 onTaskFailed
      SEVERE: Failed Loading job TPOE_201206_MW
      hudson.util.IOException2: Unable to read /jboss/hudson/jobs/TPOE_201206_MW/config.xml
      at hudson.XmlFile.read(XmlFile.java:134)
      at hudson.model.Items.load(Items.java:114)
      at jenkins.model.Jenkins$14.run(Jenkins.java:2273)
      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$5.runTask(Jenkins.java:797)
      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$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: com.thoughtworks.xstream.converters.ConversionException: Could not call hudson.plugins.warnings.WarningsPublisher.readResolve() : null : Could not call hudson.plugins.warnings.WarningsPublisher.readResolve() : null
      ---- Debugging information ----
      message : Could not call hudson.plugins.warnings.WarningsPublisher.readResolve() : null
      cause-exception : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
      cause-message : Could not call hudson.plugins.warnings.WarningsPublisher.readResolve() : null
      class : hudson.model.FreeStyleProject
      required-type : hudson.plugins.warnings.WarningsPublisher
      path : /project/publishers/hudson.plugins.warnings.WarningsPublisher
      line number : 158
      -------------------------------
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
      at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
      at hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:193)
      at hudson.util.DescribableList$ConverterImpl.unmarshal(DescribableList.java:244)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
      at hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:290)
      at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:233)
      at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:180)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
      at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
      at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:926)
      at hudson.util.XStream2.unmarshal(XStream2.java:83)
      at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912)
      at com.thoughtworks.xstream.XStream.fromXML(XStream.java:864)
      at hudson.XmlFile.read(XmlFile.java:130)
      ... 10 more
      Caused by: com.thoughtworks.xstream.converters.reflection.ObjectAccessException: Could not call hudson.plugins.warnings.WarningsPublisher.readResolve() : null
      at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadResolve(SerializationMethodInvoker.java:50)
      at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:181)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      ... 34 more
      Caused by: java.lang.NullPointerException
      at hudson.plugins.warnings.WarningsPublisher.readResolve(WarningsPublisher.java:175)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadResolve(SerializationMethodInvoker.java:46)
      ... 36 more

          [JENKINS-14281] Could not call hudson.plugins.warnings.WarningsPublisher.readResolve() : null

          Ulli Hafner added a comment -

          This is strange. The NPE happens in line

                  super.readResolve();
          

          Can you please attach the config.xml file (at least the part with the warnings publisher configuration)?

          Ulli Hafner added a comment - This is strange. The NPE happens in line super .readResolve(); Can you please attach the config.xml file (at least the part with the warnings publisher configuration)?

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/hudson/plugins/warnings/WarningsPublisher.java
          http://jenkins-ci.org/commit/warnings-plugin/4b1a4680eb1cca8e687d0fc97def45533a6a64b2
          Log:
          JENKINS-14281 Check if old field exists before copying the results.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/warnings/WarningsPublisher.java http://jenkins-ci.org/commit/warnings-plugin/4b1a4680eb1cca8e687d0fc97def45533a6a64b2 Log: JENKINS-14281 Check if old field exists before copying the results.

          Ulli Hafner added a comment - - edited

          I'm currently releasing the new version 4.9. Can you please check if this version works? I'm now testing for null in each member access in the conflicting method. Hope that helps...

          Ulli Hafner added a comment - - edited I'm currently releasing the new version 4.9. Can you please check if this version works? I'm now testing for null in each member access in the conflicting method. Hope that helps...

          Ulli Hafner added a comment -

          Ok, I think I spotted the problem. Seems that you did not change the configuration quite a while. Some fields are still from the 3.x version. My upgrade method seems not to handle this case correctly...

          Ulli Hafner added a comment - Ok, I think I spotted the problem. Seems that you did not change the configuration quite a while. Some fields are still from the 3.x version. My upgrade method seems not to handle this case correctly...

          Code changed in jenkins
          User: Ulli Hafner
          Path:
          src/main/java/hudson/plugins/warnings/WarningsPublisher.java
          http://jenkins-ci.org/commit/warnings-plugin/67a47b80752afd647378a13b41125603537a3bc8
          Log:
          [FIXED JENKINS-14281] Restored version <3.18 serialization conversion.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ulli Hafner Path: src/main/java/hudson/plugins/warnings/WarningsPublisher.java http://jenkins-ci.org/commit/warnings-plugin/67a47b80752afd647378a13b41125603537a3bc8 Log: [FIXED JENKINS-14281] Restored version <3.18 serialization conversion.

          Ulli Hafner added a comment -

          Can you please test if release 4.10 fixes the problem?

          Ulli Hafner added a comment - Can you please test if release 4.10 fixes the problem?

          Timo Leinonen added a comment -

          Thank you. I will try it out as soon as possible.

          Timo Leinonen added a comment - Thank you. I will try it out as soon as possible.

          Timo Leinonen added a comment -

          4.10 worked like a charm. Thanks again.

          Timo Leinonen added a comment - 4.10 worked like a charm. Thanks again.

          Code changed in jenkins
          User: Félix Belzunce Arcos
          Path:
          src/main/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealm.java
          http://jenkins-ci.org/commit/active-directory-plugin/2711542bf4ef59552b66ad5ead3802cdeb317348
          Log:
          JENKINS-14281 On Windows domain can be a null field

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Félix Belzunce Arcos Path: src/main/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealm.java http://jenkins-ci.org/commit/active-directory-plugin/2711542bf4ef59552b66ad5ead3802cdeb317348 Log: JENKINS-14281 On Windows domain can be a null field

            drulli Ulli Hafner
            tle Timo Leinonen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: