Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-18629

Jenkins fails to save configuration when using Invoke Gradle script in Conditional Step (single).

XMLWordPrintable

      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

            kohsuke Kohsuke Kawaguchi
            nordwest Vladimir Trubnikov
            Votes:
            9 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:
              Resolved: