weblogic數(shù)據(jù)庫連接池?cái)嗔酥蟮慕鉀Q方案幾種異常:1、Failed to setAutoCommit to true for pool connectio weblogic數(shù)據(jù)庫連接池?cái)嗔酥蟮慕鉀Q方案 幾種異常:
1,、Failed to setAutoCommit to true for pool connection.
2,、org.hibernate.exception.GenericJDBCException: could not execute query
3、could not open hibernate session for transaction....
原因:在weblogic服務(wù)器中,,由于數(shù)據(jù)庫關(guān)閉了或者數(shù)據(jù)庫服務(wù)重新啟動(dòng)了,,而應(yīng)用服務(wù)器并沒有重新啟動(dòng),導(dǎo)致應(yīng)用連不上數(shù)據(jù)庫,,后臺(tái)就報(bào)錯(cuò),。
解決方案: 進(jìn)入weblogic控制臺(tái)-->點(diǎn)“connection pools”-->選你配置的數(shù)據(jù)源(門戶和UUM都要配置) -->點(diǎn)“connections”選項(xiàng)卡-->點(diǎn)“show”-->設(shè)置Test Frequency 為20 然后勾選Test Reserved Connections、Test Created Connections,、Test Released Connections選項(xiàng),。 -->點(diǎn)擊Apply
|