我用tomcat连接as400 总是出现一个java.sql.SQLWarning 怎么解决呢
2013-08-2616:31:20INFOSQLWarnings:ExtraURLelementsareignored.java.sql.SQLWarning:Extr...
2013-08-26 16:31:20 INFO SQLWarnings : Extra URL elements are ignored.
java.sql.SQLWarning: Extra URL elements are ignored.
at com.ibm.as400.access.JDError.getSQLWarning(JDError.java:293)
at com.ibm.as400.access.AS400JDBCConnection.setProperties(AS400JDBCConnection.java:2716)
at com.ibm.as400.access.AS400JDBCConnection.setProperties(AS400JDBCConnection.java:2690)
at com.ibm.as400.access.AS400JDBCConnection.setProperties(AS400JDBCConnection.java:2683)
at com.ibm.as400.access.AS400JDBCDriver.prepareConnection(AS400JDBCDriver.java:878)
at com.ibm.as400.access.AS400JDBCDriver.initializeConnection(AS400JDBCDriver.java:769)
at com.ibm.as400.access.AS400JDBCDriver.connect(AS400JDBCDriver.java:355)
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)
已解决 把url中的端口号去掉就行了 展开
java.sql.SQLWarning: Extra URL elements are ignored.
at com.ibm.as400.access.JDError.getSQLWarning(JDError.java:293)
at com.ibm.as400.access.AS400JDBCConnection.setProperties(AS400JDBCConnection.java:2716)
at com.ibm.as400.access.AS400JDBCConnection.setProperties(AS400JDBCConnection.java:2690)
at com.ibm.as400.access.AS400JDBCConnection.setProperties(AS400JDBCConnection.java:2683)
at com.ibm.as400.access.AS400JDBCDriver.prepareConnection(AS400JDBCDriver.java:878)
at com.ibm.as400.access.AS400JDBCDriver.initializeConnection(AS400JDBCDriver.java:769)
at com.ibm.as400.access.AS400JDBCDriver.connect(AS400JDBCDriver.java:355)
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)
已解决 把url中的端口号去掉就行了 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询