javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class hudson.slaves.DumbSlave from {"name":"worker","nodeDescription":"automatically created","numExecutors":1,"remoteFS":"/tmp","labelString":"ruby","mode":"NORMAL","type":"hudson.slaves.DumbSlave$DescriptorImpl","retentionStrategy":{"stapler-class":"hudson.slaves.RetentionStrategy$Always"},"nodeProperties":{"stapler-class-bag":"true"},"launcher":{"stapler-class":"hudson.plugins.sshslaves.SSHLauncher","host":"buster-do-02.crowdtap.com","port":22,"username":"user","privatekey":"ssh-key"}}


Solutions on the web559

Solution icon of github
$DescriptorImpl","retentionStrategy":{"stapler-class":"hudson.slaves.RetentionStrategy$Always"},"nodeProperties":{"stapler-class-bag":"true"},"launcher":{"stapler-class":"hudson.plugins.sshslaves.SSHLauncher","host":"buster-do-02.crowdtap.com","port":22,"username":"user","privatekey":"ssh-key"}}

Solution icon of jenkins
via Jenkins JIRA by Charese Williams, 1 year ago
java.lang.RuntimeException: Failed to instantiate class hudson.slaves.DumbSlave from {"name":"Perm-Parallel Build Node (i-414661ff)","nodeDescription":"","numExecutors":"1","remoteFS":"/opt/jenkins","labelString":"","mode":"NORMAL

Solution icon of jenkins
via Jenkins JIRA by Charese Williams, 1 year ago
java.lang.RuntimeException: Failed to instantiate class hudson.slaves.DumbSlave from {"name":"Perm-Parallel Build Node (i-414661ff)","nodeDescription":"","numExecutors":"1","remoteFS":"/opt/jenkins","labelString":"","mode":"NORMAL

Solution icon of googlegroups
java.lang.RuntimeException: Failed to instantiate class hudson.slaves.DumbSlave from {"name":"70GiB","nodeDescription":"","numExecutors":"1","remoteFS":"/home/jenkins","labelString":"70GiB","mode":"EXCLUSIVE

Solution icon of github
via GitHub by prologic
, 1 year ago
java.lang.RuntimeException: Failed to instantiate class hudson.slaves.DumbSlave from {"name":"test","nodeDescription":"","numExecutors":"1","remoteFS":"/home/jenkins","labelString":"","mode":"NORMAL

Solution icon of github
java.lang.RuntimeException: Failed to instantiate class hudson.slaves.DumbSlave from {"name":"docker node","nodeDescription":"","numExecutors":"1","remoteFS":"/home/jenkins","labelString":"","mode":"NORMAL

Solution icon of github
java.lang.RuntimeException: Failed to instantiate class hudson.slaves.DumbSlave from {"name":"docker","nodeDescription":"","numExecutors":"1","remoteFS":"/home/jenkins","labelString":"","mode":"NORMAL

Solution icon of github
java.lang.RuntimeException: Failed to instantiate class hudson.slaves.DumbSlave from {"name":"foo","nodeDescription":"","numExecutors":"1","remoteFS":"/home/jenkins","labelString":"","mode":"NORMAL

Solution icon of github
via GitHub by magnayn
, 1 year ago
java.lang.RuntimeException: Failed to instantiate class hudson.slaves.DumbSlave from {"name":"docker","nodeDescription":"","numExecutors":"1","remoteFS":"/home/jenkins","labelString":"","mode":"NORMAL

Solution icon of googlegroups
via Google Groups by rmiddle, 1 year ago
java.lang.RuntimeException: Failed to instantiate class hudson.slaves.DumbSlave from {"":["hudson.plugins.sshslaves.SSHLauncher","hudson.slaves.RetentionStrategy$Always"],"labelString":"ubuntu","launcher":{"":"0","account":{"stapler-class

Stack trace

javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class hudson.slaves.DumbSlave from {"name":"worker","nodeDescription":"automatically created","numExecutors":1,"remoteFS":"/tmp","labelString":"ruby","mode":"NORMAL","type":"hudson.slaves.DumbSlave$DescriptorImpl","retentionStrategy":{"stapler-class":"hudson.slaves.RetentionStrategy$Always"},"nodeProperties":{"stapler-class-bag":"true"},"launcher":{"stapler-class":"hudson.plugins.sshslaves.SSHLauncher","host":"buster-do-02.crowdtap.com","port":22,"username":"user","privatekey":"ssh-key"}}
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:735)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:799)
	at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:201)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:685)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:799)
	at org.kohsuke.stapler.Stapler.invoke(Stapler.java:587)
	at org.kohsuke.stapler.Stapler.service(Stapler.java:218)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
	at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
	at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
	at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
	at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
	at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
	at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
	at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:55)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
	at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
	at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
	at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
	at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
	at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
	at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
	at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
	at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
	at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
	at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227)
	at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
	at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
	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:722)
Caused by: java.lang.RuntimeException: Failed to instantiate class hudson.slaves.DumbSlave from {"name":"buster-do-02","nodeDescription":"automatically created","numExecutors":1,"remoteFS":"/home/buster","labelString":"ruby","mode":"NORMAL","type":"hudson.slaves.DumbSlave$DescriptorImpl","retentionStrategy":{"stapler-class":"hudson.slaves.RetentionStrategy$Always"},"nodeProperties":{"stapler-class-bag":"true"},"launcher":{"stapler-class":"hudson.plugins.sshslaves.SSHLauncher","host":"buster-do-02.crowdtap.com","port":22,"username":"buster","privatekey":"/home/buster/.ssh/id_rsa"}}
	at hudson.model.Descriptor.newInstance(Descriptor.java:576)
	at hudson.model.ComputerSet.doDoCreateItem(ComputerSet.java:287)
	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:601)
	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:297)
	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:160)
	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:95)
	at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:685)
	... 58 more
Caused by: java.lang.NullPointerException
	at com.cloudbees.plugins.credentials.matchers.IdMatcher.<init>(IdMatcher.java:49)
	at com.cloudbees.plugins.credentials.CredentialsMatchers.withId(CredentialsMatchers.java:112)
	at hudson.plugins.sshslaves.SSHLauncher.lookupSystemCredentials(SSHLauncher.java:228)
	at hudson.plugins.sshslaves.SSHLauncher.<init>(SSHLauncher.java:224)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
	at org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:439)
	at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:77)
	at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:595)
	at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:392)
	at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:589)
	at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:392)
	at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:388)
	at hudson.model.Descriptor.newInstance(Descriptor.java:567)
	... 69 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago