java exception when trying to create dumb slave

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

java exception when trying to create dumb slave

Brian Finney
When trying to create a dumb slave I keep getting the following error
no matter what fields I fill out or leave blank.  Any suggestions
would be very helpful.

This is the latest hudson running on debian.  Please let me know if
you need any more information.

Thanks
Brian

Status Code: 500

Exception:
Stacktrace:
java.lang.IllegalArgumentException: Failed to instantiate class
hudson.slaves.DumbSlave from
{"":["hudson.slaves.JNLPLauncher","hudson.slaves.RetentionStrategy$Always"],"crumb":"6312b9b6825b691e893fbaf237df921f","labelString":"test","launcher":{"command":"c:\\launch.cmd","host":"test","jvmOptions":"","password":["test",""],"port":"22","privatekey":"","stapler-class":["hudson.slaves.JNLPLauncher","hudson.slaves.CommandLauncher","hudson.os.windows.ManagedWindowsServiceLauncher","hudson.plugins.sshslaves.SSHLauncher","hudson.plugins.libvirt.VirtualMachineLauncher"],"tunnel":"","userName":"test","username":"","vmargs":""},"mode":"NORMAL","name":"builder","nodeDescription":"test","nodeProperties":{"stapler-class-bag":"true"},"numExecutors":"2","remoteFS":"c:\\hudson","retentionStrategy":{"stapler-class":"hudson.slaves.RetentionStrategy$Always"},"type":"hudson.slaves.DumbSlave$DescriptorImpl"}
        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:352)
        at hudson.model.Descriptor.newInstance(Descriptor.java:466)
        at hudson.model.ComputerSet.doDoCreateItem(ComputerSet.java:259)
        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:616)
        at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:235)
        at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:116)
        at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:57)
        at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:75)
        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:525)
        at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:145)
        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:525)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:441)
        at org.kohsuke.stapler.Stapler.service(Stapler.java:123)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
        at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
        at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
        at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:51)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
        at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:64)
        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
        at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
        at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
        at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:78)
        at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
        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 org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
        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:173)
        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:66)
        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:195)
        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
        at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
        at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
        at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
        at java.lang.Thread.run(Thread.java:636)
Caused by: java.lang.IllegalArgumentException: Failed to convert the
launcher parameter of the constructor public
hudson.slaves.DumbSlave(java.lang.String,java.lang.String,java.lang.String,java.lang.String,hudson.model.Node$Mode,java.lang.String,hudson.slaves.ComputerLauncher,hudson.slaves.RetentionStrategy,java.util.List)
throws java.io.IOException,hudson.model.Descriptor$FormException
        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:346)
        ... 56 more
Caused by: java.lang.IllegalArgumentException: Failed to instantiate
class hudson.slaves.ComputerLauncher from
{"command":"c:\\launch.cmd","host":"test","jvmOptions":"","password":["test",""],"port":"22","privatekey":"","stapler-class":["hudson.slaves.JNLPLauncher","hudson.slaves.CommandLauncher","hudson.os.windows.ManagedWindowsServiceLauncher","hudson.plugins.sshslaves.SSHLauncher","hudson.plugins.libvirt.VirtualMachineLauncher"],"tunnel":"","userName":"test","username":"","vmargs":""}
        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:352)
        at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:552)
        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:344)
        ... 56 more
Caused by: java.lang.IllegalArgumentException: Class
["hudson.slaves.JNLPLauncher","hudson.slaves.CommandLauncher","hudson.os.windows.ManagedWindowsServiceLauncher","hudson.plugins.sshslaves.SSHLauncher","hudson.plugins.libvirt.VirtualMachineLauncher"]
is specified in JSON, but no such class found in
hudson.PluginManager$UberClassLoader@159d510
        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:327)
        ... 58 more
Caused by: java.lang.ClassNotFoundException:
["hudson.slaves.JNLPLauncher","hudson.slaves.CommandLauncher","hudson.os.windows.ManagedWindowsServiceLauncher","hudson.plugins.sshslaves.SSHLauncher","hudson.plugins.libvirt.VirtualMachineLauncher"]
        at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:596)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:322)
        ... 58 more

