org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method java.lang.String startsWith java.lang.String

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Jenkins JIRA by Tom Ghyselinck, 1 year ago
Scripts not permitted to use method java.lang.String startsWith java.lang.String
via Jenkins JIRA by Tom Ghyselinck, 1 year ago
Scripts not permitted to use method java.lang.String startsWith java.lang.String
via Google Groups by Tom Deblauwe, 2 years ago
Scripts not permitted to use method groovy.lang.Closure call java.lang.Object
via Google Groups by lcc....@gmail.com (JIRA), 11 months ago
Scripts not permitted to use method org.jenkinsci.plugins.workflow.job.WorkflowRun doStop
via GitHub by Secathor
, 4 months ago
Scripts not permitted to use method jenkins.model.Jenkins getCloud java.lang.String
via Jenkins JIRA by pjdarton, 1 year ago
Scripts not permitted to use method java.lang.String startsWith java.lang.String
org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method java.lang.String startsWith java.lang.String
at org.jenkinsci.plugins.scriptsecurity.sandbox.whitelists.StaticWhitelist.rejectMethod(StaticWhitelist.java:150)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:77)
at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:103)
at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:100)
at org.kohsuke.groovy.sandbox.impl.Checker$checkedCall.callStatic(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:50)
at undefined.Script1.run(Script1.groovy:1)
at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.run(GroovySandbox.java:139)
at hudson.matrix.FilterScript.evaluate(FilterScript.java:45)
at hudson.matrix.FilterScript.apply(FilterScript.java:85)
at hudson.matrix.Combination.evalGroovyExpression(Combination.java:101)
at hudson.matrix.Combination.evalGroovyExpression(Combination.java:91)
at hudson.matrix.MatrixProject.rebuildConfigurations(MatrixProject.java:638)
at hudson.matrix.MatrixProject.onLoad(MatrixProject.java:505)
at hudson.model.Items.load(Items.java:279)
at jenkins.model.Jenkins$17.run(Jenkins.java:2673)
at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:169)
at jenkins.model.Jenkins$7.runTask(Jenkins.java:903)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:210)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
4 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.