Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-46274

hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList

      I am unable to use string functions in my groovy file.

      I have added required headers in script security xml. Please help me to resolve
      In finally FAILURE[Pipeline] End of Pipeline[Bitbucket] Notifying commit build result
      [Bitbucket] Build result notified
      hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList.tokenize() is applicable for argument types: (java.lang.String) values: [,]
      Possible solutions: toUnique(), toUnique(), takeWhile(groovy.lang.Closure), takeWhile(groovy.lang.Closure), toUnique(groovy.lang.Closure), toUnique(java.util.Comparator)
      at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:121)
      at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:153)
      at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:157)
      at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:16)

          [JENKINS-46274] hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: java.util.ArrayList

          Andrew Bayer added a comment -

          Please attach your Jenkinsfile.

          Andrew Bayer added a comment - Please attach your Jenkinsfile.

          This issue has fixed after we adding below in Scriptsecurityapproval.xml

              <string>method java.util.Collection toArray</string>
              <string>method java.util.ArrayList tokenize</string>

          Harikishore Palanisamy added a comment - This issue has fixed after we adding below in Scriptsecurityapproval.xml     <string>method java.util.Collection toArray</string>     <string>method java.util.ArrayList tokenize</string>

            avskishore Harikishore Palanisamy
            avskishore Harikishore Palanisamy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: