# Jenkins agent terminated soon after connection with master node with error Caused by: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "hudson.util.RingBufferLogHandler.defaultSize" "read")

**URL:** <https://community.jenkins.io/t/jenkins-agent-terminated-soon-after-connection-with-master-node-with-error-caused-by-java-security-accesscontrolexception-access-denied-java-util-propertypermission-hudson-util-ringbufferloghandler-defaultsize-read/669>\
**Category:** Ask a question\
**Created:** [October 27, 2021, 12:20pm UTC](https://community.jenkins.io/t/jenkins-agent-terminated-soon-after-connection-with-master-node-with-error-caused-by-java-security-accesscontrolexception-access-denied-java-util-propertypermission-hudson-util-ringbufferloghandler-defaultsize-read/669 "2021-10-27T12:20:02Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![TestEngineer](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@TestEngineer](https://community.jenkins.io/u/TestEngineer)\
**Post date:** [October 27, 2021, 12:20pm UTC](https://community.jenkins.io/t/jenkins-agent-terminated-soon-after-connection-with-master-node-with-error-caused-by-java-security-accesscontrolexception-access-denied-java-util-propertypermission-hudson-util-ringbufferloghandler-defaultsize-read/669/1 "2021-10-27T12:20:02Z")

</div>

Hi Team

This is my second post idk why my first post with similar problem has been hidden by bot ☹

I am new to jenkins and currently stuck with a problem can any one help me here

Here is the background info of my problem:

Master node is based on linux  
which has two agent node Test1 and Test2  
On both agent i ran my automation tests on monday this week I updated the jenkins version to the latest one after the update one of my agent machine went offline , when I went into agent machine via remote desktop and run jnlp file agent got connected but the immediately terminated and keep terminated since two days after initially connected.  
I looked into the logs and following is the log message

current version of Open jdk is 1.8.0.312  
current jenkins version is 2.318  
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.(RingBufferLogHandler.java:39)  
… 11 more

---

<div class="post-metadata">

**Author:** ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)\
**Post date:** [October 27, 2021, 4:47pm UTC](https://community.jenkins.io/t/jenkins-agent-terminated-soon-after-connection-with-master-node-with-error-caused-by-java-security-accesscontrolexception-access-denied-java-util-propertypermission-hudson-util-ringbufferloghandler-defaultsize-read/669/2 "2021-10-27T16:47:54Z")

</div>

> [@TestEngineer](#):
>
> This is my second post idk why my first post with similar problem has been hidden by bot ☹

it was considered spam, discourse by default has pretty agressive rules for a persons first post to prevent bots.

> [@TestEngineer](#):
>
> WARNUNG: LinkageError while performing

Googleing for this, (and fixing the WARNUNG typo) has lead me to [Loading...](https://issues.jenkins.io/browse/JENKINS-61103) which seems to say its a jdk bug.

After that its outside my skills sets. My gut says that your agent isn’t running java 8 even though you say your 1.8.0.312

---

<div class="post-metadata">

**Author:** ![TestEngineer](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@TestEngineer](https://community.jenkins.io/u/TestEngineer)\
**Post date:** [October 28, 2021, 7:15am UTC](https://community.jenkins.io/t/jenkins-agent-terminated-soon-after-connection-with-master-node-with-error-caused-by-java-security-accesscontrolexception-access-denied-java-util-propertypermission-hudson-util-ringbufferloghandler-defaultsize-read/669/3 "2021-10-28T07:15:32Z")

</div>

Thanks for you reply  
my agent is using java 8 for  
openjdk version 1.8.0\_312

i just check via cmd and then java -version

---

<div class="post-metadata">

**Author:** ![martinjost](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/martinjost/32/242_2.png) [@martinjost](https://community.jenkins.io/u/martinjost)\
**Post date:** [October 29, 2021, 2:21pm UTC](https://community.jenkins.io/t/jenkins-agent-terminated-soon-after-connection-with-master-node-with-error-caused-by-java-security-accesscontrolexception-access-denied-java-util-propertypermission-hudson-util-ringbufferloghandler-defaultsize-read/669/4 "2021-10-29T14:21:33Z")

</div>

If you’re unlucky the environment in CI is using different PATH settings etc. than in your interactive shell.  
You might want to have your slave startup script to spit out the java version it sees (in case your using a startup-method allowing this)

Also note that in my understanding the recommended JDK version for Jenkins is JDK11 (not 8 any more)  
(We’re using Adoptium JDK11 ([Adoptium - Open source, prebuilt OpenJDK binaries](https://adoptium.net/?variant=openjdk11&jvmVariant=hotspot)) on RH machines successfully)  
Good luck  
Martin

---

<div class="post-metadata">

**Author:** ![TestEngineer](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@TestEngineer](https://community.jenkins.io/u/TestEngineer)\
**Post date:** [November 1, 2021, 12:29pm UTC](https://community.jenkins.io/t/jenkins-agent-terminated-soon-after-connection-with-master-node-with-error-caused-by-java-security-accesscontrolexception-access-denied-java-util-propertypermission-hudson-util-ringbufferloghandler-defaultsize-read/669/5 "2021-11-01T12:29:13Z")

</div>

Thank you for your reply , as i am new to this stuff i would try do following

Update java 8 to java 11 on both master and both agents machine

any other to do for me as suggestion or after updating it will start working as expected

Thanks and regards

---

<div class="post-metadata">

**Author:** ![jglick](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/jglick/32/77_2.png) [@jglick](https://community.jenkins.io/u/jglick)\
**Post date:** [November 2, 2021, 12:43pm UTC](https://community.jenkins.io/t/jenkins-agent-terminated-soon-after-connection-with-master-node-with-error-caused-by-java-security-accesscontrolexception-access-denied-java-util-propertypermission-hudson-util-ringbufferloghandler-defaultsize-read/669/6 "2021-11-02T12:43:46Z")

</div>

Are you running Jenkins inside Tomcat or something? You seem to have a `SecurityManager` configured, which is not supported. More likely about Jenkins was installed, rather than Java version.

---

<div class="post-metadata">

**Author:** ![TestEngineer](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@TestEngineer](https://community.jenkins.io/u/TestEngineer)\
**Post date:** [November 2, 2021, 12:58pm UTC](https://community.jenkins.io/t/jenkins-agent-terminated-soon-after-connection-with-master-node-with-error-caused-by-java-security-accesscontrolexception-access-denied-java-util-propertypermission-hudson-util-ringbufferloghandler-defaultsize-read/669/7 "2021-11-02T12:58:36Z")

</div>

no I am not running jenkins inside any thing  
from where should i get the more info in this , I just updated my agents to JDK 11 but still having result agent terminated again and again with same error log.

---

<div class="post-metadata">

**Author:** ![TestEngineer](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@TestEngineer](https://community.jenkins.io/u/TestEngineer)\
**Post date:** [November 12, 2021, 4:31pm UTC](https://community.jenkins.io/t/jenkins-agent-terminated-soon-after-connection-with-master-node-with-error-caused-by-java-security-accesscontrolexception-access-denied-java-util-propertypermission-hudson-util-ringbufferloghandler-defaultsize-read/669/8 "2021-11-12T16:31:14Z")

</div>

For all those who gonna search this issue in future i would like to share some inside info which i got during the workaround  
The issue does not lies within JDK or Master agent Configuration

I was initially using Java Web Start launcher to launch jnlp file and then shifted to OpenWebStart which was actually prompting the error.  
In future if any one get to handle with this error then try to launch the agent via using agent.jar file directly from the cmd

or write a powershell script to execute agent.jar via cmd and please do not change jdk versions or anyting on master or on agent

Thanks

---

<div class="post-metadata">

**Author:** ![MarkEWaite](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/markewaite/32/20_2.png) [@MarkEWaite](https://community.jenkins.io/u/MarkEWaite)\
**Post date:** [March 12, 2022, 1:55am UTC](https://community.jenkins.io/t/jenkins-agent-terminated-soon-after-connection-with-master-node-with-error-caused-by-java-security-accesscontrolexception-access-denied-java-util-propertypermission-hudson-util-ringbufferloghandler-defaultsize-read/669/9 "2022-03-12T01:55:11Z")

</div>

> [@TestEngineer](#):
>
> I was initially using Java Web Start launcher to launch jnlp file

This bug is fixed in Jenkins 2.332.1

[https://issues.jenkins.io/browse/JENKINS-67000](https://issues.jenkins.io/browse/JENKINS-67000)
