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

[JEP-200] java.lang.SecurityException: Rejected: org.apache.tools.ant.Location

    Details

    • Similar Issues:

      Description

      In pipeline script, when running this command on a Windows node

      def exeFiles = findFiles(glob: 'workspace/**/*.exe')

      the following error is raised

      java.lang.SecurityException: Rejected: org.apache.tools.ant.Location; see https://jenkins.io/redirect/class-filter/
      	at hudson.remoting.ClassFilter.check(ClassFilter.java:76)
      	at hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:129)
      	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1868)
      	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1751)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2042)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573)
      	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2287)
      	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2211)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2069)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1573)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:433)
      	at hudson.remoting.UserRequest.deserialize(UserRequest.java:277)
      	at hudson.remoting.UserResponse.retrieve(UserRequest.java:310)
      	at hudson.remoting.Channel.call(Channel.java:952)
      Caused: java.io.IOException: Failed to deserialize response to UserRequest:hudson.FilePath$31@6f6d93b
      	at hudson.remoting.Channel.call(Channel.java:960)
      	at hudson.FilePath.act(FilePath.java:998)
      Caused: java.io.IOException: remote file operation failed: E:\jenkins-agent\workspace\Test-CS at hudson.remoting.Channel@34f7faa0:JNLP4-connect connection from 10.8.6.247/10.8.6.247:61004
      	at hudson.FilePath.act(FilePath.java:1005)
      	at hudson.FilePath.act(FilePath.java:987)
      	at hudson.FilePath.list(FilePath.java:1774)
      	at hudson.FilePath.list(FilePath.java:1758)
      	at hudson.FilePath.list(FilePath.java:1743)
      	at org.jenkinsci.plugins.pipeline.utility.steps.fs.FindFilesStepExecution.run(FindFilesStepExecution.java:63)
      	at org.jenkinsci.plugins.pipeline.utility.steps.fs.FindFilesStepExecution.run(FindFilesStepExecution.java:44)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)
      	at hudson.security.ACL.impersonate(ACL.java:290)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)

        Attachments

          Activity

            People

            • Assignee:
              oleg_nenashev Oleg Nenashev
              Reporter:
              chschneider89 Christian Schneider
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: