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

IllegalArgumentException: providerId can NOT be null when using npmConfig

    Details

    • Similar Issues:
    • Released As:
      1.2.8

      Description

      Same as JENKINS-43372 but it still happens for npmConfig.
      I don't see it changed in https://github.com/jenkinsci/config-file-provider-plugin/commit/97ba2549540d16537315c72e5eed65304263cd31 so I expect this is just a simple omission?

      17:13:00 java.lang.IllegalArgumentException: Could not instantiate {...} for NPMConfig(id: String, name: String, comment: String, content: String, providerId?: String, registries: NPMRegistry(url: String, credentialsId: String, hasScopes: boolean, scopes: String)[]): java.lang.reflect.InvocationTargetException
      17:13:00 	at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:287)
      17:13:00 	at org.jenkinsci.plugins.structs.describable.DescribableModel$instantiate$1.call(Unknown Source)
      17:13:00 	at javaposse.jobdsl.plugin.structs.DescribableContext.createInstance(DescribableContext.groovy:50)
      17:13:00 	at javaposse.jobdsl.plugin.structs.DescribableContext$createInstance.call(Unknown Source)
      17:13:00 	at javaposse.jobdsl.plugin.structs.DescribableListContext.methodMissing(DescribableListContext.groovy:61)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      17:13:00 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      17:13:00 	at java.lang.reflect.Method.invoke(Method.java:498)
      17:13:00 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      17:13:00 	at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:939)
      17:13:00 	at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1262)
      17:13:00 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1215)
      17:13:00 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
      17:13:00 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:810)
      17:13:00 	at javaposse.jobdsl.plugin.structs.DescribableListContext.invokeMethod(DescribableListContext.groovy)
      17:13:00 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeOnDelegationObjects(ClosureMetaClass.java:430)
      17:13:00 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:371)
      17:13:00 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
      17:13:00 	at globalConfigFiles$_run_closure1.doCall(globalConfigFiles.groovy:42)
      17:13:00 	at globalConfigFiles$_run_closure1.doCall(globalConfigFiles.groovy)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      17:13:00 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      17:13:00 	at java.lang.reflect.Method.invoke(Method.java:498)
      17:13:00 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      17:13:00 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      17:13:00 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
      17:13:00 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:57)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
      17:13:00 	at javaposse.jobdsl.dsl.ContextHelper.executeInContext(ContextHelper.groovy:16)
      17:13:00 	at javaposse.jobdsl.dsl.ContextHelper$executeInContext.call(Unknown Source)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
      17:13:00 	at javaposse.jobdsl.plugin.JenkinsJobParent.configFiles(JenkinsJobParent.groovy:18)
      17:13:00 	at javaposse.jobdsl.dsl.DslFactory$configFiles$0.callCurrent(Unknown Source)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
      17:13:00 	at globalConfigFiles.run(globalConfigFiles.groovy:3)
      17:13:00 	at globalConfigFiles$run.call(Unknown Source)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      17:13:00 	at dockerPrune$run.call(Unknown Source)
      17:13:00 	at javaposse.jobdsl.dsl.AbstractDslScriptLoader.runScript(AbstractDslScriptLoader.groovy:132)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      17:13:00 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      17:13:00 	at java.lang.reflect.Method.invoke(Method.java:498)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:210)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:59)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:64)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:166)
      17:13:00 	at javaposse.jobdsl.dsl.AbstractDslScriptLoader.runScriptEngine(AbstractDslScriptLoader.groovy:106)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      17:13:00 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      17:13:00 	at java.lang.reflect.Method.invoke(Method.java:498)
      17:13:00 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      17:13:00 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      17:13:00 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:384)
      17:13:00 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:174)
      17:13:00 	at javaposse.jobdsl.dsl.AbstractDslScriptLoader$_runScripts_closure1.doCall(AbstractDslScriptLoader.groovy:59)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      17:13:00 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      17:13:00 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      17:13:00 	at java.lang.reflect.Method.invoke(Method.java:498)
      17:13:00 	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      17:13:00 	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      17:13:00 	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
      17:13:00 	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
      17:13:00 	at groovy.lang.Closure.call(Closure.java:414)
      17:13:00 	at groovy.lang.Closure.call(Closure.java:430)
      17:13:00 	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2040)
      17:13:00 	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2025)
      17:13:00 	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2078)
      17:13:00 	at org.codehaus.groovy.runtime.dgm$164.invoke(Unknown Source)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
      17:13:00 	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
      17:13:00 	at javaposse.jobdsl.dsl.AbstractDslScriptLoader.runScripts(AbstractDslScriptLoader.groovy:46)
      17:13:00 	at javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:341)
      17:13:00 	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
      17:13:00 	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      17:13:00 	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      17:13:00 	at hudson.model.Build$BuildExecution.build(Build.java:206)
      17:13:00 	at hudson.model.Build$BuildExecution.doRun(Build.java:163)
      17:13:00 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      17:13:00 	at hudson.model.Run.execute(Run.java:1819)
      17:13:00 	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      17:13:00 	at hudson.model.ResourceController.execute(ResourceController.java:97)
      17:13:00 	at hudson.model.Executor.run(Executor.java:429)
      17:13:00 Caused by: java.lang.reflect.InvocationTargetException
      17:13:00 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      17:13:00 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      17:13:00 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      17:13:00 	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      17:13:00 	at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:283)
      17:13:00 	... 103 more
      17:13:00 Caused by: java.lang.IllegalArgumentException: providerId can NOT be null
      17:13:00 	at org.jenkinsci.lib.configprovider.model.Config.<init>(Config.java:91)
      17:13:00 	at jenkins.plugins.nodejs.configfiles.NPMConfig.<init>(NPMConfig.java:64)
      17:13:00 	... 108 more

        Attachments

          Issue Links

            Activity

            Hide
            jbochenski Jakub Bochenski added a comment -

            Dominik Bartholdi thanks, I didn't notice this one is contributed by another plugin

            Show
            jbochenski Jakub Bochenski added a comment - Dominik Bartholdi thanks, I didn't notice this one is contributed by another plugin

              People

              • Assignee:
                nfalco Nikolas Falco
                Reporter:
                jbochenski Jakub Bochenski
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: