Sunday, May 6, 2012

SEVERE: Error while registering Oracle JDBC Diagnosability MBean.

Following error is seen in the stack trace (in the tomcat application server log).
SEVERE: Error while registering Oracle JDBC Diagnosability MBean.
java.lang.NullPointerException
    at oracle.jdbc.driver.OracleDriver.registerMBeans(OracleDriver.java:340)
    at oracle.jdbc.driver.OracleDriver$1.run(OracleDriver.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.jdbc.driver.OracleDriver.(OracleDriver.java:193)
    at oracle.jdbc.pool.OracleDataSource.(OracleDataSource.java:94)
Database is 11.1.0.7 (with PSU 11.1.0.7.10) and jdbc drivier used in the application server is also 11.1.0.7. Error caused by bug 7230912. Bug has been fixed from 11.2.0.1 upwards, upgrade the jdbc driver to latest version.

For more information refer

NullPointerException When Registering Oracle Jdbc Diagnosibility Mbean [ID 1270966.1]
"Error while registering Oracle JDBC Diagnosability MBean. java.security.AccessControlException: access denied (javax.management.MBeanTrustPermission register) " When Using JDBC Driver 11g [ID 1229803.1]