Skip to main content

jstatd error : Could not create remote object : access denied (java.util.PropertyPermission java.rmi.server.ignoreSubClasses write)

While running "./jstatd -J-Djava.security.policy=jstatd.all.policy &" command , below error is getting encountered

Error :-

Could not create remote object
access denied (java.util.PropertyPermission java.rmi.server.ignoreSubClasses write)
java.security.AccessControlException: access denied (java.util.PropertyPermission java.rmi.server.ignoreSubClasses write)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:536)
at java.lang.System.setProperty(System.java:699)
at sun.tools.jstatd.Jstatd.main(Jstatd.java:122)

Cause :- The "access denied" error is expected, because "jstatd" requires a security policy file specified with the "java.security.policy" system property, if there is no security manager running on the machine.


Solution :-

1) cd $ORACLE_HOME/jdk/bin
2) vi jstatd.all.policy
3) Add the below content :-
grant codebase "file:${java.home}/../lib/tools.jar" {
permission java.security.AllPermission;
};

4) Execute ./jstatd -J-Djava.security.policy=jstatd.all.policy &
5) Output would be something like below :-
[1] 12195

6) Now login on visualVM and then you can see all oc4j on the same host

Comments

pringi said…
Thanks. Saved a lot of time with your post.
vimod said…
thank you. worked fine.
Anonymous said…
in case of no oracle found then?

Popular posts from this blog

Weblogic server is not starting up ; weblogic.security.SecurityInitializationException: Authentication for user denied

If the weblogic server is not starting up and giving the below error , please follow the below solution :-
Error :-

#Aug 18, 2014 12:47:25 AM PDT# #Notice# #Security# #BEA-090082# #Security initializing using security realm myrealm.# #Aug 18, 2014 12:47:25 AM PDT# #Critical# #Security# #BEA-090403# #Authentication for user  denied# #Aug 18, 2014 12:47:25 AM PDT# #Critical# #WebLogicServer# #BEA-000386# #Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: Authentication for user  denied weblogic.security.SecurityInitializationException: Authentication for user  denied                 at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:966)                 at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1054)                 at weblogic.security.service.SecurityServiceManager.initialize(SecuritySer…

java.sql.SQLException: Connection Cache with this Cache Name is Disabled

Error :-

JDBC Connection; nested exception is java.sql.SQLException: Connection Cache with this Cache Name is Disabled
Caused by:
org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connection Cache with this Cache Name is Disabled
Caused by:
java.sql.SQLException: Connection Cache with this Cache Name is Disabled
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:175)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:240)
at oracle.jdbc.pool.OracleImplicitConnectionCache.getConnection(OracleImplicitConnectionCache.java:310)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:286)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:179)
at oracle.jdbc.pool.OracleDataSource.getConnection…