groovy.lang.MissingMethodException: No signature of method: script14031065985881688050943.Boolean() is applicable for argument types: (java.lang.String) values: [false] Possible solutions: asBoolean(), collect(), collect(groovy.lang.Closure)

Jenkins JIRA | Adam K | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    The Jenkins job dsl plugin is failing to let me send in boolean values to some of the types permitted. For instance, with a job DSL plugin as follows: job ( type: Maven ) { snapshotDependencies(true) } Comes back with an error as follows: Building in workspace /var/lib/jenkins/jobs/ii-product-branch-dsl-job/workspace FATAL: No signature of method: script14031065985881688050943.Boolean() is applicable for argument types: (java.lang.String) values: [false] Possible solutions: asBoolean(), collect(), collect(groovy.lang.Closure) groovy.lang.MissingMethodException: No signature of method: script14031065985881688050943.Boolean() is applicable for argument types: (java.lang.String) values: [false] Possible solutions: asBoolean(), collect(), collect(groovy.lang.Closure) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:78) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) at script14031065985881688050943.run(script14031065985881688050943.groovy:20) at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngineForParent(DslScriptLoader.java:69) at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngine(DslScriptLoader.java:93) at javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:159) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535) at hudson.model.Run.execute(Run.java:1732) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) The Wiki reference shows the usage as: snapshotDependencies(boolean checkSnapshotDependencies) I have tried many variations to send in boolean values, such as casting asBoolean() and importing static java.lang.Boolean.TRUE as a type etc. Either I am missing something, or there is a bug with this.

    Jenkins JIRA | 3 years ago | Adam K
    groovy.lang.MissingMethodException: No signature of method: script14031065985881688050943.Boolean() is applicable for argument types: (java.lang.String) values: [false] Possible solutions: asBoolean(), collect(), collect(groovy.lang.Closure)
  2. 0

    The Jenkins job dsl plugin is failing to let me send in boolean values to some of the types permitted. For instance, with a job DSL plugin as follows: job ( type: Maven ) { snapshotDependencies(true) } Comes back with an error as follows: Building in workspace /var/lib/jenkins/jobs/ii-product-branch-dsl-job/workspace FATAL: No signature of method: script14031065985881688050943.Boolean() is applicable for argument types: (java.lang.String) values: [false] Possible solutions: asBoolean(), collect(), collect(groovy.lang.Closure) groovy.lang.MissingMethodException: No signature of method: script14031065985881688050943.Boolean() is applicable for argument types: (java.lang.String) values: [false] Possible solutions: asBoolean(), collect(), collect(groovy.lang.Closure) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:78) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) at script14031065985881688050943.run(script14031065985881688050943.groovy:20) at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngineForParent(DslScriptLoader.java:69) at javaposse.jobdsl.dsl.DslScriptLoader.runDslEngine(DslScriptLoader.java:93) at javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:159) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772) at hudson.model.Build$BuildExecution.build(Build.java:199) at hudson.model.Build$BuildExecution.doRun(Build.java:160) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535) at hudson.model.Run.execute(Run.java:1732) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:234) The Wiki reference shows the usage as: snapshotDependencies(boolean checkSnapshotDependencies) I have tried many variations to send in boolean values, such as casting asBoolean() and importing static java.lang.Boolean.TRUE as a type etc. Either I am missing something, or there is a bug with this.

    Jenkins JIRA | 3 years ago | Adam K
    groovy.lang.MissingMethodException: No signature of method: script14031065985881688050943.Boolean() is applicable for argument types: (java.lang.String) values: [false] Possible solutions: asBoolean(), collect(), collect(groovy.lang.Closure)
  3. 0

    I broke the build

    GitHub | 5 years ago | aslakhellesoy
    groovy.lang.MissingMethodException: No signature of method: cucumber.runtime.groovy.interpreted_stepdefs.haveCukes() is applicable for argument types: (java.lang.Integer) values: [12]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Why can't I wrap withRest() with my own method and run a closure within it?

    Stack Overflow | 5 years ago | cdeszaq
    org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: client.MyAppServerService.post() is applicable for argument types: (java.util.LinkedHashMap) values: [[path:http://localhost:8080/Server/session/4, ...]] Possible solutions: wait(), wait(long), print(java.lang.Object), use([Ljava.lang.Object;), is(java.lang.Object), split(groovy.lang.Closure)
  6. 0

    Groovy script error on jenkins

    Stack Overflow | 4 years ago | user1720124
    groovy.lang.MissingMethodException: No signature of method: Script1.$() is applicable for argument types: (Script1$_run_closure1) values: [Script1$_run_closure1@2620749c] Possible solutions: is(java.lang.Object), run(), run(), any(), use([Ljava.lang.Object;), any(groovy.lang.Closure)
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. groovy.lang.MissingMethodException

    No signature of method: script14031065985881688050943.Boolean() is applicable for argument types: (java.lang.String) values: [false] Possible solutions: asBoolean(), collect(), collect(groovy.lang.Closure)

    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap()
  2. Groovy
    AbstractCallSite.callCurrent
    1. org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55)
    2. org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:78)
    3. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
    4. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
    5. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
    5 frames
  3. Unknown
    script14031065985881688050943.run
    1. script14031065985881688050943.run(script14031065985881688050943.groovy:20)
    1 frame
  4. javaposse.jobdsl.dsl
    DslScriptLoader.runDslEngine
    1. javaposse.jobdsl.dsl.DslScriptLoader.runDslEngineForParent(DslScriptLoader.java:69)
    2. javaposse.jobdsl.dsl.DslScriptLoader.runDslEngine(DslScriptLoader.java:93)
    2 frames
  5. javaposse.jobdsl.plugin
    ExecuteDslScripts.perform
    1. javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:159)
    1 frame
  6. Hudson
    Executor.run
    1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:772)
    3. hudson.model.Build$BuildExecution.build(Build.java:199)
    4. hudson.model.Build$BuildExecution.doRun(Build.java:160)
    5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:535)
    6. hudson.model.Run.execute(Run.java:1732)
    7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    8. hudson.model.ResourceController.execute(ResourceController.java:88)
    9. hudson.model.Executor.run(Executor.java:234)
    9 frames