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

NullPointerException in Hudson's log when starting up

    Details

    • Similar Issues:

      Description

      When starting Hudson CI via "java -jar hudson.war --httpPort=8008" I find the following in the log file:

      Mar 10, 2010 8:38:06 AM hudson.triggers.SafeTimerTask run
      SEVERE: Timer task hudson.WebAppMain$2$1@214d8c01 failed
      java.lang.NullPointerException
      at hudson.util.XStream2$AssociatedConverterImpl.findConverter(XStream2.java:152)
      at hudson.util.XStream2$AssociatedConverterImpl.canConvert(XStream2.java:198)
      at com.thoughtworks.xstream.core.DefaultConverterLookup.lookupConverterForType(DefaultConverterLookup.java:63)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
      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:76)
      at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912)
      at com.thoughtworks.xstream.XStream.fromXML(XStream.java:864)
      at hudson.plugins.filesystem_scm.ChangelogSet$XMLSerializer.parse(ChangelogSet.java:92)
      at hudson.plugins.filesystem_scm.ChangelogSet$XMLSerializer.parse(ChangelogSet.java:72)
      at hudson.model.AbstractBuild.calcChangeSet(AbstractBuild.java:652)
      at hudson.model.AbstractBuild.getChangeSet(AbstractBuild.java:627)
      at hudson.model.AbstractBuild.hasParticipant(AbstractBuild.java:315)
      at hudson.model.User.getBuilds(User.java:366)
      at hudson.WebAppMain$2$1.doRun(WebAppMain.java:231)
      at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)

        Attachments

          Activity

          Hide
          mindless Alan Harder added a comment -

          What Hudson version is this? I don't see how that line in Hudson 1.349 could get NPE :-/

          Show
          mindless Alan Harder added a comment - What Hudson version is this? I don't see how that line in Hudson 1.349 could get NPE :-/
          Hide
          tk694h tk694h added a comment -

          I'm using Hudson 1.349 and confirmed it's still happening every time I start Hudson.

          Show
          tk694h tk694h added a comment - I'm using Hudson 1.349 and confirmed it's still happening every time I start Hudson.
          Hide
          mindless Alan Harder added a comment -

          Ok, think I got it.. I think filesystem_scm plugin may have serialized the XStream2 instance to disk (why it would save the object used for loading/saving, no idea.. probably unintentional).. when it loads back this object (that was saved with older Hudson) it ends up with null for this new field.

          Show
          mindless Alan Harder added a comment - Ok, think I got it.. I think filesystem_scm plugin may have serialized the XStream2 instance to disk (why it would save the object used for loading/saving, no idea.. probably unintentional).. when it loads back this object (that was saved with older Hudson) it ends up with null for this new field.
          Hide
          tk694h tk694h added a comment -

          Thank you for your time in figuring this out! I look forward to the fix, whenever that may be...

          Show
          tk694h tk694h added a comment - Thank you for your time in figuring this out! I look forward to the fix, whenever that may be...
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : mindless
          Path:
          trunk/hudson/plugins/filesystem_scm/pom.xml
          trunk/hudson/plugins/filesystem_scm/src/main/java/hudson/plugins/filesystem_scm/ChangelogSet.java
          http://jenkins-ci.org/commit/28521
          Log:
          [FIXED JENKINS-5893] always create a new XStream2 object for XMLSerializer,
          do not serialize this object in build.xml (it's very large!).
          This also fixes NPE loading old FSSCM builds with Hudson 1.349 or newer
          where a new field in XStream2.AssociatedConverterImpl has been added.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : mindless Path: trunk/hudson/plugins/filesystem_scm/pom.xml trunk/hudson/plugins/filesystem_scm/src/main/java/hudson/plugins/filesystem_scm/ChangelogSet.java http://jenkins-ci.org/commit/28521 Log: [FIXED JENKINS-5893] always create a new XStream2 object for XMLSerializer, do not serialize this object in build.xml (it's very large!). This also fixes NPE loading old FSSCM builds with Hudson 1.349 or newer where a new field in XStream2.AssociatedConverterImpl has been added.
          Hide
          mindless Alan Harder added a comment -

          No time like the present

          Show
          mindless Alan Harder added a comment - No time like the present

            People

            • Assignee:
              mindless Alan Harder
              Reporter:
              tk694h tk694h
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: