Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Problems with enabled Java Security Manager



The system node list cannot be accessed on JBoss with the Java Security Manager enabled. 

Error Messages

14:07:54,173 INFO [stdout] (Dispatcher-Thread-89) Caused by: java.sql.SQLException: Connection is not associated with a managed
14:07:54,173 INFO [stdout] (Dispatcher-Thread-89)

Steps to Reproduce

1. Enable Java Security Manager in standalone.conf file in $JBOSS_HOME/bin/ as below:

Uncomment this to run with a security manager enabled
# Java Security Manager Policy
JAVA_OPTS="$JAVA_OPTS$JBOSS_HOME/bin/jboss.policy -Djboss.home.dir=$JBOSS_HOME"

2. Restart JBoss.
3. Access the System Node instance list.

Root Cause

A defect or configuration issue in the operating environment.
The only "access denied" in the log is this:

    at org.jboss.jca.adapters.jdbc.WrappedResultSet.getObject(
    ... 154 more
Caused by: access denied ("" "/nics/jboss/EAP-6.4.0/modules/com/oracle/main/ojdbc6.jar" "read")
    at [rt.jar:1.8.0_66]
    at [rt.jar:1.8.0_66]
    at java.lang.SecurityManager.checkPermission( [rt.jar:1.8.0_66]


Use a similar entry in the java security policy file as given below.

grant codeBase "file:${jboss.home.dir}/modules/oracle/jdbc/main/-" {

Adjust this to the required JDBC driver location.
Suggest Edit

Published February 9, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us