Java com.mysql.jdbc.exceptions.jdbc4.CommunicationsException

Java com.mysql.jdbc.exceptions.jdbc4.CommunicationsException,java,jdbc,log4j,Java,Jdbc,Log4j,当执行log4j.xml中的insert查询时,我遇到上述异常情况???错误似乎不言自明。你的问题是什么?如何解决这个问题?每当我在我的web应用程序中记录一些操作时,我都会遇到这个异常在使用您的应用程序之前,您应该考虑终止和/或测试连接有效性,增加服务器超时超时的服务器配置值,或者使用连接器/J连接属性“AutoReNeNeCT= true”来避免这个问题。“即使在MySQL中增加等待超时之后,在生产服务器中也会遇到此异常。 com.mysql.jdbc.exceptions.jdbc4.Co

当执行log4j.xml中的insert查询时,我遇到上述异常情况???

错误似乎不言自明。你的问题是什么?如何解决这个问题?每当我在我的web应用程序中记录一些操作时,我都会遇到这个异常在使用您的应用程序之前,您应该考虑终止和/或测试连接有效性,增加服务器超时超时的服务器配置值,或者使用连接器/J连接属性“AutoReNeNeCT= true”来避免这个问题。“即使在MySQL中增加等待超时之后,在生产服务器中也会遇到此异常。
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet success fully received from the server was 176,705,355 milliseconds ago. The last packet sent successfully to the server was 176,705,366 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.