Generated by Winstone Servlet Engine v0.9.10 at Fri Jun 25 11:28:54 PDT 2010

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: java exception when trying to create dumb slave

Kohsuke Kawaguchi
Administrator
The browser is sending the server a bogus data. I'm not sure how that
happened, though.

What browser did you use, and did you see any JavaScript error on the browser?

2010/6/25 Brian Finney <[hidden email]>:

> When trying to create a dumb slave I keep getting the following error
> no matter what fields I fill out or leave blank.  Any suggestions
> would be very helpful.
>
> This is the latest hudson running on debian.  Please let me know if
> you need any more information.
>
> Thanks
> Brian
>
> Status Code: 500
>
> Exception:
> Stacktrace:
> java.lang.IllegalArgumentException: Failed to instantiate class
> hudson.slaves.DumbSlave from
> {"":["hudson.slaves.JNLPLauncher","hudson.slaves.RetentionStrategy$Always"],"crumb":"6312b9b6825b691e893fbaf237df921f","labelString":"test","launcher":{"command":"c:\\launch.cmd","host":"test","jvmOptions":"","password":["test",""],"port":"22","privatekey":"","stapler-class":["hudson.slaves.JNLPLauncher","hudson.slaves.CommandLauncher","hudson.os.windows.ManagedWindowsServiceLauncher","hudson.plugins.sshslaves.SSHLauncher","hudson.plugins.libvirt.VirtualMachineLauncher"],"tunnel":"","userName":"test","username":"","vmargs":""},"mode":"NORMAL","name":"builder","nodeDescription":"test","nodeProperties":{"stapler-class-bag":"true"},"numExecutors":"2","remoteFS":"c:\\hudson","retentionStrategy":{"stapler-class":"hudson.slaves.RetentionStrategy$Always"},"type":"hudson.slaves.DumbSlave$DescriptorImpl"}
>        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:352)
>        at hudson.model.Descriptor.newInstance(Descriptor.java:466)
>        at hudson.model.ComputerSet.doDoCreateItem(ComputerSet.java:259)
>        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:616)
>        at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:235)
>        at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:116)
>        at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:57)
>        at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:75)
>        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
>        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:525)
>        at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:145)
>        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
>        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:525)
>        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:441)
>        at org.kohsuke.stapler.Stapler.service(Stapler.java:123)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
>        at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
>        at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
>        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
>        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
>        at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:51)
>        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
>        at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:64)
>        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
>        at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
>        at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
>        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
>        at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:78)
>        at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
>        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
>        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 org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
>        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:173)
>        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:66)
>        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:195)
>        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
>        at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
>        at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
>        at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
>        at java.lang.Thread.run(Thread.java:636)
> Caused by: java.lang.IllegalArgumentException: Failed to convert the
> launcher parameter of the constructor public
> hudson.slaves.DumbSlave(java.lang.String,java.lang.String,java.lang.String,java.lang.String,hudson.model.Node$Mode,java.lang.String,hudson.slaves.ComputerLauncher,hudson.slaves.RetentionStrategy,java.util.List)
> throws java.io.IOException,hudson.model.Descriptor$FormException
>        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:346)
>        ... 56 more
> Caused by: java.lang.IllegalArgumentException: Failed to instantiate
> class hudson.slaves.ComputerLauncher from
> {"command":"c:\\launch.cmd","host":"test","jvmOptions":"","password":["test",""],"port":"22","privatekey":"","stapler-class":["hudson.slaves.JNLPLauncher","hudson.slaves.CommandLauncher","hudson.os.windows.ManagedWindowsServiceLauncher","hudson.plugins.sshslaves.SSHLauncher","hudson.plugins.libvirt.VirtualMachineLauncher"],"tunnel":"","userName":"test","username":"","vmargs":""}
>        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:352)
>        at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:552)
>        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:344)
>        ... 56 more
> Caused by: java.lang.IllegalArgumentException: Class
> ["hudson.slaves.JNLPLauncher","hudson.slaves.CommandLauncher","hudson.os.windows.ManagedWindowsServiceLauncher","hudson.plugins.sshslaves.SSHLauncher","hudson.plugins.libvirt.VirtualMachineLauncher"]
> is specified in JSON, but no such class found in
> hudson.PluginManager$UberClassLoader@159d510
>        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:327)
>        ... 58 more
> Caused by: java.lang.ClassNotFoundException:
> ["hudson.slaves.JNLPLauncher","hudson.slaves.CommandLauncher","hudson.os.windows.ManagedWindowsServiceLauncher","hudson.plugins.sshslaves.SSHLauncher","hudson.plugins.libvirt.VirtualMachineLauncher"]
>        at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:596)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
>        at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
>        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:322)
>        ... 58 more
>
> Generated by Winstone Servlet Engine v0.9.10 at Fri Jun 25 11:28:54 PDT 2010
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>



