groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest$Ambiguity#m. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class java.lang.String] [class java.net.URL]

Jenkins JIRA | Andres Rodriguez | 7 months ago
  1. 0

    When building with {{-Djenkins.version=2.0 -Djava.level=7}} the following errors appears: {noformat} keywordsAndOperators(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest) Time elapsed: 0.273 sec <<< ERROR! org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods leftShift java.util.List java.lang.Object at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest.assertEvaluate(SandboxInterceptorTest.java:582) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest.keywordsAndOperators(SandboxInterceptorTest.java:542) ambiguousOverloads(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest) Time elapsed: 0.03 sec <<< ERROR! groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest$Ambiguity#m. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class java.lang.String] [class java.net.URL] at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest.assertEvaluate(SandboxInterceptorTest.java:582) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest.ambiguousOverloads(SandboxInterceptorTest.java:497) {noformat} They seem related to the upgrade from Groovy 1.8.9 to 2.4.6

    Jenkins JIRA | 7 months ago | Andres Rodriguez
    groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest$Ambiguity#m. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class java.lang.String] [class java.net.URL]
  2. 0

    [JIRA] [script-security-plugin] (JENKINS-34466) Fix PCT against 2.0

    Google Groups | 7 months ago | andr...@cloudbees.com (JIRA)
    groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest$Ambiguity#m. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class java.lang.String] [class java.net.URL]
  3. 0

    When building with {{-Djenkins.version=2.0 -Djava.level=7}} the following errors appears: {noformat} keywordsAndOperators(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest) Time elapsed: 0.273 sec <<< ERROR! org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods leftShift java.util.List java.lang.Object at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest.assertEvaluate(SandboxInterceptorTest.java:582) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest.keywordsAndOperators(SandboxInterceptorTest.java:542) ambiguousOverloads(org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest) Time elapsed: 0.03 sec <<< ERROR! groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest$Ambiguity#m. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class java.lang.String] [class java.net.URL] at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest.assertEvaluate(SandboxInterceptorTest.java:582) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest.ambiguousOverloads(SandboxInterceptorTest.java:497) {noformat} They seem related to the upgrade from Groovy 1.8.9 to 2.4.6

    Jenkins JIRA | 7 months ago | Andres Rodriguez
    groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest$Ambiguity#m. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class java.lang.String] [class java.net.URL]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Chromium with GebReportingSpec fails with groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method geb.report.Base64#decode.

    GitHub | 3 years ago | geb-bot
    groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method geb.report.Base64#decode. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class [B] [class [C] [class java.lang.String]
  6. 0

    DSTConfig - modoverrides.lua generation tool for servers - [Don't Starve Together - BETA] Dedicated Server Discussion - Klei Entertainment Forums

    kleientertainment.com | 8 months ago
    org.luaj.vm2.LuaError: script:17 vm error: groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method info.inpureprojects.DSTConfig.LuaManager#load. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class java.io.File] [class java.io.InputStream] [class java.lang.String]

    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.GroovyRuntimeException

      Ambiguous method overloading for method org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest$Ambiguity#m. Cannot resolve which method to invoke for [null] due to overlapping prototypes between: [class java.lang.String] [class java.net.URL]

      at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest.assertEvaluate()
    2. org.jenkinsci.plugins
      SandboxInterceptorTest.ambiguousOverloads
      1. org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest.assertEvaluate(SandboxInterceptorTest.java:582)
      2. org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest.ambiguousOverloads(SandboxInterceptorTest.java:497)
      2 frames