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

SCM Sync configuration plugin authorization, white screen and plugin initialization.

XMLWordPrintable

      Hi,

      I updated scm-sync configuration to 0.0.10. And experienced a few issues.
      Firstly, when filling in the subversion repository url then after restart the plugin cannot be initialized. And due to that we're getting the "white screen of death" and jenkins will start, but shows only white blank page.

      SEVERE: Failed Loading plugin SCM Sync Configuration Plugin v0.0.10 (scm-sync-configuration)
      java.io.IOException: Failed to initialize
      at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:521)
      at hudson.PluginManager$2$1$1.run(PluginManager.java:517)
      at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
      at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
      at jenkins.model.Jenkins$7.runTask(Jenkins.java:1086)
      at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
      at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
      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:745)
      Caused by: java.lang.NullPointerException
      at sun.reflect.UnsafeFieldAccessorImpl.ensureObj(UnsafeFieldAccessorImpl.java:54)
      at sun.reflect.UnsafeObjectFieldAccessorImpl.get(UnsafeObjectFieldAccessorImpl.java:36)
      at java.lang.reflect.Field.get(Field.java:379)
      at hudson.plugins.scm_sync_configuration.scms.ScmSyncSubversionSCM.extractScmCredentials(ScmSyncSubversionSCM.java:59)
      at hudson.plugins.scm_sync_configuration.scms.SCM.getConfiguredRepository(SCM.java:66)
      at hudson.plugins.scm_sync_configuration.SCMManipulator.scmConfigurationSettledUp(SCMManipulator.java:57)
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness.initializeRepository(ScmSyncConfigurationBusiness.java:72)
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationBusiness.init(ScmSyncConfigurationBusiness.java:67)
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin.initialInit(ScmSyncConfigurationPlugin.java:174)
      at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin.start(ScmSyncConfigurationPlugin.java:157)
      at hudson.ClassicPluginStrategy.startPlugin(ClassicPluginStrategy.java:529)
      at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:518)

      I think the reason for that is because when filling in the repository url it says "Unable to access to repository". Which leads us to the next issue. For being able to access the respository would it be possible to add username and password option right where the subversion repository url input is so we could log in just like there's an option in jobs configuration(shown in attachments screenshot).

      A quick solution for this would be if hudson.scm.SubversionSCM.xml would not be overwritten every time jenkins is restarted. On version 0.0.7.5 I am able to get the plugin and jenkins working correctly only if i fulfill the hudson.scm.SubversionSCM.xml configuration file manually on the server with credentials and the server name. like shown on the screenshot.

            Unassigned Unassigned
            kristom Kristo Moorits
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: