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

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/03 09:34:55
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

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
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.
请问谁知道这是什么问题,这个错误出现特别少,几天才出现一次需要重启才能正常,

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

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