Hi Isomorphic,
please see this error with SqlConnectionPooling and Apache Commons DBCP Database (I'm using the commons-dbcp-1.4.jar you deliver with the framework).
It seems there is some issue with maxConnLifetimeMillis (which you have in your docs), but I don't know what, as it seems to be correct w.r.t the Apache docs.
It does seem though that this setting is only in Apache 2.0.1+ and not in 1.4. Is this possible? Did you plan to ship a newer version of Commons DBCP?
(FYI: 2.0 uses the org.apache.commons.dbcp2 namespace, while 1.4 uses org.apache.commons.dbcp).
I'm testing with 12.0p here now, but I assume it was the same with 6.1p.
I have this configuration in my server.properties file (v12.0p_2018-12-13).
which results in this log entry for the 1st DB access:
Best regards
Blama
please see this error with SqlConnectionPooling and Apache Commons DBCP Database (I'm using the commons-dbcp-1.4.jar you deliver with the framework).
It seems there is some issue with maxConnLifetimeMillis (which you have in your docs), but I don't know what, as it seems to be correct w.r.t the Apache docs.
It does seem though that this setting is only in Apache 2.0.1+ and not in 1.4. Is this possible? Did you plan to ship a newer version of Commons DBCP?
(FYI: 2.0 uses the org.apache.commons.dbcp2 namespace, while 1.4 uses org.apache.commons.dbcp).
I'm testing with 12.0p here now, but I assume it was the same with 6.1p.
I have this configuration in my server.properties file (v12.0p_2018-12-13).
Code:
sql.defaultDatabase: Oracle sql.useAnsiJoins: true # Apache Commons DBCP Database connection pooling sql.pool.enabled: true sql.pool.minIdle: 3 sql.pool.testWhileIdle: true sql.pool.timeBetweenEvictionRunsMillis: 15000 sql.pool.minEvictableIdleTimeMillis: 29000 [B]sql.pool.maxConnLifetimeMillis: 60000[/B] sql.Oracle.database.type: oracle sql.Oracle.autoJoinTransactions: true sql.Oracle.database.supportsSQLLimit: false sql.Oracle.interface.credentialsInURL: true sql.Oracle.interface.type: dataSource sql.Oracle.driver: oracle.jdbc.pool.OracleDataSource sql.Oracle.driver.serverName: localhost sql.Oracle.driver.portNumber: 1521 sql.Oracle.driver.databaseName: XE sql.Oracle.driver.user: xxx sql.Oracle.driver.password: xxx sql.Oracle.driver.driverType: thin sql.Oracle.driver.networkProtocol: tcp sql.Oracle.driver.context:
Code:
=== 2018-12-17 12:09:21,095 [ec-6] DEBUG AppBase - [builtinApplication.fetchWithoutRequiresRole] No userTypes defined, allowing anyone access to all operations for this application === 2018-12-17 12:09:21,096 [ec-6] DEBUG AppBase - [builtinApplication.fetchWithoutRequiresRole] No public zero-argument method named '_fetchWithoutRequiresRole' found, performing generic datasource operation === 2018-12-17 12:09:21,096 [ec-6] WARN LMSSQLDataSource - [builtinApplication.fetchWithoutRequiresRole] addDefaultTemplateContext results in null-Language, defaulting to English. === 2018-12-17 12:09:21,100 [ec-6] DEBUG JSTranslater - [builtinApplication.fetchWithoutRequiresRole] disableStringInBrowser = false === 2018-12-17 12:09:21,100 [ec-6] INFO SQLDataSource - [builtinApplication.fetchWithoutRequiresRole] Performing fetch operation with ...ommitted... === 2018-12-17 12:09:21,110 [ec-6] DEBUG SQLDriver - [builtinApplication.fetchWithoutRequiresRole] Oracle: Initializing SQL config using interface.type: datasource with driver: oracle.jdbc.pool.OracleDataSource === 2018-12-17 12:09:21,116 [ec-6] INFO DataTools - [builtinApplication.fetchWithoutRequiresRole] While applying to oracle.jdbc.pool.OracleDataSource, couldn't setProperties: { context:"No such property" } === 2018-12-17 12:09:21,134 [ec-6] DEBUG SQLDriver - [builtinApplication.fetchWithoutRequiresRole] Oracle: Database metadata: { driverName:"Oracle JDBC driver", driverMajorVersion:11, driverMinorVersion:2, databaseProductName:"Oracle", databaseProductVersion:"Oracle Database 11g Express Edition Release 11.2.0.2.0 - Production", databaseMinorVersion:2, databaseMajorVersion:11, JDBCMinorVersion:2, driverVersion:"11.2.0.3.0", JDBCMajorVersion:11 } === 2018-12-17 12:09:21,139 [ec-6] DEBUG SQLDataSource - [builtinApplication.fetchWithoutRequiresRole] DataSource 11 acquired SQLDriver instance 1053762653 during initialization SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. === 2018-12-17 12:09:21,312 [ec-6] DEBUG Velocity - [builtinApplication.fetchWithoutRequiresRole] Velocity config: { } log4j:WARN No appenders could be found for logger (org.apache.Velocity). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. === 2018-12-17 12:09:21,391 [ec-6] INFO Velocity - [builtinApplication.fetchWithoutRequiresRole] Velocity Tools available, support enabled. === 2018-12-17 12:09:21,403 [ec-6] DEBUG SQLDataSource - [builtinApplication.fetchWithoutRequiresRole] DataSource 20 acquired SQLDriver instance 538846648 during initialization === 2018-12-17 12:09:21,403 [ec-6] DEBUG SQLDataSource - [builtinApplication.fetchWithoutRequiresRole] DataSource 24 acquired SQLDriver instance 1641800829 during initialization === 2018-12-17 12:09:21,412 [ec-6] INFO SQLDataSource - [builtinApplication.fetchWithoutRequiresRole] derived query: SELECT $defaultSelectClause FROM $defaultTableClause$defaultAnsiJoinClause WHERE $defaultWhereClause === 2018-12-17 12:09:21,413 [ec-6] INFO SQLDataSource - [builtinApplication.fetchWithoutRequiresRole] 11: Executing SQL query on 'Oracle': SELECT ...ommitted... [B]=== 2018-12-17 12:09:21,457 [ec-6] INFO DataTools - [builtinApplication.fetchWithoutRequiresRole] While applying to com.isomorphic.pool.ISCObjectPool, couldn't setProperties: { maxConnLifetimeMillis:"No such property" }[/B] === 2018-12-17 12:09:21,457 [ec-6] INFO PoolManager - [builtinApplication.fetchWithoutRequiresRole] SmartClient pooling started for 'Oracle' objects
Blama
Comment