--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: java exception when trying to create dumb slave

Brian Finney
This was using Chrome from an Ubuntu box.  I did not see any
javascript errors.  However when I would change the type of slave
connection (jnlp,dcom,ssh,...), I believe the next few form fields are
supposed to change according to the selection but they did not.

Thanks
Brian

On Sat, Jun 26, 2010 at 6:53 AM, Kohsuke Kawaguchi <[hidden email]> wrote:

> The browser is sending the server a bogus data. I'm not sure how that
> happened, though.
>
> What browser did you use, and did you see any JavaScript error on the browser?
>
> 2010/6/25 Brian Finney <[hidden email]>:
>> When trying to create a dumb slave I keep getting the following error
>> no matter what fields I fill out or leave blank.  Any suggestions
>> would be very helpful.
>>
>> This is the latest hudson running on debian.  Please let me know if
>> you need any more information.
>>
>> Thanks
>> Brian
>>
>> Status Code: 500
>>
>> Exception:
>> Stacktrace:
>> java.lang.IllegalArgumentException: Failed to instantiate class
>> hudson.slaves.DumbSlave from
>> {"":["hudson.slaves.JNLPLauncher","hudson.slaves.RetentionStrategy$Always"],"crumb":"6312b9b6825b691e893fbaf237df921f","labelString":"test","launcher":{"command":"c:\\launch.cmd","host":"test","jvmOptions":"","password":["test",""],"port":"22","privatekey":"","stapler-class":["hudson.slaves.JNLPLauncher","hudson.slaves.CommandLauncher","hudson.os.windows.ManagedWindowsServiceLauncher","hudson.plugins.sshslaves.SSHLauncher","hudson.plugins.libvirt.VirtualMachineLauncher"],"tunnel":"","userName":"test","username":"","vmargs":""},"mode":"NORMAL","name":"builder","nodeDescription":"test","nodeProperties":{"stapler-class-bag":"true"},"numExecutors":"2","remoteFS":"c:\\hudson","retentionStrategy":{"stapler-class":"hudson.slaves.RetentionStrategy$Always"},"type":"hudson.slaves.DumbSlave$DescriptorImpl"}
>>        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:352)
>>        at hudson.model.Descriptor.newInstance(Descriptor.java:466)
>>        at hudson.model.ComputerSet.doDoCreateItem(ComputerSet.java:259)
>>        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:616)
>>        at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:235)
>>        at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:116)
>>        at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:57)
>>        at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:75)
>>        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
>>        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:525)
>>        at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:145)
>>        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
>>        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:525)
>>        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:441)
>>        at org.kohsuke.stapler.Stapler.service(Stapler.java:123)
>>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
>>        at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
>>        at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
>>        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
>>        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
>>        at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:51)
>>        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
>>        at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:64)
>>        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
>>        at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
>>        at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
>>        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
>>        at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:78)
>>        at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
>>        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
>>        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 org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
>>        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:173)
>>        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:66)
>>        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:195)
>>        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
>>        at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
>>        at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
>>        at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
>>        at java.lang.Thread.run(Thread.java:636)
>> Caused by: java.lang.IllegalArgumentException: Failed to convert the
>> launcher parameter of the constructor public
>> hudson.slaves.DumbSlave(java.lang.String,java.lang.String,java.lang.String,java.lang.String,hudson.model.Node$Mode,java.lang.String,hudson.slaves.ComputerLauncher,hudson.slaves.RetentionStrategy,java.util.List)
>> throws java.io.IOException,hudson.model.Descriptor$FormException
>>        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:346)
>>        ... 56 more
>> Caused by: java.lang.IllegalArgumentException: Failed to instantiate
>> class hudson.slaves.ComputerLauncher from
>> {"command":"c:\\launch.cmd","host":"test","jvmOptions":"","password":["test",""],"port":"22","privatekey":"","stapler-class":["hudson.slaves.JNLPLauncher","hudson.slaves.CommandLauncher","hudson.os.windows.ManagedWindowsServiceLauncher","hudson.plugins.sshslaves.SSHLauncher","hudson.plugins.libvirt.VirtualMachineLauncher"],"tunnel":"","userName":"test","username":"","vmargs":""}
>>        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:352)
>>        at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:552)
>>        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:344)
>>        ... 56 more
>> Caused by: java.lang.IllegalArgumentException: Class
>> ["hudson.slaves.JNLPLauncher","hudson.slaves.CommandLauncher","hudson.os.windows.ManagedWindowsServiceLauncher","hudson.plugins.sshslaves.SSHLauncher","hudson.plugins.libvirt.VirtualMachineLauncher"]
>> is specified in JSON, but no such class found in
>> hudson.PluginManager$UberClassLoader@159d510
>>        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:327)
>>        ... 58 more
>> Caused by: java.lang.ClassNotFoundException:
>> ["hudson.slaves.JNLPLauncher","hudson.slaves.CommandLauncher","hudson.os.windows.ManagedWindowsServiceLauncher","hudson.plugins.sshslaves.SSHLauncher","hudson.plugins.libvirt.VirtualMachineLauncher"]
>>        at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:596)
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
>>        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:322)
>>        ... 58 more
>>
>> Generated by Winstone Servlet Engine v0.9.10 at Fri Jun 25 11:28:54 PDT 2010
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>
>
>
> --
> Kohsuke Kawaguchi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: java exception when trying to create dumb slave

