java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.credentialsbinding.impl.BindingStep from {"bindings":{"usernameVariable":"MVN_USERNAME","passwordVariable":"MVN_PASSWORD","credentialsId":["cf-hackney-cleclerc-credentials",""],"stapler-class":"org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding","$class":"org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding"},"stapler-class":"org.jenkinsci.plugins.credentialsbinding.impl.BindingStep","$class":"org.jenkinsci.plugins.credentialsbinding.impl.BindingStep"}

Jenkins JIRA | Cyrille Le Clerc | 1 year ago
  1. 0

    {noformat} java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.credentialsbinding.impl.BindingStep from {"bindings":{"usernameVariable":"MVN_USERNAME","passwordVariable":"MVN_PASSWORD","credentialsId":["cf-hackney-cleclerc-credentials",""],"stapler-class":"org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding","$class":"org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding"},"stapler-class":"org.jenkinsci.plugins.credentialsbinding.impl.BindingStep","$class":"org.jenkinsci.plugins.credentialsbinding.impl.BindingStep"} at hudson.model.Descriptor.newInstance(Descriptor.java:579) at org.jenkinsci.plugins.workflow.cps.Snippetizer.doGenerateSnippet(Snippetizer.java:215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298) ... at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at ... Caused by: java.lang.NullPointerException at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:645) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:404) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:697) at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:81) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:600) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:638) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:404) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:697) at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:81) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:600) 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:570) ... 94 more {noformat} {code:xml} <?xml version="1.0" encoding="UTF-8"?> <flow-definition plugin="workflow-job@1.11"> <actions /> <description /> <keepDependencies>false</keepDependencies> <properties /> <definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps@1.11"> <script>node { }</script> <sandbox>false</sandbox> </definition> <triggers /> </flow-definition> {code}

    Jenkins JIRA | 1 year ago | Cyrille Le Clerc
    java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.credentialsbinding.impl.BindingStep from {"bindings":{"usernameVariable":"MVN_USERNAME","passwordVariable":"MVN_PASSWORD","credentialsId":["cf-hackney-cleclerc-credentials",""],"stapler-class":"org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding","$class":"org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding"},"stapler-class":"org.jenkinsci.plugins.credentialsbinding.impl.BindingStep","$class":"org.jenkinsci.plugins.credentialsbinding.impl.BindingStep"}
  2. 0

    {noformat} java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.credentialsbinding.impl.BindingStep from {"bindings":{"usernameVariable":"MVN_USERNAME","passwordVariable":"MVN_PASSWORD","credentialsId":["cf-hackney-cleclerc-credentials",""],"stapler-class":"org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding","$class":"org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding"},"stapler-class":"org.jenkinsci.plugins.credentialsbinding.impl.BindingStep","$class":"org.jenkinsci.plugins.credentialsbinding.impl.BindingStep"} at hudson.model.Descriptor.newInstance(Descriptor.java:579) at org.jenkinsci.plugins.workflow.cps.Snippetizer.doGenerateSnippet(Snippetizer.java:215) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298) ... at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at ... Caused by: java.lang.NullPointerException at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:645) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:404) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:697) at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:81) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:600) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:638) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:404) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:697) at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:81) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:600) 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:570) ... 94 more {noformat} {code:xml} <?xml version="1.0" encoding="UTF-8"?> <flow-definition plugin="workflow-job@1.11"> <actions /> <description /> <keepDependencies>false</keepDependencies> <properties /> <definition class="org.jenkinsci.plugins.workflow.cps.CpsFlowDefinition" plugin="workflow-cps@1.11"> <script>node { }</script> <sandbox>false</sandbox> </definition> <triggers /> </flow-definition> {code}

    Jenkins JIRA | 1 year ago | Cyrille Le Clerc
    java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.credentialsbinding.impl.BindingStep from {"bindings":{"usernameVariable":"MVN_USERNAME","passwordVariable":"MVN_PASSWORD","credentialsId":["cf-hackney-cleclerc-credentials",""],"stapler-class":"org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding","$class":"org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding"},"stapler-class":"org.jenkinsci.plugins.credentialsbinding.impl.BindingStep","$class":"org.jenkinsci.plugins.credentialsbinding.impl.BindingStep"}
  3. 0

    [JIRA] [workflow-plugin] (JENKINS-31813) [withCredentials] NPE in snippet generator

    Google Groups | 1 year ago | cleclerc@cloudbees.com (JIRA)
    java.lang.RuntimeException: Failed to instantiate class org.jenkinsci.plugins.credentialsbinding.impl.BindingStep from {&quot;bindings&quot;:{&quot;usernameVariable&quot;:&quot;MVN_USERNAME&quot;,&quot;passwordVariable&quot;:&quot;MVN_PASSWORD&quot;,&quot;credentialsId&quot;:[&quot;cf-hackney-cleclerc-credentials&quot;,&quot;&quot;],&quot;stapler-class&quot;:&quot;org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding&quot;,&quot;$class&quot;:&quot;org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding&quot;},&quot;stapler-class&quot;:&quot;org.jenkinsci.plugins.credentialsbinding.impl.BindingStep&quot;,&quot;$class&quot;:&quot;org.jenkinsci.plugins.credentialsbinding.impl.BindingStep&quot;}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      Failed to instantiate class org.jenkinsci.plugins.credentialsbinding.impl.BindingStep from {"bindings":{"usernameVariable":"MVN_USERNAME","passwordVariable":"MVN_PASSWORD","credentialsId":["cf-hackney-cleclerc-credentials",""],"stapler-class":"org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding","$class":"org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordMultiBinding"},"stapler-class":"org.jenkinsci.plugins.credentialsbinding.impl.BindingStep","$class":"org.jenkinsci.plugins.credentialsbinding.impl.BindingStep"}

      at hudson.model.Descriptor.newInstance()
    2. Hudson
      Descriptor.newInstance
      1. hudson.model.Descriptor.newInstance(Descriptor.java:579)
      1 frame
    3. org.jenkinsci.plugins
      Snippetizer.doGenerateSnippet
      1. org.jenkinsci.plugins.workflow.cps.Snippetizer.doGenerateSnippet(Snippetizer.java:215)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    5. Stapler
      Function$InstanceFunction.invoke
      1. org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
      1 frame