zoukankan      html  css  js  c++  java
  • Statement cancelled due to timeout or client request

    Caused by: com.mysql.jdbc.exceptions.MySQLTimeoutException: Statement cancelled due to timeout or client request 
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2303) 
    at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2696) 
    at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2105) 
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2398) 
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2316) 
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2301) 
    at org.jboss.resource.adapter.jdbc.CachedPreparedStatement.executeUpdate(CachedPreparedStatement.java:95) 

    at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:251) 

    将解决方法

    设置defaultStatementTimeout="60"
    
    
    在sqlmap.xml中设置,表示60s
    sqlMapConfig>
    
        <settings cacheModelsEnabled="false" enhancementEnabled="true"
    lazyLoadingEnabled="false" errorTracingEnabled="true" maxRequests="32"
    maxSessions="10" maxTransactions="5" useStatementNamespaces="true" defaultStatementTimeout="60" />

    转自:http://blog.csdn.net/u014698348/article/details/53409786
  • 相关阅读:
    java入门学习(二)
    java入门学习(一)
    python3之数据类型
    pip基础用法
    python中的序列化与反序列化
    python装饰器
    python WEB接口自动化测试之requests库详解
    QQ发送邮件实例
    获取当前目录下最新的文件
    The Zen of Python
  • 原文地址:https://www.cnblogs.com/jbml-154312/p/7943019.html
Copyright © 2011-2022 走看看