c3po数据库连接池异常

jianglongwei 发布于 2013/12/05 10:44
阅读 1K+
收藏 0

项目里使用c3po数据库连接池,数据库informix,应用服务器使用tomcat5.5
c3po配置如下:
// 设置c3po数据库连接池参数
//初始化时创建的连接数
        datasource.setInitialPoolSize(3);
        //最小的连接数
        datasource.setMinPoolSize(1);
        //最大连接数
        datasource.setMaxPoolSize(4);
        //连接数的最大空闲时间,30秒未使用则会被收回
        datasource.setMaxIdleTime(30);
        //检查空闲连接的时间
        datasource.setIdleConnectionTestPeriod(30);
        //每次连接监测连接是否可用
        datasource.setAcquireIncrement(3);
项目启动后,myeclipse控制台总是会输出:
2013-12-5 10:44:29 com.mchange.v2.c3p0.SQLWarnings logAndClearWarnings
信息: Database selected
java.sql.SQLWarning: Database selected
at com.informix.util.IfxWarnMsg.getSQLWarning(IfxWarnMsg.java:125)
at com.informix.util.IfxWarnMsg.getSQLWarning(IfxWarnMsg.java:149)
at com.informix.jdbc.IfxSqliConnect.a(IfxSqliConnect.java:1915)
at com.informix.jdbc.IfxSqliConnect.t(IfxSqliConnect.java:4137)
at com.informix.jdbc.IfxSqliConnect.b(IfxSqliConnect.java:2738)
at com.informix.jdbc.IfxSqliConnect.a(IfxSqliConnect.java:2612)
at com.informix.jdbc.IfxSqli.a(IfxSqli.java:2615)
at com.informix.jdbc.IfxSqli.executeOpenDatabase(IfxSqli.java:1800)
at com.informix.jdbc.IfxSqliConnect.<init>(IfxSqliConnect.java:1317)
at sun.reflect.GeneratedConstructorAccessor10.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.informix.jdbc.IfxDriver.connect(IfxDriver.java:253)
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:134)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)
网上找了好多资料,都没有解决。请大家帮忙看看怎么回事?谢谢!

加载中
0
LucEsape
LucEsape
你的日志级别是什么?
返回顶部
顶部