项目部署在weblogic上,操纵数据库,插入时间长,报错
java.sql.SQLException: The transaction is no longer active - status: 'Marked rollback. [Reason=weblogic.transaction.internal.TimedOutException: Transaction timed out after 121 seconds
BEA1-000AEFE07E3790328790]'. No further JDBC access is allowed within this transaction.
这是由于weblogic设置了超时时间,如果设置分钟内,系统为进行反应,则停止操作并进行回滚。
解决办法:
将Timeout Seconds 设置为更大的时间后,保存。还需要点击 Lock and Edit。