Error Messages:
The following error occurs from an application client or in the server.log: java.security.AccessControlException: access denied (java.util.PropertyPermission name write… There is a permissions issue in the policy files. Either the client.policy for the application client or the server.policy for server side components does not have permission to set the property.
Solution:
Add the permission in client.policy (for the application client), or in server.policy (for EJB/web modules) for the application that needs to set the property. By default, applications only have “read” permission for properties.
For example, to grant read/write permission for all the files in the codebase directory, add or append the following to client.policy
or server.policy
:
grant codeBase "file:/.../build/sparc_SunOS/sec/-" {
permission java.util.PropertyPermission "*", "read,write";
};
Reference Resources: https://docs.oracle.com/cd/E19830-01/819-4726/fxxzk/index.html
Go to the running $JAVA_HOME and look for the xx.policy file, and then make changes in the contents
find . -type f -name "*.policy"
Note: local operation does not have such a problem and the production has, then you can consider the production of the corresponding file was modified to affect the original program (consider restoring the configuration to determine what configuration is affected)
Read More:
- [Solved] hadoop Error: 9000 failed on connection exception java.net.ConnectException Denied to Access
- CreateProcess error = 5, access denied. [How to Solve]
- [Solved] Tomcat configurate HTTPS error: java.net.SocketException: Permission denied
- RSA Decryption Error: java.security.InvalidKeyException: IOException : algid parse error, not a sequence
- JAVA: Random access file is always garbled
- JAVA Error Illegal access: this web application instance has been stopped already. Could not load net.sf
- Springboot integrates Redis annotation and access error: java.io.NotSerializableException: com.demo.entity.MemberEntity
- The Java class generated by protocol reports an error: cannot access
- [Solved] swagger Docmentation Access Error: Illegal DefaultValue 1024 for parameter type integer, java.lang.NumberFormatException
- [Solved] failed on connection exception: java.net.ConnectException: Connection denied
- [Solved] IDEA error: sun.security.pkcs not found
- [Solved] java.lang.IllegalAccessError: class org.springframework.data.redis.core.$ Proxy237 cannot access its superinterface org.springframework.data.redis.core.RedisConnectionUtils$RedisConnectionProxy
- [Solved] XxlJob Error: XxlJobFileAppender [101] -| Permission denied
- Spring Security Upgrade to Version 5.5.7, 5.6.4 or Above to Startup Error (Version incompatibility)
- [Solved] Rocketmq Root Account Startup Error: Permission denied
- [Solved] Hibernate Error: java.lang.StackOverflowError at java.lang.Integer.toString(Integer.java:402)
- [Solved] Java: compilation failed: internal java compiler error
- The java springboot websocket service server actively closes the connection and causes java.io.EOFException to be thrown
- How to Solve java server error (java application Run Normally)
- [Solved] IDEA java compile error: Error:java: Compilation failed: internal java compiler error