关于java.sql.SQLException: Query execution was interrupted异常的原因
来源:互联网 发布:阿里云总部在哪里 编辑:程序博客网 时间:2024/06/04 19:34
数据库交互部分报异常信息:
Caused by: org.springframework.jdbc.UncategorizedSQLException: SqlMapClient operation; uncategorized SQLException for SQL []; SQL state [70100]; error code [1317];
--- The error occurred in cn/xxt/report/dao/impl/UnitStuNew.xml.
--- The error occurred while applying a parameter map.
--- Check the unit_stu_new.insertAuto-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: java.sql.SQLException: Query execution was interrupted; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
--- The error occurred in cn/xxt/report/dao/impl/UnitStuNew.xml.
--- The error occurred while applying a parameter map.
--- Check the unit_stu_new.insertAuto-InlineParameterMap.
--- Check the statement (update failed).
--- Cause: java.sql.SQLException: Query execution was interrupted
原因一般在于tomcat连接池配置限定了超时时间:maxWait="10000"
解决办法:
1、优化数据库交互语句,提高数据库访问效率
2、修改超时限定时间
- 关于java.sql.SQLException: Query execution was interrupted异常的原因
- java.sql.SQLException: Query execution was interrupted
- java.sql.SQLException: Query execution was interrupted
- Error querying database. Cause: java.sql.SQLException: Query execution was interrupted
- oracle sql developer 执行Mysql语句Query execution was interrupted
- mysql Sort aborted: Query execution was interrupted
- 关于DB2数据库报java.sql.SQLException: No suitable driver found异常的原因及解决方法
- java.sql.SQLException: ORA-01747异常原因
- java.sql.SQLException 异常 No ResultSet was produced
- java.sql.SQLException的常见原因
- java.sql.SQLException异常
- solr 4 线上服务,解决慢查询导入问题。Query execution was interrupted
- java.sql.SQLException: Wrong number of parameters: expected 0, was given 1 Query:
- mysql5.5异常: java.sql.SQLException: Packet for query is too large (1055975 > 1048576).
- mysql5.5异常: java.sql.SQLException: Packet for query is too large (1055975 > 1048576).
- mysql5.5异常: java.sql.SQLException: Packet for query is too large (1055975 > 1048576).
- [异常解决]java.sql.SQLException: ORA-00947
- java.sql.SQLException: Io 异常: Connection reset
- 有关PECL接口和RS422接口调试中的问题
- MySQL时间戳转换
- 使用Vmware EXS Server 3.5安装RAC
- 十六计使SEO优化道路了如指掌
- Core graphics UIImage
- 关于java.sql.SQLException: Query execution was interrupted异常的原因
- 对于Android Service 生命周期进行全解析
- webkit图形库移植
- column vs. row
- 测试工作3个月总结
- linux 库文件 生成与使用
- Android平台下流媒体.视频播放器(功能介绍及源码解析,附源码) SeeJoPlayer
- 电梯掉落 自救
- cdev_alloc和cdev_add