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

JavaWebStart agents cannot connect due to AccessControlException

XMLWordPrintable

    • 2.335,2.332.1

      This week after the jenkins update of 2.317 and to 2.318 , my agent machine (windows 10) start getting terminated again and again after connected

       

      As normally I use jnlp file right click to launch , the jenkins agent windows appears and I can see Connected but within few seconds its got Terminated

       

      I went into the remoting folder to check out the logs and it prompts this error

       

      Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "hudson.util.RingBufferLogHandler.defaultSize" "read")

       

      Agent Java version : OpenJDK 1.8.0 301
      Jenkins version : Jenkins 2.318

      I am using Openwebstart for jnlp

       

      Complete log message (agent machine)

      Okt 26, 2021 9:53:03 AM org.jenkinsci.remoting.engine.JnlpAgentEndpointResolver resolve
      INFORMATION: Remoting server accepts the following protocols: [JNLP4-connect, Ping]
      Okt 26, 2021 9:53:03 AM org.jenkinsci.remoting.protocol.impl.BIONetworkLayer$Reader run
      INFORMATION: Waiting for ProtocolStack to start.
      Okt 26, 2021 9:53:08 AM hudson.remoting.UserRequest perform
      WARNUNG: LinkageError while performing UserRequest:hudson.slaves.SlaveComputer$SlaveInitializer@6cfcc55d
      java.lang.ExceptionInInitializerError
      at hudson.slaves.SlaveComputer$SlaveInitializer.call(SlaveComputer.java:1042)
      at hudson.slaves.SlaveComputer$SlaveInitializer.call(SlaveComputer.java:1033)
      at hudson.remoting.UserRequest.perform(UserRequest.java:211)
      at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      at hudson.remoting.Request$2.run(Request.java:376)
      at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:78)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:122)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "hudson.util.RingBufferLogHandler.defaultSize" "read")
      at java.security.AccessControlContext.checkPermission(Unknown Source)
      at java.security.AccessController.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkPermission(Unknown Source)
      at com.sun.javaws.security.JavaWebStartSecurity.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
      at java.lang.System.getProperty(Unknown Source)
      at java.lang.Integer.getInteger(Unknown Source)
      at java.lang.Integer.getInteger(Unknown Source)
      at hudson.util.RingBufferLogHandler.<clinit>(RingBufferLogHandler.java:39)
      ... 11 more

       

            jglick Jesse Glick
            testengineer Bilawal Ali
            Votes:
            2 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: