javax.servlet.ServletException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • gradle plugin version: 1.22, conditional-buildstep: 1.2.2 Status Code: 500 Exception: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder from {"":["0","0","8"],"condition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"buildStep":{"stapler-class":"hudson.plugins.gradle.Gradle","useWrapper":{"value":"false","gradleName":"(Default)"},"description":"","switches":"","tasks":"","rootBuildScriptDir":"","buildFile":""},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder","kind":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder"} Stacktrace: javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder from {"":["0","0","8"],"condition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"buildStep":{"stapler-class":"hudson.plugins.gradle.Gradle","useWrapper":{"value":"false","gradleName":"(Default)"},"description":"","switches":"","tasks":"","rootBuildScriptDir":"","buildFile":""},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder","kind":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder"} at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:719) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:583) at org.kohsuke.stapler.Stapler.service(Stapler.java:214) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:594) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1366) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95) at com.marvelution.hudson.plugins.apiv2.servlet.filter.HudsonAPIV2ServletFilter.doFilter(HudsonAPIV2ServletFilter.java:112) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:179) at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:86) at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:84) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98) at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:66) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at org.jenkinsci.plugins.reverse_proxy_auth.ReverseProxySecurityRealm$1.doFilter(ReverseProxySecurityRealm.java:92) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:484) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:499) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) at org.eclipse.jetty.server.Server.handle(Server.java:351) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:900) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:954) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:857) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder from {"":["0","0","8"],"condition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"buildStep":{"stapler-class":"hudson.plugins.gradle.Gradle","useWrapper":{"value":"false","gradleName":"(Default)"},"description":"","switches":"","tasks":"","rootBuildScriptDir":"","buildFile":""},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder","kind":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder"} at hudson.model.Descriptor.newInstance(Descriptor.java:602) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:941) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:926) at hudson.util.DescribableList.rebuildHetero(DescribableList.java:203) at hudson.model.Project.submit(Project.java:200) at hudson.model.Job.doConfigSubmit(Job.java:1076) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:758) at sun.reflect.GeneratedMethodAccessor804.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90) 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:677) ... 59 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder from {"":["0","0","8"],"condition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"buildStep":{"stapler-class":"hudson.plugins.gradle.Gradle","useWrapper":{"value":"false","gradleName":"(Default)"},"description":"","switches":"","tasks":"","rootBuildScriptDir":"","buildFile":""},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder","kind":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:596) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:391) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:387) at hudson.model.Descriptor.newInstance(Descriptor.java:593) ... 74 more Caused by: java.lang.IllegalArgumentException: Failed to convert the buildStep parameter of the constructor public org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder(hudson.tasks.BuildStep,org.jenkins_ci.plugins.run_condition.RunCondition,org.jenkins_ci.plugins.run_condition.BuildStepRunner) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:590) ... 77 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate interface hudson.tasks.BuildStep from {"stapler-class":"hudson.plugins.gradle.Gradle","useWrapper":{"value":"false","gradleName":"(Default)"},"description":"","switches":"","tasks":"","rootBuildScriptDir":"","buildFile":""} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:596) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:391) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:588) ... 77 more Caused by: java.lang.IllegalArgumentException: Failed to convert the useWrapper parameter of the constructor public hudson.plugins.gradle.Gradle(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,boolean,boolean,boolean) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:590) ... 79 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate boolean from {"value":"false","gradleName":"(Default)"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:596) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:391) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:588) ... 79 more Caused by: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of boolean at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:176) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:575) ... 81 more
    via by Vladimir Trubnikov,
  • gradle plugin version: 1.22, conditional-buildstep: 1.2.2 Status Code: 500 Exception: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder from {"":["0","0","8"],"condition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"buildStep":{"stapler-class":"hudson.plugins.gradle.Gradle","useWrapper":{"value":"false","gradleName":"(Default)"},"description":"","switches":"","tasks":"","rootBuildScriptDir":"","buildFile":""},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder","kind":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder"} Stacktrace: javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder from {"":["0","0","8"],"condition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"buildStep":{"stapler-class":"hudson.plugins.gradle.Gradle","useWrapper":{"value":"false","gradleName":"(Default)"},"description":"","switches":"","tasks":"","rootBuildScriptDir":"","buildFile":""},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder","kind":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder"} at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:719) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:583) at org.kohsuke.stapler.Stapler.service(Stapler.java:214) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:594) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1366) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95) at com.marvelution.hudson.plugins.apiv2.servlet.filter.HudsonAPIV2ServletFilter.doFilter(HudsonAPIV2ServletFilter.java:112) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:179) at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:86) at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:84) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98) at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:66) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at org.jenkinsci.plugins.reverse_proxy_auth.ReverseProxySecurityRealm$1.doFilter(ReverseProxySecurityRealm.java:92) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:484) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:499) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) at org.eclipse.jetty.server.Server.handle(Server.java:351) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:900) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:954) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:857) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder from {"":["0","0","8"],"condition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"buildStep":{"stapler-class":"hudson.plugins.gradle.Gradle","useWrapper":{"value":"false","gradleName":"(Default)"},"description":"","switches":"","tasks":"","rootBuildScriptDir":"","buildFile":""},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder","kind":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder"} at hudson.model.Descriptor.newInstance(Descriptor.java:602) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:941) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:926) at hudson.util.DescribableList.rebuildHetero(DescribableList.java:203) at hudson.model.Project.submit(Project.java:200) at hudson.model.Job.doConfigSubmit(Job.java:1076) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:758) at sun.reflect.GeneratedMethodAccessor804.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90) 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:677) ... 59 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder from {"":["0","0","8"],"condition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"buildStep":{"stapler-class":"hudson.plugins.gradle.Gradle","useWrapper":{"value":"false","gradleName":"(Default)"},"description":"","switches":"","tasks":"","rootBuildScriptDir":"","buildFile":""},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder","kind":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:596) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:391) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:387) at hudson.model.Descriptor.newInstance(Descriptor.java:593) ... 74 more Caused by: java.lang.IllegalArgumentException: Failed to convert the buildStep parameter of the constructor public org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder(hudson.tasks.BuildStep,org.jenkins_ci.plugins.run_condition.RunCondition,org.jenkins_ci.plugins.run_condition.BuildStepRunner) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:590) ... 77 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate interface hudson.tasks.BuildStep from {"stapler-class":"hudson.plugins.gradle.Gradle","useWrapper":{"value":"false","gradleName":"(Default)"},"description":"","switches":"","tasks":"","rootBuildScriptDir":"","buildFile":""} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:596) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:391) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:588) ... 77 more Caused by: java.lang.IllegalArgumentException: Failed to convert the useWrapper parameter of the constructor public hudson.plugins.gradle.Gradle(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,boolean,boolean,boolean) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:590) ... 79 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate boolean from {"value":"false","gradleName":"(Default)"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:596) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:391) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:588) ... 79 more Caused by: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of boolean at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:176) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:575) ... 81 more
    via by Vladimir Trubnikov,
  • 1) add a postbuildscript to postbuild section 2) Add build step => pick 'Execute Ruby script' 3) add some ruby code as seen below 4) click save => leads to Status Code 500 Status Code: 500 Exception: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.postbuildscript.PostBuildScript from {"buildStep":{"kind":"hudson.plugins.ruby.Ruby","ruby":"require 'net/ssh'\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp3file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_3_tail.txt\", \"w\")\n\trecapp3file.write(stdout)\n\trecapp3file.close\nend\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp4file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_4_tail.txt\", \"w\")\n\trecapp4file.write(stdout)\n\trecapp4file.close\nend","stapler-class":"hudson.plugins.ruby.Ruby"},"kind":"org.jenkinsci.plugins.postbuildscript.PostBuildScript","scriptOnlyIfSuccess":false,"stapler-class":"org.jenkinsci.plugins.postbuildscript.PostBuildScript"} Stacktrace: javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.postbuildscript.PostBuildScript from {"buildStep":{"kind":"hudson.plugins.ruby.Ruby","ruby":"require 'net/ssh'\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp3file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_3_tail.txt\", \"w\")\n\trecapp3file.write(stdout)\n\trecapp3file.close\nend\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp4file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_4_tail.txt\", \"w\")\n\trecapp4file.write(stdout)\n\trecapp4file.close\nend","stapler-class":"hudson.plugins.ruby.Ruby"},"kind":"org.jenkinsci.plugins.postbuildscript.PostBuildScript","scriptOnlyIfSuccess":false,"stapler-class":"org.jenkinsci.plugins.postbuildscript.PostBuildScript"} at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:615) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:487) at org.kohsuke.stapler.Stapler.service(Stapler.java:164) 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:95) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:179) at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:86) at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:84) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98) at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) 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 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 jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:63) 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:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50) 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:215) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.postbuildscript.PostBuildScript from {"buildStep":{"kind":"hudson.plugins.ruby.Ruby","ruby":"require 'net/ssh'\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp3file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_3_tail.txt\", \"w\")\n\trecapp3file.write(stdout)\n\trecapp3file.close\nend\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp4file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_4_tail.txt\", \"w\")\n\trecapp4file.write(stdout)\n\trecapp4file.close\nend","stapler-class":"hudson.plugins.ruby.Ruby"},"kind":"org.jenkinsci.plugins.postbuildscript.PostBuildScript","scriptOnlyIfSuccess":false,"stapler-class":"org.jenkinsci.plugins.postbuildscript.PostBuildScript"} at hudson.model.Descriptor.newInstance(Descriptor.java:602) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:939) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:926) at hudson.util.DescribableList.rebuildHetero(DescribableList.java:203) at hudson.model.Project.submit(Project.java:201) at hudson.model.Job.doConfigSubmit(Job.java:1045) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:722) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90) 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:573) ... 67 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate class org.jenkinsci.plugins.postbuildscript.PostBuildScript from {"buildStep":{"kind":"hudson.plugins.ruby.Ruby","ruby":"require 'net/ssh'\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp3file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_3_tail.txt\", \"w\")\n\trecapp3file.write(stdout)\n\trecapp3file.close\nend\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp4file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_4_tail.txt\", \"w\")\n\trecapp4file.write(stdout)\n\trecapp4file.close\nend","stapler-class":"hudson.plugins.ruby.Ruby"},"kind":"org.jenkinsci.plugins.postbuildscript.PostBuildScript","scriptOnlyIfSuccess":false,"stapler-class":"org.jenkinsci.plugins.postbuildscript.PostBuildScript"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:582) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:377) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:373) at hudson.model.Descriptor.newInstance(Descriptor.java:593) ... 83 more Caused by: java.lang.IllegalArgumentException: Failed to convert the buildStep parameter of the constructor public org.jenkinsci.plugins.postbuildscript.PostBuildScript(java.util.List,java.util.List,java.util.List,boolean,java.util.List) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:576) ... 86 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate interface hudson.tasks.BuildStep from {"kind":"hudson.plugins.ruby.Ruby","ruby":"require 'net/ssh'\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp3file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_3_tail.txt\", \"w\")\n\trecapp3file.write(stdout)\n\trecapp3file.close\nend\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp4file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_4_tail.txt\", \"w\")\n\trecapp4file.write(stdout)\n\trecapp4file.close\nend","stapler-class":"hudson.plugins.ruby.Ruby"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:582) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:618) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:377) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:574) ... 86 more Caused by: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class hudson.plugins.ruby.Ruby at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:176) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:561) ... 89 more
    via by robsimon,
  • Exception: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder from {"":["0","0"],"conditionalbuilders":{"classPath":"","groovyName":"(Default)","javaOpts":"","kind":"hudson.plugins.groovy.Groovy","parameters":"","properties":"","scriptParameters":"","scriptSource":{"command":"print \"a\"","value":"0"},"stapler-class":"hudson.plugins.groovy.Groovy"},"kind":"org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder","runCondition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder"} Stacktrace: javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder from {"":["0","0"],"conditionalbuilders":{"classPath":"","groovyName":"(Default)","javaOpts":"","kind":"hudson.plugins.groovy.Groovy","parameters":"","properties":"","scriptParameters":"","scriptSource":{"command":"print \"a\"","value":"0"},"stapler-class":"hudson.plugins.groovy.Groovy"},"kind":"org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder","runCondition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder"} at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:615) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:487) at org.kohsuke.stapler.Stapler.service(Stapler.java:164) 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:95) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) 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 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 jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:63) 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:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50) 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:215) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder from {"":["0","0"],"conditionalbuilders":{"classPath":"","groovyName":"(Default)","javaOpts":"","kind":"hudson.plugins.groovy.Groovy","parameters":"","properties":"","scriptParameters":"","scriptSource":{"command":"print \"a\"","value":"0"},"stapler-class":"hudson.plugins.groovy.Groovy"},"kind":"org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder","runCondition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder"} at hudson.model.Descriptor.newInstance(Descriptor.java:585) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:922) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:909) at hudson.util.DescribableList.rebuildHetero(DescribableList.java:203) at hudson.model.Project.submit(Project.java:202) at hudson.model.Job.doConfigSubmit(Job.java:1045) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:723) at sun.reflect.GeneratedMethodAccessor541.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90) 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:573) ... 60 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder from {"":["0","0"],"conditionalbuilders":{"classPath":"","groovyName":"(Default)","javaOpts":"","kind":"hudson.plugins.groovy.Groovy","parameters":"","properties":"","scriptParameters":"","scriptSource":{"command":"print \"a\"","value":"0"},"stapler-class":"hudson.plugins.groovy.Groovy"},"kind":"org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder","runCondition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:582) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:377) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:373) at hudson.model.Descriptor.newInstance(Descriptor.java:576) ... 75 more Caused by: java.lang.IllegalArgumentException: Failed to convert the conditionalbuilders parameter of the constructor public org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder(org.jenkins_ci.plugins.run_condition.RunCondition,org.jenkins_ci.plugins.run_condition.BuildStepRunner,java.util.List) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:576) ... 78 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate class hudson.tasks.Builder from {"classPath":"","groovyName":"(Default)","javaOpts":"","kind":"hudson.plugins.groovy.Groovy","parameters":"","properties":"","scriptParameters":"","scriptSource":{"command":"print \"a\"","value":"0"},"stapler-class":"hudson.plugins.groovy.Groovy"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:582) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:618) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:377) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:574) ... 78 more Caused by: java.lang.IllegalArgumentException: Failed to convert the scriptSource parameter of the constructor public hudson.plugins.groovy.Groovy(hudson.plugins.groovy.ScriptSource,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:576) ... 81 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate interface hudson.plugins.groovy.ScriptSource from {"command":"print \"a\"","value":"0"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:582) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:377) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:574) ... 81 more Caused by: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of interface hudson.plugins.groovy.ScriptSource at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:176) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:561) ... 83 more
    via by Oded Maimon,
  • When changing the configuration of any job which uses the copy artifact plugin I receive the following stack trace, other jobs can be reconfigured successfully. Looking at thejob configuration they were last updated with version 1.32.1 of the plugin. {noformat} javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class hudson.plugins.copyartifact.CopyArtifact from {"projectName":"TestJob","":"0","selector":{"stableOnly":false,"kind":""},"filter":"build_results/TestJob/**","excludes":"","target":"TargetDir/Executables","parameters":"","flatten":false,"optional":true,"fingerprintArtifacts":true,"stapler-class":"hudson.plugins.copyartifact.CopyArtifact","$class":"hudson.plugins.copyartifact.CopyArtifact"} at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:123) at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter$1.call(ScmSyncConfigurationFilter.java:46) at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationDataProvider.provideRequestDuring(ScmSyncConfigurationDataProvider.java:103) at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter.doFilter(ScmSyncConfigurationFilter.java:42) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:120) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:114) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 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 jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93) 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:168) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315) 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.RuntimeException: Failed to instantiate class hudson.plugins.copyartifact.CopyArtifact from {"projectName":"TestJob","":"0","selector":{"stableOnly":false,"kind":""},"filter":"build_results/TestJob/**","excludes":"","target":"TargetDir/Executables","parameters":"","flatten":false,"optional":true,"fingerprintArtifacts":true,"stapler-class":"hudson.plugins.copyartifact.CopyArtifact","$class":"hudson.plugins.copyartifact.CopyArtifact"} at hudson.model.Descriptor.newInstance(Descriptor.java:577) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:926) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:900) at hudson.util.DescribableList.rebuildHetero(DescribableList.java:205) at hudson.model.Project.submit(Project.java:232) at hudson.model.Job.doConfigSubmit(Job.java:1203) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:785) 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:483) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) ... 67 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate class hudson.plugins.copyartifact.CopyArtifact from {"projectName":"TestJob","":"0","selector":{"stableOnly":false,"kind":""},"filter":"build_results/TestJob/**","excludes":"","target":"TargetDir/Executables","parameters":"","flatten":false,"optional":true,"fingerprintArtifacts":true,"stapler-class":"hudson.plugins.copyartifact.CopyArtifact","$class":"hudson.plugins.copyartifact.CopyArtifact"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:602) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:404) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:400) at hudson.model.Descriptor.newInstance(Descriptor.java:568) ... 83 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate class hudson.plugins.copyartifact.BuildSelector from {"stableOnly":false,"kind":""} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:602) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:404) at org.kohsuke.stapler.RequestImpl.injectSetters(RequestImpl.java:764) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:703) at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:81) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:600) ... 86 more Caused by: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class hudson.plugins.copyartifact.BuildSelector at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:177) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:684) at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:81) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:600) ... 91 more {noformat}
    via by Alan Birtles,
  • 1) add a postbuildscript to postbuild section 2) Add build step => pick 'Execute Ruby script' 3) add some ruby code as seen below 4) click save => leads to Status Code 500 Status Code: 500 Exception: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.postbuildscript.PostBuildScript from {"buildStep":{"kind":"hudson.plugins.ruby.Ruby","ruby":"require 'net/ssh'\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp3file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_3_tail.txt\", \"w\")\n\trecapp3file.write(stdout)\n\trecapp3file.close\nend\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp4file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_4_tail.txt\", \"w\")\n\trecapp4file.write(stdout)\n\trecapp4file.close\nend","stapler-class":"hudson.plugins.ruby.Ruby"},"kind":"org.jenkinsci.plugins.postbuildscript.PostBuildScript","scriptOnlyIfSuccess":false,"stapler-class":"org.jenkinsci.plugins.postbuildscript.PostBuildScript"} Stacktrace: javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.postbuildscript.PostBuildScript from {"buildStep":{"kind":"hudson.plugins.ruby.Ruby","ruby":"require 'net/ssh'\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp3file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_3_tail.txt\", \"w\")\n\trecapp3file.write(stdout)\n\trecapp3file.close\nend\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp4file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_4_tail.txt\", \"w\")\n\trecapp4file.write(stdout)\n\trecapp4file.close\nend","stapler-class":"hudson.plugins.ruby.Ruby"},"kind":"org.jenkinsci.plugins.postbuildscript.PostBuildScript","scriptOnlyIfSuccess":false,"stapler-class":"org.jenkinsci.plugins.postbuildscript.PostBuildScript"} at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:615) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:487) at org.kohsuke.stapler.Stapler.service(Stapler.java:164) 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:95) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:179) at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:86) at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:84) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98) at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) 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 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 jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:63) 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:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50) 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:215) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.postbuildscript.PostBuildScript from {"buildStep":{"kind":"hudson.plugins.ruby.Ruby","ruby":"require 'net/ssh'\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp3file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_3_tail.txt\", \"w\")\n\trecapp3file.write(stdout)\n\trecapp3file.close\nend\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp4file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_4_tail.txt\", \"w\")\n\trecapp4file.write(stdout)\n\trecapp4file.close\nend","stapler-class":"hudson.plugins.ruby.Ruby"},"kind":"org.jenkinsci.plugins.postbuildscript.PostBuildScript","scriptOnlyIfSuccess":false,"stapler-class":"org.jenkinsci.plugins.postbuildscript.PostBuildScript"} at hudson.model.Descriptor.newInstance(Descriptor.java:602) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:939) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:926) at hudson.util.DescribableList.rebuildHetero(DescribableList.java:203) at hudson.model.Project.submit(Project.java:201) at hudson.model.Job.doConfigSubmit(Job.java:1045) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:722) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90) 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:573) ... 67 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate class org.jenkinsci.plugins.postbuildscript.PostBuildScript from {"buildStep":{"kind":"hudson.plugins.ruby.Ruby","ruby":"require 'net/ssh'\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp3file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_3_tail.txt\", \"w\")\n\trecapp3file.write(stdout)\n\trecapp3file.close\nend\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp4file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_4_tail.txt\", \"w\")\n\trecapp4file.write(stdout)\n\trecapp4file.close\nend","stapler-class":"hudson.plugins.ruby.Ruby"},"kind":"org.jenkinsci.plugins.postbuildscript.PostBuildScript","scriptOnlyIfSuccess":false,"stapler-class":"org.jenkinsci.plugins.postbuildscript.PostBuildScript"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:582) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:377) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:373) at hudson.model.Descriptor.newInstance(Descriptor.java:593) ... 83 more Caused by: java.lang.IllegalArgumentException: Failed to convert the buildStep parameter of the constructor public org.jenkinsci.plugins.postbuildscript.PostBuildScript(java.util.List,java.util.List,java.util.List,boolean,java.util.List) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:576) ... 86 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate interface hudson.tasks.BuildStep from {"kind":"hudson.plugins.ruby.Ruby","ruby":"require 'net/ssh'\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp3file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_3_tail.txt\", \"w\")\n\trecapp3file.write(stdout)\n\trecapp3file.close\nend\n\nNet::SSH.start('aaa.bbb.ccc.ddd', '********', :password => \"********\") do |ssh|\n\tstdout = \"\"\n\tssh.exec!(\"tail -n100 /logs/xyz.log\") do |channel, stream, data|\n\t\tstdout << data if stream == :stdout\n\tend\n \n\trecapp4file = File.new(ENV['WORKSPACE']+\"/philips/results/dms_recapp_4_tail.txt\", \"w\")\n\trecapp4file.write(stdout)\n\trecapp4file.close\nend","stapler-class":"hudson.plugins.ruby.Ruby"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:582) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:618) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:377) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:574) ... 86 more Caused by: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class hudson.plugins.ruby.Ruby at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:176) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:561) ... 89 more
    via by robsimon,
  • Exception: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder from {"":["0","0"],"conditionalbuilders":{"classPath":"","groovyName":"(Default)","javaOpts":"","kind":"hudson.plugins.groovy.Groovy","parameters":"","properties":"","scriptParameters":"","scriptSource":{"command":"print \"a\"","value":"0"},"stapler-class":"hudson.plugins.groovy.Groovy"},"kind":"org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder","runCondition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder"} Stacktrace: javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder from {"":["0","0"],"conditionalbuilders":{"classPath":"","groovyName":"(Default)","javaOpts":"","kind":"hudson.plugins.groovy.Groovy","parameters":"","properties":"","scriptParameters":"","scriptSource":{"command":"print \"a\"","value":"0"},"stapler-class":"hudson.plugins.groovy.Groovy"},"kind":"org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder","runCondition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder"} at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:615) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:573) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:658) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:487) at org.kohsuke.stapler.Stapler.service(Stapler.java:164) 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:95) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) at winstone.FilterConfiguration.execute(FilterConfiguration.java:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) 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 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 jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:63) 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:194) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50) 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:215) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder from {"":["0","0"],"conditionalbuilders":{"classPath":"","groovyName":"(Default)","javaOpts":"","kind":"hudson.plugins.groovy.Groovy","parameters":"","properties":"","scriptParameters":"","scriptSource":{"command":"print \"a\"","value":"0"},"stapler-class":"hudson.plugins.groovy.Groovy"},"kind":"org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder","runCondition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder"} at hudson.model.Descriptor.newInstance(Descriptor.java:585) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:922) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:909) at hudson.util.DescribableList.rebuildHetero(DescribableList.java:203) at hudson.model.Project.submit(Project.java:202) at hudson.model.Job.doConfigSubmit(Job.java:1045) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:723) at sun.reflect.GeneratedMethodAccessor541.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90) 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:573) ... 60 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder from {"":["0","0"],"conditionalbuilders":{"classPath":"","groovyName":"(Default)","javaOpts":"","kind":"hudson.plugins.groovy.Groovy","parameters":"","properties":"","scriptParameters":"","scriptSource":{"command":"print \"a\"","value":"0"},"stapler-class":"hudson.plugins.groovy.Groovy"},"kind":"org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder","runCondition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:582) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:377) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:373) at hudson.model.Descriptor.newInstance(Descriptor.java:576) ... 75 more Caused by: java.lang.IllegalArgumentException: Failed to convert the conditionalbuilders parameter of the constructor public org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder(org.jenkins_ci.plugins.run_condition.RunCondition,org.jenkins_ci.plugins.run_condition.BuildStepRunner,java.util.List) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:576) ... 78 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate class hudson.tasks.Builder from {"classPath":"","groovyName":"(Default)","javaOpts":"","kind":"hudson.plugins.groovy.Groovy","parameters":"","properties":"","scriptParameters":"","scriptSource":{"command":"print \"a\"","value":"0"},"stapler-class":"hudson.plugins.groovy.Groovy"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:582) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:618) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:377) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:574) ... 78 more Caused by: java.lang.IllegalArgumentException: Failed to convert the scriptSource parameter of the constructor public hudson.plugins.groovy.Groovy(hudson.plugins.groovy.ScriptSource,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:576) ... 81 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate interface hudson.plugins.groovy.ScriptSource from {"command":"print \"a\"","value":"0"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:582) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:377) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:574) ... 81 more Caused by: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of interface hudson.plugins.groovy.ScriptSource at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:176) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:561) ... 83 more
    via by Oded Maimon,
  • When changing the configuration of any job which uses the copy artifact plugin I receive the following stack trace, other jobs can be reconfigured successfully. Looking at thejob configuration they were last updated with version 1.32.1 of the plugin. {noformat} javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class hudson.plugins.copyartifact.CopyArtifact from {"projectName":"TestJob","":"0","selector":{"stableOnly":false,"kind":""},"filter":"build_results/TestJob/**","excludes":"","target":"TargetDir/Executables","parameters":"","flatten":false,"optional":true,"fingerprintArtifacts":true,"stapler-class":"hudson.plugins.copyartifact.CopyArtifact","$class":"hudson.plugins.copyartifact.CopyArtifact"} at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:796) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:876) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:649) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:123) at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter$1.call(ScmSyncConfigurationFilter.java:46) at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationDataProvider.provideRequestDuring(ScmSyncConfigurationDataProvider.java:103) at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter.doFilter(ScmSyncConfigurationFilter.java:42) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:120) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:114) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) 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 jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93) 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:168) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:315) 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.RuntimeException: Failed to instantiate class hudson.plugins.copyartifact.CopyArtifact from {"projectName":"TestJob","":"0","selector":{"stableOnly":false,"kind":""},"filter":"build_results/TestJob/**","excludes":"","target":"TargetDir/Executables","parameters":"","flatten":false,"optional":true,"fingerprintArtifacts":true,"stapler-class":"hudson.plugins.copyartifact.CopyArtifact","$class":"hudson.plugins.copyartifact.CopyArtifact"} at hudson.model.Descriptor.newInstance(Descriptor.java:577) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:926) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:900) at hudson.util.DescribableList.rebuildHetero(DescribableList.java:205) at hudson.model.Project.submit(Project.java:232) at hudson.model.Job.doConfigSubmit(Job.java:1203) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:785) 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:483) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:746) ... 67 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate class hudson.plugins.copyartifact.CopyArtifact from {"projectName":"TestJob","":"0","selector":{"stableOnly":false,"kind":""},"filter":"build_results/TestJob/**","excludes":"","target":"TargetDir/Executables","parameters":"","flatten":false,"optional":true,"fingerprintArtifacts":true,"stapler-class":"hudson.plugins.copyartifact.CopyArtifact","$class":"hudson.plugins.copyartifact.CopyArtifact"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:602) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:404) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:400) at hudson.model.Descriptor.newInstance(Descriptor.java:568) ... 83 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate class hudson.plugins.copyartifact.BuildSelector from {"stableOnly":false,"kind":""} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:602) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:404) at org.kohsuke.stapler.RequestImpl.injectSetters(RequestImpl.java:764) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:703) at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:81) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:600) ... 86 more Caused by: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class hudson.plugins.copyartifact.BuildSelector at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:177) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:684) at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:81) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:600) ... 91 more {noformat}
    via by Alan Birtles,
  • On an existing project which has the functionality "Change the date format" checked, with date format yyyy-MM-dd, I'm getting the following error when I want to save any modification for the project: Status Code: 500 Exception: Stacktrace: java.lang.IllegalArgumentException: Failed to instantiate boolean from {"datePattern":"yyyy-MM-dd"} at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:357) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:564) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:372) at com.thalesgroup.hudson.plugins.copyarchiver.CopyArchiverPublisher$CopyArchiverDescriptor.newInstance(CopyArchiverPublisher.java:163) at com.thalesgroup.hudson.plugins.copyarchiver.CopyArchiverPublisher$CopyArchiverDescriptor.newInstance(CopyArchiverPublisher.java:142) at hudson.util.DescribableList.rebuild(DescribableList.java:146) at hudson.model.Project.submit(Project.java:198) at hudson.model.FreeStyleProject.submit(FreeStyleProject.java:97) at hudson.model.Job.doConfigSubmit(Job.java:1062) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:581) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:259) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:126) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:65) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:79) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534) at org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:219) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:534) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:450) at org.kohsuke.stapler.Stapler.service(Stapler.java:132) 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.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:47) 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(Unknown Source) Caused by: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of boolean at org.kohsuke.stapler.RequestImpl.loadConstructorParamNames(RequestImpl.java:470) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:336) ... 59 more This functionality with the same date format worked well on previous Hudson version.
    via by Afterster,
    • javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder from {"":["0","0","8"],"condition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"buildStep":{"stapler-class":"hudson.plugins.gradle.Gradle","useWrapper":{"value":"false","gradleName":"(Default)"},"description":"","switches":"","tasks":"","rootBuildScriptDir":"","buildFile":""},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder","kind":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder"} at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:719) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:770) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:583) at org.kohsuke.stapler.Stapler.service(Stapler.java:214) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:594) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1366) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95) at com.marvelution.hudson.plugins.apiv2.servlet.filter.HudsonAPIV2ServletFilter.doFilter(HudsonAPIV2ServletFilter.java:112) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206) at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:179) at net.bull.javamelody.PluginMonitoringFilter.doFilter(PluginMonitoringFilter.java:86) at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:84) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98) at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:66) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:98) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at org.jenkinsci.plugins.reverse_proxy_auth.ReverseProxySecurityRealm$1.doFilter(ReverseProxySecurityRealm.java:92) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1337) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:484) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:499) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111) at org.eclipse.jetty.server.Server.handle(Server.java:351) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:900) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:954) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:857) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder from {"":["0","0","8"],"condition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"buildStep":{"stapler-class":"hudson.plugins.gradle.Gradle","useWrapper":{"value":"false","gradleName":"(Default)"},"description":"","switches":"","tasks":"","rootBuildScriptDir":"","buildFile":""},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder","kind":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder"} at hudson.model.Descriptor.newInstance(Descriptor.java:602) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:941) at hudson.model.Descriptor.newInstancesFromHeteroList(Descriptor.java:926) at hudson.util.DescribableList.rebuildHetero(DescribableList.java:203) at hudson.model.Project.submit(Project.java:200) at hudson.model.Job.doConfigSubmit(Job.java:1076) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:758) at sun.reflect.GeneratedMethodAccessor804.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90) 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:677) ... 59 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate class org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder from {"":["0","0","8"],"condition":{"stapler-class":"org.jenkins_ci.plugins.run_condition.core.AlwaysRun"},"runner":{"stapler-class":"org.jenkins_ci.plugins.run_condition.BuildStepRunner$Fail"},"buildStep":{"stapler-class":"hudson.plugins.gradle.Gradle","useWrapper":{"value":"false","gradleName":"(Default)"},"description":"","switches":"","tasks":"","rootBuildScriptDir":"","buildFile":""},"stapler-class":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder","kind":"org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:596) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:391) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:387) at hudson.model.Descriptor.newInstance(Descriptor.java:593) ... 74 more Caused by: java.lang.IllegalArgumentException: Failed to convert the buildStep parameter of the constructor public org.jenkinsci.plugins.conditionalbuildstep.singlestep.SingleConditionalBuilder(hudson.tasks.BuildStep,org.jenkins_ci.plugins.run_condition.RunCondition,org.jenkins_ci.plugins.run_condition.BuildStepRunner) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:590) ... 77 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate interface hudson.tasks.BuildStep from {"stapler-class":"hudson.plugins.gradle.Gradle","useWrapper":{"value":"false","gradleName":"(Default)"},"description":"","switches":"","tasks":"","rootBuildScriptDir":"","buildFile":""} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:596) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:391) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:588) ... 77 more Caused by: java.lang.IllegalArgumentException: Failed to convert the useWrapper parameter of the constructor public hudson.plugins.gradle.Gradle(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,boolean,boolean,boolean) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:590) ... 79 more Caused by: java.lang.IllegalArgumentException: Failed to instantiate boolean from {"value":"false","gradleName":"(Default)"} at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:596) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:391) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:588) ... 79 more Caused by: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of boolean at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:176) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:575) ... 81 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    davidvanlaatum
    1 times, last one,