作者:冷向泽 | 来源:互联网 | 2023-09-11 14:51
各位大神,求助。在weblogic控制台通过更新的方式发布应用后,日志中不停的打印如下内容,大概一秒一次,不影响应用的正常使用,但是很闹心。[officeauto][2016-06-01
各位大神,求助。
在weblogic控制台通过更新的方式发布应用后,日志中不停的打印如下内容,大概一秒一次,不影响应用的正常使用,但是很闹心。
[officeauto][2016-06-01 10:55:18,845][ERROR][com.primeton.component.rpf.dao.impl.MessageDAOForOracleImpl][Line:64] java.lang.RuntimeException: java.sql.SQLException: com.mchange.v2.c3p0.PoolBackedDataSource@10f1d7e7 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@10f1c7d4 [ acquireIncrement -> 2, acquireRetryAttempts -> 1, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 10000, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> 10f1c7d4, idleConnectionTestPeriod -> -1, initialPoolSize -> 5, maxIdleTime -> 0, maxPoolSize -> 5, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 10, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@10f0643a [ description -> null, driverClass -> oracle.jdbc.driver.OracleDriver, factoryClassLocation -> null, identityToken -> 10f0643a, jdbcUrl -> jdbc:oracle:thin:@10.7.101.46:1521:pydb3, properties -> {user=******, password=******} ], preferredTestQuery -> null, propertyCycle -> 300, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, usesTraditionalReflectiveProxies -> false ], factoryClassLocation -> null, identityToken -> 10f1d7e7, numHelperThreads -> 3 ] has been closed() -- you can no longer use it.
c3po版本:c3p0-0.9.0.jar
数据源配置信息:
Oracle
oracle.jdbc.driver.OracleDriver
jdbc:oracle:thin:@10.7.101.46:1521:pydb3
portal
{3DES}Pe2E5Cxrerer6JcT0rerBrXc=
abframe4nui
abframe4nui -->
2
5
2
ISOLATION_DEFAULT
SELECT count(*) from EOS_UNIQUE_TABLE
-1
weblogic启动的时候应用可以正常启动并且不打印上面的日志,但是一更新就打印。
2 个解决方案
把你的连接池日志屏蔽掉我用的Log4j把连接池的日志级别提高
log4j.logger.com.mchange=error就屏蔽掉了