-
Bug
-
Resolution: Fixed
-
Blocker
-
None
-
Windows Server 2008R2
-
Powered by SuggestiMate
When I update or do a clean install of version 0.0.6 this crash happends, and the plugin remains inactive:
24-09-2012 11:07:08 jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
24-09-2012 11:07:08 jenkins.InitReactorRunner$1 onTaskFailed
SEVERE: Failed Initializing plugin scm-sync-configuration
java.lang.NullPointerException
at hudson.PluginManager$2$1$2.run(PluginManager.java:333)
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$7.runTask(Jenkins.java:875)
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)
24-09-2012 11:07:08 jenkins.InitReactorRunner$1 onAttained
INFO: Started all plugins
Workaround is to revert to the old version http://updates.jenkins-ci.org/download/plugins/scm-sync-configuration/
- is duplicated by
-
JENKINS-15300 StringIndexOutOfBounds
-
- Closed
-
- is related to
-
JENKINS-15511 NPE from PluginManager
-
- Resolved
-
[JENKINS-15285] scm-sync-configuration upgrade from 0.0.5 to 0.0.6 results in NullPointerException
I am having a very similar problem. The plug in disappears after manually installing the plug in through /pluginManager/advanced. We were upgrading from 0.0.4 to 0.0.6.
We are running Jenkins ver. 1.466.2.1 (Jenkins Enterprise by CloudBees 12.05).
This is the error we get in the logs:
INFO: Started all plugins Oct 10, 2012 2:10:39 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Initializing plugin scm-sync-configuration java.lang.NullPointerException at hudson.PluginManager$2$1$2.run(PluginManager.java:330) 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$6.runTask(Jenkins.java:840) 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) Oct 10, 2012 2:10:39 PM jenkins.InitReactorRunner$1 onAttained INFO: Prepared all plugins Oct 10, 2012 2:10:33 PM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading plugin scm-sync-configuration hudson.util.IOException2: Unable to load hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin from scm-sync-configuration at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:318) at hudson.PluginManager$2$1$1.run(PluginManager.java:314) 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$6.runTask(Jenkins.java:840) 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) Caused by: java.lang.ExceptionInInitializerError at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin.<clinit>(ScmSyncConfigurationPlugin.java:46) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:312) ... 9 more Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.charAt(Unknown Source) at java.util.regex.Matcher.appendReplacement(Unknown Source) at java.util.regex.Matcher.replaceAll(Unknown Source) at java.lang.String.replaceAll(Unknown Source) at hudson.plugins.scm_sync_configuration.strategies.model.PatternsEntityMatcher$1.apply(PatternsEntityMatcher.java:20) at hudson.plugins.scm_sync_configuration.strategies.model.PatternsEntityMatcher$1.apply(PatternsEntityMatcher.java:18) at com.google.common.collect.Iterators$8.next(Iterators.java:812) at java.util.AbstractCollection.toArray(Unknown Source) at hudson.plugins.scm_sync_configuration.strategies.model.PatternsEntityMatcher.<init>(PatternsEntityMatcher.java:27) at hudson.plugins.scm_sync_configuration.strategies.model.ClassAndFileConfigurationEntityMatcher.<init>(ClassAndFileConfigurationEntityMatcher.java:13) at hudson.plugins.scm_sync_configuration.strategies.impl.JobConfigScmSyncStrategy.<clinit>(JobConfigScmSyncStrategy.java:29) ... 17 more
Same problem, upgrading from 0.0.5 to 0.0.6 under Jenkins 1.447.2 / Windows Servers 2008 / Winstone. Plugin disappeared from Installed list.
INFO: Listed all plugins Oct 11, 2012 8:47:09 AM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Loading plugin scm-sync-configuration hudson.util.IOException2: Unable to load hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin from scm-sync-configuration at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:318) at hudson.PluginManager$2$1$1.run(PluginManager.java:294) 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:800) 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) Caused by: java.lang.ExceptionInInitializerError at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin.<clinit>(ScmSyncConfigurationPlugin.java:46) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:312) ... 9 more Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.charAt(Unknown Source) at java.util.regex.Matcher.appendReplacement(Unknown Source) at java.util.regex.Matcher.replaceAll(Unknown Source) at java.lang.String.replaceAll(Unknown Source) at hudson.plugins.scm_sync_configuration.strategies.model.PatternsEntityMatcher$1.apply(PatternsEntityMatcher.java:20) at hudson.plugins.scm_sync_configuration.strategies.model.PatternsEntityMatcher$1.apply(PatternsEntityMatcher.java:18) at com.google.common.collect.Iterators$8.next(Iterators.java:782) at java.util.AbstractCollection.toArray(Unknown Source) at hudson.plugins.scm_sync_configuration.strategies.model.PatternsEntityMatcher.<init>(PatternsEntityMatcher.java:27) at hudson.plugins.scm_sync_configuration.strategies.model.ClassAndFileConfigurationEntityMatcher.<init>(ClassAndFileConfigurationEntityMatcher.java:13) at hudson.plugins.scm_sync_configuration.strategies.impl.JobConfigScmSyncStrategy.<clinit>(JobConfigScmSyncStrategy.java:29) ... 17 more Oct 11, 2012 8:47:09 AM jenkins.InitReactorRunner$1 onAttained INFO: Prepared all plugins Oct 11, 2012 8:47:09 AM jenkins.InitReactorRunner$1 onTaskFailed SEVERE: Failed Initializing plugin scm-sync-configuration java.lang.NullPointerException at hudson.PluginManager$2$1$2.run(PluginManager.java:310) 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:800) 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) Oct 11, 2012 8:47:09 AM jenkins.InitReactorRunner$1 onAttained INFO: Started all plugins
Same with clean install of 0.0.6 (after manually deleting files).
Oct 11, 2012 9:24:44 AM hudson.model.UpdateCenter$DownloadJob run SEVERE: Failed to install SCM Sync configuration plugin hudson.util.IOException2: Failed to dynamically deploy this plugin at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1137) at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:955) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) 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) Caused by: hudson.util.IOException2: Failed to install scm-sync-configuration plugin at hudson.PluginManager.dynamicLoad(PluginManager.java:374) at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1133) ... 7 more Caused by: hudson.util.IOException2: Unable to load hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin from scm-sync-configuration at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:318) at hudson.PluginManager.dynamicLoad(PluginManager.java:365) ... 8 more Caused by: java.lang.ExceptionInInitializerError at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin.<clinit>(ScmSyncConfigurationPlugin.java:46) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at hudson.ClassicPluginStrategy.load(ClassicPluginStrategy.java:312) ... 9 more Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 1 at java.lang.String.charAt(Unknown Source) at java.util.regex.Matcher.appendReplacement(Unknown Source) at java.util.regex.Matcher.replaceAll(Unknown Source) at java.lang.String.replaceAll(Unknown Source) at hudson.plugins.scm_sync_configuration.strategies.model.PatternsEntityMatcher$1.apply(PatternsEntityMatcher.java:20) at hudson.plugins.scm_sync_configuration.strategies.model.PatternsEntityMatcher$1.apply(PatternsEntityMatcher.java:18) at com.google.common.collect.Iterators$8.next(Iterators.java:782) at java.util.AbstractCollection.toArray(Unknown Source) at hudson.plugins.scm_sync_configuration.strategies.model.PatternsEntityMatcher.<init>(PatternsEntityMatcher.java:27) at hudson.plugins.scm_sync_configuration.strategies.model.ClassAndFileConfigurationEntityMatcher.<init>(ClassAndFileConfigurationEntityMatcher.java:13) at hudson.plugins.scm_sync_configuration.strategies.impl.JobConfigScmSyncStrategy.<clinit>(JobConfigScmSyncStrategy.java:29) ... 17 more Oct 11, 2012 9:24:44 AM hudson.PluginManager dynamicLoad INFO: Attempting to dynamic load E:\Jenkins\plugins\scm-sync-configuration.jpi Oct 11, 2012 9:23:24 AM hudson.model.UpdateCenter$UpdateCenterConfiguration download INFO: Downloading SCM Sync configuration plugin Oct 11, 2012 9:23:23 AM hudson.model.UpdateCenter$DownloadJob run INFO: Starting the installation of SCM Sync configuration plugin
Hi, could you all confirm you're facing this issue under Windows ?
Code changed in jenkins
User: Frédéric Camblor
Path:
src/main/java/hudson/plugins/scm_sync_configuration/strategies/model/PatternsEntityMatcher.java
http://jenkins-ci.org/commit/scm-sync-configuration-plugin/c062e0f3e1fb95ec21e1c266b36d9b9ed21cf2bc
Log:
removed file separator transformer to fix JENKINS-15285
Compare: https://github.com/jenkinsci/scm-sync-configuration-plugin/compare/136e1798c8c7...c062e0f3e1fb
Reproduced under windows + fixed
Fix will be available in 0.0.6.1 which will be released soon
What is your jenkins version ?