Cannot perform this operation because there is no current transaction(不能执行此操作,因为没有当前事务。)
2017-07-20 17:31
716 查看
db.endTransaction(); 时,添加判断 db!= bull 并且 db.inTransaction();
if(db != null && db.inTransaction()){
db.endTransaction();
}
参考链接:https://stackoverflow.com/questions/26331362/java-lang-illegalstateexception-cannot-perform-this-operation-because-there-is
if(db != null && db.inTransaction()){
db.endTransaction();
}
参考链接:https://stackoverflow.com/questions/26331362/java-lang-illegalstateexception-cannot-perform-this-operation-because-there-is
相关文章推荐
- 当前没有活动的视觉样式,因此与视觉样式相关的操作导致错误。Visual Styles-related operation resulted in an error because no visual style is currently active.
- 数据库操作的异常Cannot perform this operation because the connection pool has been close
- SharePoint Designer Check In and Check Out Error – Cannot perform this operation.The file is no longer check out or has been del
- 数据库操作的异常Cannot perform this operation because the connection pool has been close
- Android Cannot perform this operation because the transaction has already been marked successful
- 数据库操作的异常Cannot perform this operation because the connection pool has been close
- 数据库操作的异常Cannot perform this operation because the connection pool has been close
- This is probably because there is no OLE editor registered against the type
- SharePoint Designer Can not perform this operation.The file is no longer checked out or has been del
- GeoDatabase元数据不能编辑的问题“The application is not licensed to perform this operation ”
- Android ava.lang.IllegalStateException: Cannot perform this operation because the connection pool ha
- ThinkPHP v3.2.3 数据库读写分离,开启事务时报错:There is no active transaction
- 对象的当前状态使该操作无效 or SPListItem Update Operation is not valid due to the current state of the object
- 对象的当前状态使该操作无效 or SPListItem Update Operation is not valid due to the current state of the object
- SPListItem Update Operation is not valid due to the current state of the object(对象的当前状态使该操作无效。)
- RevitAPI: FamilyManager.Set - InvalidOperationException: There is no current type
- This is probably because there is no OLE editor registered against the type of file you were trying to open.
- [Outlook 2007]The error message: "Either there is no default mail client or the current mail client cannot fulfill the messaging
- PDO处理事务部分的报错 :Uncaught exception 'PDOException' with message There is no active transaction
- java.lang.IllegalStateException: Cannot perform this operation because the connection pool has been