Brian Finney
Disabling the libvirt slave plugin resolved this issue.  Seems that
plugin isn't particular enough about when it adds it's fields in.

On Sat, Jun 26, 2010 at 10:59 AM, Brian Finney <[hidden email]> wrote:

> This was using Chrome from an Ubuntu box.  I did not see any
> javascript errors.  However when I would change the type of slave
> connection (jnlp,dcom,ssh,...), I believe the next few form fields are
> supposed to change according to the selection but they did not.
>
> Thanks
> Brian
>
> On Sat, Jun 26, 2010 at 6:53 AM, Kohsuke Kawaguchi <[hidden email]> wrote:
>> The browser is sending the server a bogus data. I'm not sure how that
>> happened, though.
>>
>> What browser did you use, and did you see any JavaScript error on the browser?
>>
>> 2010/6/25 Brian Finney <[hidden email]>:
>>> When trying to create a dumb slave I keep getting the following error
>>> no matter what fields I fill out or leave blank.  Any suggestions
>>> would be very helpful.
>>>
>>> This is the latest hudson running on debian.  Please let me know if
>>> you need any more information.
>>>
>>> Thanks
>>> Brian
>>>
>>> Status Code: 500
>>>
>>> Exception:
>>> Stacktrace:
>>> java.lang.IllegalArgumentException: Failed to instantiate class
>>> hudson.slaves.DumbSlave from
>>> {"":["hudson.slaves.JNLPLauncher","hudson.slaves.RetentionStrategy$Always"],"crumb":"6312b9b6825b691e893fbaf237df921f","labelString":"test","launcher":{"command":"c:\\launch.cmd","host":"test","jvmOptions":"","password":["test",""],"port":"22","privatekey":"","stapler-class":["hudson.slaves.JNLPLauncher","hudson.slaves.CommandLauncher","hudson.os.windows.ManagedWindowsServiceLauncher","hudson.plugins.sshslaves.SSHLauncher","hudson.plugins.libvirt.VirtualMachineLauncher"],"tunnel":"","userName":"test","username":"","vmargs":""},"mode":"NORMAL","name":"builder","nodeDescription":"test","nodeProperties":{"stapler-class-bag":"true"},"numExecutors":"2","remoteFS":"c:\\hudson","retentionStrategy":{"stapler-class":"hudson.slaves.RetentionStrategy$Always"},"type":"hudson.slaves.DumbSlave$DescriptorImpl"}
>>>        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:352)
>>>        at hudson.model.Descriptor.newInstance(Descriptor.java:466)
>>>        at hudson.model.ComputerSet.doDoCreateItem(ComputerSet.java:259)
>>>        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:616)
>>>        at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:235)
>>>        at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:116)
>>>        at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:57)
>>>        at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:75)
>>>        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
>>>        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:525)
>>>        at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:145)
>>>        at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
>>>        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:525)
>>>        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:441)
>>>        at org.kohsuke.stapler.Stapler.service(Stapler.java:123)
>>>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
>>>        at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
>>>        at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
>>>        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
>>>        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
>>>        at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:51)
>>>        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
>>>        at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:64)
>>>        at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
>>>        at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
>>>        at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
>>>        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
>>>        at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:78)
>>>        at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
>>>        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
>>>        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 org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
>>>        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:173)
>>>        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:66)
>>>        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:195)
>>>        at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
>>>        at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
>>>        at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
>>>        at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
>>>        at java.lang.Thread.run(Thread.java:636)
>>> Caused by: java.lang.IllegalArgumentException: Failed to convert the
>>> launcher parameter of the constructor public
>>> hudson.slaves.DumbSlave(java.lang.String,java.lang.String,java.lang.String,java.lang.String,hudson.model.Node$Mode,java.lang.String,hudson.slaves.ComputerLauncher,hudson.slaves.RetentionStrategy,java.util.List)
>>> throws java.io.IOException,hudson.model.Descriptor$FormException
>>>        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:346)
>>>        ... 56 more
>>> Caused by: java.lang.IllegalArgumentException: Failed to instantiate
>>> class hudson.slaves.ComputerLauncher from
>>> {"command":"c:\\launch.cmd","host":"test","jvmOptions":"","password":["test",""],"port":"22","privatekey":"","stapler-class":["hudson.slaves.JNLPLauncher","hudson.slaves.CommandLauncher","hudson.os.windows.ManagedWindowsServiceLauncher","hudson.plugins.sshslaves.SSHLauncher","hudson.plugins.libvirt.VirtualMachineLauncher"],"tunnel":"","userName":"test","username":"","vmargs":""}
>>>        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:352)
>>>        at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:552)
>>>        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:344)
>>>        ... 56 more
>>> Caused by: java.lang.IllegalArgumentException: Class
>>> ["hudson.slaves.JNLPLauncher","hudson.slaves.CommandLauncher","hudson.os.windows.ManagedWindowsServiceLauncher","hudson.plugins.sshslaves.SSHLauncher","hudson.plugins.libvirt.VirtualMachineLauncher"]
>>> is specified in JSON, but no such class found in
>>> hudson.PluginManager$UberClassLoader@159d510
>>>        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:327)
>>>        ... 58 more
>>> Caused by: java.lang.ClassNotFoundException:
>>> ["hudson.slaves.JNLPLauncher","hudson.slaves.CommandLauncher","hudson.os.windows.ManagedWindowsServiceLauncher","hudson.plugins.sshslaves.SSHLauncher","hudson.plugins.libvirt.VirtualMachineLauncher"]
>>>        at hudson.PluginManager$UberClassLoader.findClass(PluginManager.java:596)
>>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
>>>        at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
>>>        at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:322)
>>>        ... 58 more
>>>
>>> Generated by Winstone Servlet Engine v0.9.10 at Fri Jun 25 11:28:54 PDT 2010
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>>
>>
>>
>>
>> --
>> Kohsuke Kawaguchi
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: java exception when trying to create dumb slave

Alex Barna
I had the same problem (Chrome). I also disabled libvirt and it now works. Should it be reported to JIRA ?