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

NPE after updating to 0.0.3

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Jan 8, 2011 1:21:25 AM hudson.model.Hudson$4 onTaskFailed
      SEVERE: Failed Loading plugin scm-sync-configuration
      hudson.util.IOException2: Failed to initialize
      at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:295)
      at hudson.PluginManager$2$1$1.run(PluginManager.java:275)
      at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
      at hudson.model.Hudson$3.runTask(Hudson.java:699)
      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: hudson.util.IOException2: Unable to read c:_H\scm-sync-configuration.xml
      at hudson.XmlFile.unmarshal(XmlFile.java:152)
      at hudson.Plugin.load(Plugin.java:220)
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin.start(ScmSyncConfigurationPlugin.java:49)
      at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:303)
      at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:292)
      ... 9 more
      Caused by: com.thoughtworks.xstream.converters.ConversionException: null : null
      ---- Debugging information ----
      cause-exception : java.lang.NullPointerException
      cause-message : null
      class : hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin
      required-type : hudson.plugins.scm_sync_configuration.scms.SCM
      path : /hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin/scm
      line number : 4
      -------------------------------
      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 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:80)
      at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:912)
      at hudson.XmlFile.unmarshal(XmlFile.java:148)
      ... 13 more
      Caused by: java.lang.NullPointerException
      at hudson.plugins.scm_sync_configuration.scms.SCM.valueOf(SCM.java:146)
      at hudson.plugins.scm_sync_configuration.scms.SCM$SCMXStreamConverter.unmarshal(SCM.java:186)
      at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:82)
      ... 29 more

        Attachments

          Activity

          Hide
          fcamblor Frédéric Camblor added a comment -

          Hi pancake,

          Could you attach your HUDSON_HOME/scm-sync-configuration.xml file to the issue please ?

          I've tried to provide migration tool to migrate from 0.0.2 to 0.0.3 ... looks like it not completely working right

          In the end, workaround for you :

          • Shutdown hudson
          • Backup & delete file HUDSON_HOME/scm-sync-configuration.xml
          • Start hudson
          • Go to your control panel and restore your svn URL
          Show
          fcamblor Frédéric Camblor added a comment - Hi pancake, Could you attach your HUDSON_HOME/scm-sync-configuration.xml file to the issue please ? I've tried to provide migration tool to migrate from 0.0.2 to 0.0.3 ... looks like it not completely working right In the end, workaround for you : Shutdown hudson Backup & delete file HUDSON_HOME/scm-sync-configuration.xml Start hudson Go to your control panel and restore your svn URL
          Hide
          pancake pancake added a comment -
          <?xml version='1.0' encoding='UTF-8'?>
          <hudson.plugins.scm__sync__configuration.ScmSyncConfigurationPlugin>
            <scmRepositoryUrl>scm:svn:http://(stripped)</scmRepositoryUrl>
            <scm>SUBVERSION</scm>
          </hudson.plugins.scm__sync__configuration.ScmSyncConfigurationPlugin>
          
          Show
          pancake pancake added a comment - <?xml version= '1.0' encoding= 'UTF-8' ?> <hudson.plugins.scm__sync__configuration.ScmSyncConfigurationPlugin> <scmRepositoryUrl> scm:svn:http://(stripped) </scmRepositoryUrl> <scm> SUBVERSION </scm> </hudson.plugins.scm__sync__configuration.ScmSyncConfigurationPlugin>
          Hide
          ajpurkiss ajpurkiss added a comment -

          With a clean install of Jenkins 1.399 and adding SCM-sync 0.0.3 after creating a single job I got the following NPE

          2-Mar-2011 1:02:49 PM hudson.model.Hudson$5 onTaskFailed
          SEVERE: Failed Loading job test
          java.lang.NullPointerException
          at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness.sy
          nchronizeFile(ScmSyncConfigurationBusiness.java:107)
          at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin.sync
          hronizeFile(ScmSyncConfigurationPlugin.java:122)
          at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfiguration
          SaveableListener.onChange(ScmSyncConfigurationSaveableListener.java:29)
          at hudson.model.listeners.SaveableListener.fireOnChange(SaveableListener
          .java:78)
          at hudson.model.AbstractItem.save(AbstractItem.java:367)
          at hudson.model.Job.save(Job.java:150)
          at hudson.model.Job.onLoad(Job.java:174)
          at hudson.model.AbstractProject.onLoad(AbstractProject.java:244)
          at hudson.model.Project.onLoad(Project.java:87)
          at hudson.model.Items.load(Items.java:106)
          at hudson.model.Hudson$13.run(Hudson.java:2270)
          at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuild
          er.java:146)
          at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
          at hudson.model.Hudson$4.runTask(Hudson.java:733)
          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(Unknown Source
          )
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)

          The test job I had created failed to load and so could no longer be seen by Jenkins. This happened right after Jenkins restart once SCM-sync plugin had installed.

          Show
          ajpurkiss ajpurkiss added a comment - With a clean install of Jenkins 1.399 and adding SCM-sync 0.0.3 after creating a single job I got the following NPE 2-Mar-2011 1:02:49 PM hudson.model.Hudson$5 onTaskFailed SEVERE: Failed Loading job test java.lang.NullPointerException at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness.sy nchronizeFile(ScmSyncConfigurationBusiness.java:107) at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin.sync hronizeFile(ScmSyncConfigurationPlugin.java:122) at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfiguration SaveableListener.onChange(ScmSyncConfigurationSaveableListener.java:29) at hudson.model.listeners.SaveableListener.fireOnChange(SaveableListener .java:78) at hudson.model.AbstractItem.save(AbstractItem.java:367) at hudson.model.Job.save(Job.java:150) at hudson.model.Job.onLoad(Job.java:174) at hudson.model.AbstractProject.onLoad(AbstractProject.java:244) at hudson.model.Project.onLoad(Project.java:87) at hudson.model.Items.load(Items.java:106) at hudson.model.Hudson$13.run(Hudson.java:2270) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuild er.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at hudson.model.Hudson$4.runTask(Hudson.java:733) 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(Unknown Source ) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) The test job I had created failed to load and so could no longer be seen by Jenkins. This happened right after Jenkins restart once SCM-sync plugin had installed.
          Hide
          fcamblor Frédéric Camblor added a comment - - edited

          ajpurkiss > your problem is more likely related to JENKINS-8890

          Show
          fcamblor Frédéric Camblor added a comment - - edited ajpurkiss > your problem is more likely related to JENKINS-8890
          Hide
          fcamblor Frédéric Camblor added a comment -

          Reproduced into a unit test

          Will try to solve it ASAP

          Show
          fcamblor Frédéric Camblor added a comment - Reproduced into a unit test Will try to solve it ASAP
          Hide
          fcamblor Frédéric Camblor added a comment -

          fix will be available in v0.0.4

          More generally, a data migration API has been settled up to avoid this type of migration issues

          Show
          fcamblor Frédéric Camblor added a comment - fix will be available in v0.0.4 More generally, a data migration API has been settled up to avoid this type of migration issues

            People

            • Assignee:
              fcamblor Frédéric Camblor
              Reporter:
              pancake pancake
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: