需要帮助解决 Sonar-runner 的以下错误:
13:57:55.705 WARN - exception clearing maxRows/queryTimeout
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after statement closed.
. . . . .
13:57:55.707 WARN - SQL Error: 0, SQLState: 08S01
13:57:55.708 ERROR - Communications link failure
The last packet successfully received from the server was 3,765,195 milliseconds ago.
The last packet sent successfully to the server was 3 milliseconds ago.
MySQL 配置:
mysql> show global variables like '%timeout%';
interactive_timeout= 28800
wait_timeout = 28800
JDBC 连接字符串:
jdbc:mysql://usaus020013srv.us002.siemens.net:3306/sonartest?enableQueryTimeouts=false&autoReconnet=true&useUnicode=true&characterEncoding=utf8
已经有线程建议将 wait_timeout 更改为足够大的值,但我已经将其设置为 28800,即 8 小时。
问候, Girish Joshi