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

java.io.FilePermission when using JNLP slave

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Platform: All, OS: All

      I can start the client, it asks me whether I want to trust and run the
      webstart application, and the slave starts up and reports "connected".

      When I look in my master webpage, I see that the slave is marked available,
      but I can't see any information in the "System Information" page. Also the
      log entry is completely empty.

      When I try to start a build on the remote machine, the build ends very fast,
      and the buildlog contains a message like below:
      --------------
      started
      Building remotely on experimental
      FATAL: access denied (java.io.FilePermission d:\temp\hudson\workspace\Java
      Preferences Plugin read)
      java.security.AccessControlException: access denied (java.io.FilePermission
      d:\temp\hudson\workspace\Java Preferences Plugin read)
      at java.security.AccessControlContext.checkPermission(Unknown Source)
      at java.security.AccessController.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkRead(Unknown Source)
      at java.io.File.exists(Unknown Source)
      at java.io.File.mkdirs(Unknown Source)
      at hudson.FilePath$3.invoke(FilePath.java:227)
      at hudson.FilePath$3.invoke(FilePath.java:225)
      at hudson.FilePath$1.call(FilePath.java:176)
      at hudson.remoting.UserRequest.perform(UserRequest.java:57)
      at hudson.remoting.UserRequest.perform(UserRequest.java:22)
      at hudson.remoting.Request$2.run(Request.java:167)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      ---------------------------

      • The directory D:\temp\hudson is created, and afaik writable for all users.
      • The gui of the slave does not change, nor does it show info on the
        console.
      • The jobs also fail when they do not contain spaces
      • The jobs also fail on Linux.
      • I'm using the released version of 1.81, but also in my custom build of 2
        days ago it failed.

            Unassigned Unassigned
            sjoerdbakker sjoerdbakker
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: