java.sql.SQLException:The transaction is no longer active-st

java.sql.SQLException:The transaction is no longer active-status:'Rolled back.[Reason=Unknow]'.
Check the SQL Statement (preparation failed).
--- Cause:java.sql.SQLException:The transaction is no longer active - status:'Rolled back.[Reason=Unknown]'.No further JDBC access is allowed within this transaction.; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in com/ytincl/etms/system/login/dao/Login-SqlMap.xml.
--- The error occurred while executing query.
请问谁知道这是什么问题,这个错误出现特别少,几天才出现一次需要重启才能正常,
molly18lau 1年前 已收到2个回答 举报

5201314有 幼苗

共回答了16个问题采纳率:87.5% 举报

事务已经被回滚了,所以你不能继续操作了.说明如果你的数据库操作一切正常的情况下你应该不会出现任何问题,但是,如果一旦出现问题,回滚以后,你依然在用这个transaction进行数据库的操作,这样的代码肯定是有问题的.
你去检查下吧,如果出现回滚后,应该直接报错.然后重新操作,重新begin transaction.

1年前

4

zhangruirui15 幼苗

共回答了1个问题 举报

这个是ibatis?你把Login-SqlMap.xml.文件代码贴下,错误在里面。

1年前

1
可能相似的问题
Copyright © 2024 YULUCN.COM - 雨露学习互助 - 17 q. 0.897 s. - webmaster@yulucn.com