报错内容:
AbandonedObjectPool is used (org.apache.commons.dbcp.AbandonedObjectPool@13d5f21)
LogAbandoned: true
RemoveAbandoned: true
RemoveAbandonedTimeout: 180
卡住,接着会报如下异常:
2019-04-06 16:03:14,945 JDBCExceptionReporter:77 -[WARN] SQL Error: 0, SQLState: null
2019-04-06 16:03:14,949 JDBCExceptionReporter:78 -[ERROR] Cannot create PoolableConnectionFactory (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)
2019-04-06 16:03:14,951 JDBCExceptionReporter:77 -[WARN] SQL Error: 0, SQLState: null
2019-04-06 16:03:14,952 JDBCExceptionReporter:78 -[ERROR] Cannot create PoolableConnectionFactory (Could not create connection to database server. Attempted reconnect 3 times. Giving up.)
2019-04-06 16:03:14,955 DefaultDispatcherErrorHandler:42 -[ERROR] Exception occurred during processing request: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is org.hibernate.exception.GenericJDBCException: Cannot open connection
Caused by: org.hibernate.exception.GenericJDBCException: Cannot open connection
原因:数据库的连接存在问题
解决办法:打开连接数据库的文件,查看连接的数据库信息是否正确。