亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

用Maven進行項目管理時,C3P0連接出現問題

出錯代碼:

警告:?com.mchange.v2.resourcepool.BasicResourcePool@52b116b9?--?an?attempt?to?checkout?a?resource?was?interrupted,?and?the?pool?is?still?live:?some?other?thread?must?have?interrupted?the?Thread?attempting?checkout!
java.lang.InterruptedException
at?java.lang.Object.wait(Native?Method)
at?com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1465)
at?com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:644)
at?com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:554)
at?com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutAndMarkConnectionInUse(C3P0PooledConnectionPool.java:758)
at?com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:685)
at?com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:140)
at?org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:111)
at?org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:77)
at?org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:619)
at?org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:870)
at?org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:931)
at?org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:941)
at?com.imooc.Dao.impl.UserDaoImpl.outMoney(UserDaoImpl.java:17)
at?com.imooc.Service.impl.UserServiceImpl.transfer(UserServiceImpl.java:20)
at?Demo.demo(Demo.java:24)
at?sun.reflect.NativeMethodAccessorImpl.invoke0(Native?Method)
at?sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at?sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at?java.lang.reflect.Method.invoke(Method.java:498)
at?org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at?org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at?org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at?org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at?org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
at?org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
at?org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
at?org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
at?org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
at?java.util.concurrent.FutureTask.run(FutureTask.java:266)
at?java.lang.Thread.run(Thread.java:748)


正在回答

1 回答

https://github.com/ThirdPrince/Spring-transaction-imooc-478

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

用Maven進行項目管理時,C3P0連接出現問題

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號