org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods leftShift java.util.List java.lang.Object

Jenkins JIRA | Andres Rodriguez | 12 months 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

    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 | 12 months ago | Andres Rodriguez
    org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods leftShift java.util.List java.lang.Object
  2. 0

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

    Google Groups | 12 months ago | andr...@cloudbees.com (JIRA)
    org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods leftShift java.util.List java.lang.Object
  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 | 12 months ago | Andres Rodriguez
    org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods leftShift java.util.List java.lang.Object
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. 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()
    2. org.jenkinsci.plugins
      SandboxInterceptorTest.keywordsAndOperators
      1. org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest.assertEvaluate(SandboxInterceptorTest.java:582)
      2. org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptorTest.keywordsAndOperators(SandboxInterceptorTest.java:542)
      2 frames