Openbravo Issue Tracking System - Modules
View Issue Details
0029512ModulesAnalyticspublic2015-04-07 13:482022-02-01 08:05
shuehner 
Triage Platform Base 
normalminorhave not tried
newopen 
5
 
 
No
0029512: Analytics module is loading both pg+ora jdbc driver + even trying to load 3 more which will never be used
See excerpt from openbravo.log in demo-eu1.openbravo.com online demo server:

Apparently part of analytics is loading lots of possible jdbc drivers when only a single one of those is in use per instance , and 3 of those 5 attemtps i think do not make any sense ever.

ff9cdf33 2015-04-07 11:49:14,393 [ajp-bio-127.0.0.1-8009-exec-4] WARN mondrian.olap.MondrianProperties - mondrian.properties can't be found under '/var/lib/tomcat/.' or classloader
ff9cdf33 2015-04-07 11:49:14,393 [ajp-bio-127.0.0.1-8009-exec-4] INFO mondrian.olap.MondrianProperties - Mondrian: loaded 0 system properties
ff9cdf33 2015-04-07 11:49:14,619 [ajp-bio-127.0.0.1-8009-exec-4] INFO mondrian.rolap.RolapUtil - Mondrian: JDBC driver org.postgresql.Driver loaded successfully
ff9cdf33 2015-04-07 11:49:14,621 [ajp-bio-127.0.0.1-8009-exec-4] WARN mondrian.rolap.RolapUtil - Mondrian: Warning: JDBC driver sun.jdbc.odbc.JdbcOdbcDriver not found
ff9cdf33 2015-04-07 11:49:14,622 [ajp-bio-127.0.0.1-8009-exec-4] WARN mondrian.rolap.RolapUtil - Mondrian: Warning: JDBC driver org.hsqldb.jdbcDriver not found
ff9cdf33 2015-04-07 11:49:14,700 [ajp-bio-127.0.0.1-8009-exec-4] INFO mondrian.rolap.RolapUtil - Mondrian: JDBC driver oracle.jdbc.OracleDriver loaded successfully
ff9cdf33 2015-04-07 11:49:14,700 [ajp-bio-127.0.0.1-8009-exec-4] WARN mondrian.rolap.RolapUtil - Mondrian: Warning: JDBC driver com.mysql.jdbc.Driver not found
-
1.) use code as in erp checking driver classname from Openbravo.properties
2.) use java6 jdbc auto-loading, by not loading any jdbc class manually at all but just requesting DriverManager.getConnection and it will work (as both our pg+pra driver to have service entries in their manifest)
No tags attached.
Issue History
2015-04-07 13:48shuehnerNew Issue
2015-04-07 13:48shuehnerAssigned To => platform
2015-04-07 13:48shuehnerOBNetwork customer => No
2022-02-01 08:05alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.