Jenkins fails to startup JSyncArtifactManagerFactory

Issue

hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException 
  at hudson.WebAppMain$3.run(WebAppMain.java:237) 
Caused by: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException 
  at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269) 
  at jenkins.InitReactorRunner.run(InitReactorRunner.java:44) 
  at jenkins.model.Jenkins.executeReactor(Jenkins.java:914) 
  at jenkins.model.Jenkins.<init>(Jenkins.java:813) 
  at hudson.model.Hudson.<init>(Hudson.java:83) 
  at hudson.model.Hudson.<init>(Hudson.java:79) 
  at hudson.WebAppMain$3.run(WebAppMain.java:225) 
Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException 
  at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:109) 
  at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:169) 
  at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282) 
  at jenkins.model.Jenkins$7.runTask(Jenkins.java:903) 
  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:724) 
Caused by: java.lang.reflect.InvocationTargetException 
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
  at java.lang.reflect.Method.invoke(Method.java:606) 
  at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:105) 
  ... 8 more 
Caused by: java.lang.NullPointerException 
  at com.cloudbees.jenkins.plugins.jsync.archiver.JSyncArtifactManagerFactory.upgrade(JSyncArtifactManagerFactory.java:46) 
  ... 13 more

Environment

  • CloudBees Jenkins Enterprise
  • CloudBees Fast Archiver Plugin <= 5.3

Resolution

A fix is in the works to prevent this error from appearing, however as a *temporary* solution you can disable the CloudBees Fast Archiver plugin. To do that:

  1. CD to $JENKINS_HOME/plugins

  2. Execute the command: touch cloudbees-jsync-archiver.jpi.disabled

  3. Restart Jenkins.

This will disable the CloudBees fast archiver plugin.

Have more questions? Submit a request

4 Comments

  • 0
    Avatar
    George Nelson

  • 0
    Avatar
    Steven Christou

    Hello George Nelson,

     

    The touch command is not available in windows. The solution for windows is to create an empty file called "cloudbees-jsync-archiver.jpi.disabled"

  • 0
    Avatar
    Rupesh_phuyal Rupesh_phuyal

    I migrated Jenkins dir from one server to another and I got similar error but "touch cloudbees-jsync-archiver.jpi.disabled" didn't work for me. 

    Here is my error: 

    hudson.util.HudsonFailedToLoad: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException
    	at hudson.WebAppMain$3.run(WebAppMain.java:237)
    Caused by: org.jvnet.hudson.reactor.ReactorException: java.lang.Error: java.lang.reflect.InvocationTargetException
    	at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:269)
    	at jenkins.InitReactorRunner.run(InitReactorRunner.java:44)
    	at jenkins.model.Jenkins.executeReactor(Jenkins.java:935)
    	at jenkins.model.Jenkins.<init>(Jenkins.java:816)
    	at hudson.model.Hudson.<init>(Hudson.java:83)
    	at hudson.model.Hudson.<init>(Hudson.java:79)
    	at hudson.WebAppMain$3.run(WebAppMain.java:225)
    Caused by: java.lang.Error: java.lang.reflect.InvocationTargetException
    	at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:110)
    	at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:176)
    	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:282)
    	at jenkins.model.Jenkins$8.runTask(Jenkins.java:924)
    	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:1142)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    	at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.reflect.InvocationTargetException
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.lang.reflect.Method.invoke(Method.java:497)
    	at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:106)
    	... 8 more
    Caused by: java.lang.NoClassDefFoundError: com/cloudbees/opscenter/context/RemoteContext
    	at com.cloudbees.opscenter.analytics.reporter.RemoteContextReportingConfiguration$Provider.hasConfiguration(RemoteContextReportingConfiguration.java:60)
    	at com.cloudbees.opscenter.analytics.reporter.ReporterProvider.getReporter(ReporterProvider.java:28)
    	at com.cloudbees.opscenter.analytics.reporter.metrics.AperiodicMetricSubmitter.getRecurrencePeriod(AperiodicMetricSubmitter.java:158)
    	at hudson.model.AperiodicWork.getInitialDelay(AperiodicWork.java:83)
    	at hudson.model.AperiodicWork.init(AperiodicWork.java:96)
    	... 13 more
    Caused by: java.lang.ClassNotFoundException: com.cloudbees.opscenter.context.RemoteContext
    	at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
    	at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
    	at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    	... 18 more

    what could be the reason for this error?

     

    Edited by Rupesh_phuyal Rupesh_phuyal
  • 0
    Avatar
    Steven Christou

    Hello Rupesh_phuyal,

    The error you are receiving is not related to this issue. Please file a support ticket with cloudbees (support.cloudbees.com) to diagnose this issue further.

    Thank you,

    Steve.

     

Please sign in to leave a comment.