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

SCM Sync plugins 0.0.3 throws NPE when called before having been initialized

    Details

    • Similar Issues:

      Description

      Before installing shelve projects plugin I didn't have this issue (see screenshot)

        Attachments

          Activity

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

          I tried to reproduce with current scm-sync-configuration snasphot but :

          • Under Hudson 1.339 (the one I depend as parent of my plugin), shelve plugin 1.2 doesn't work
          • Under Jenkins 1.398, there is some NoSuchMethodError thrown when launching the plugin :
            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$4.runTask(Hudson.java:734)
            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: java.lang.NoSuchMethodError: org.codehaus.plexus.DefaultPlexusContainer.initialize()V
            at org.codehaus.plexus.embed.Embedder.start(Embedder.java:216)
            at hudson.plugins.scm_sync_configuration.SCMManagerFactory.start(SCMManagerFactory.java:20)
            at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin.start(ScmSyncConfigurationPlugin.java:61)
            at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:303)
            at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:292)
            ... 9 more

          => I'll try later with scm-sync-configuration 0.0.3 (maybe some uncompatibility with plexus appeared in the 0.0.4-SNAPSHOT ...)

          Show
          fcamblor Frédéric Camblor added a comment - I tried to reproduce with current scm-sync-configuration snasphot but : Under Hudson 1.339 (the one I depend as parent of my plugin), shelve plugin 1.2 doesn't work Under Jenkins 1.398, there is some NoSuchMethodError thrown when launching the plugin : 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$4.runTask(Hudson.java:734) 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: java.lang.NoSuchMethodError: org.codehaus.plexus.DefaultPlexusContainer.initialize()V at org.codehaus.plexus.embed.Embedder.start(Embedder.java:216) at hudson.plugins.scm_sync_configuration.SCMManagerFactory.start(SCMManagerFactory.java:20) at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin.start(ScmSyncConfigurationPlugin.java:61) at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:303) at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:292) ... 9 more => I'll try later with scm-sync-configuration 0.0.3 (maybe some uncompatibility with plexus appeared in the 0.0.4-SNAPSHOT ...)
          Hide
          fcamblor Frédéric Camblor added a comment -

          Will be fixed in 0.0.4
          Added null safety in commit e4c4c297021fa24d9e9deb04c0c7a12cc4912b3e to prevent calls to ScmSyncConfigurationBusiness whereas plugin is not yet initialized (can occur, for example, when a plugin initialization triggers scmsyncconfiguration plugin)

          Show
          fcamblor Frédéric Camblor added a comment - Will be fixed in 0.0.4 Added null safety in commit e4c4c297021fa24d9e9deb04c0c7a12cc4912b3e to prevent calls to ScmSyncConfigurationBusiness whereas plugin is not yet initialized (can occur, for example, when a plugin initialization triggers scmsyncconfiguration plugin)
          Hide
          fcamblor Frédéric Camblor added a comment -

          Arnaud, could you try this snapshot version which should fix the problem ?

          Show
          fcamblor Frédéric Camblor added a comment - Arnaud, could you try this snapshot version which should fix the problem ?

            People

            • Assignee:
              fcamblor Frédéric Camblor
              Reporter:
              aheritier Arnaud Héritier
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: