Java-oracle Error during SSH integration: Error while registering Oracle JDBC Diagnosablility MBean, jdbcoracle
During the project exercise today, after integrating SSH, an oracle error is reported in the console:
Error while registering Oracle JDBC Diagnosability MBean.
Javax. management. malformedObjectNameException: Invalid character ''' in value part of propertyat javax. management. objectName. construct (ObjectName. java: 602) at javax. management. objectName. (ObjectName. java: 1394) at oracle. jdbc. driver. oracleDriver. registerMBeans (OracleDriver. java: 303) at oracle. jdbc. driver. oracleDriver $ 1.run( OracleDriver. java: 213) at java. security. accessController. doPrivileged (Native Metho D) at oracle. jdbc. driver. oracleDriver. (OracleDriver. java: 209) at java. lang. class. forName0 (Native Method) at java. lang. class. forName (Class. java: 169 )... baidu later learned that this is a Bug in Oracle Database 11g Release 1 (11.1.0.6.0) JDBC Drivers. Replace ojdbc6.jar in tomcat/lib with a later version, for example, 11.1.0.7.0. TIPS: how to view the ojdbc6.jar version:
1 java-jar ojdbc. jar
As shown in: