org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods take java.lang.CharSequence int

Jenkins JIRA | Wilfried Goesgens | 3 months ago
  1. 0

    [JIRA] (JENKINS-38163) take() method of strings unavailable

    Google Groups | 3 months ago | doth...@citadel.org (JIRA)
    org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods take java.lang.CharSequence int<br>
  2. 0

    [workflow-plugin] Using Closures in workflow scripts not allowed?

    Google Groups | 2 years ago | Tom Deblauwe
    org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method groovy.lang.Closure call java.lang.Object
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    [JIRA] [workflow-plugin] (JENKINS-31701) workflow-multibranch Jenkinsfile: "Sleep 60" causes "RejectedAccessException: Scripts not permitted to use"

    Google Groups | 1 year ago | cleclerc@cloudbees.com (JIRA)
    org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method groovy.lang.GroovyObject invokeMethod java.lang.String java.lang.Object (org.jenkinsci.plugins.workflow.cps.CpsClosure2 sleep java.lang.Integer)
  5. 0

    [JIRA] [workflow-plugin] (JENKINS-32156) workflow from SCM:

    Google Groups | 12 months ago | rodrigc@FreeBSD.org (JIRA)
    org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods toBoolean java.lang.String

    7 unregistered visitors
    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. org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException

      Scripts not permitted to use staticMethod org.codehaus.groovy.runtime.DefaultGroovyMethods take java.lang.CharSequence int

      at org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.rejectStaticMethod()
    2. org.jenkinsci.plugins
      SandboxInterceptor.onMethodCall
      1. org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.rejectStaticMethod(StaticWhitelist.java:190)
      2. org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:95)
      2 frames