你好 。尝试从位于云上单独服务器上的 mysql 数据库读取时,出现以下错误并且没有返回数据。我无法找到错误的确切原因。有什么建议么 ??提前致谢 。
采取的步骤:连接的生存时间为 8 小时,自动重新连接设置为 true
log4j:WARN Detected problem with connection: java.net.SocketException: Broken pipe
java.net.SocketOutputStream.socketWrite0(Native Method)
java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:113)
java.net.SocketOutputStream.write(SocketOutputStream.java:159)
sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221)
sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291)
sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295)
sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141)
java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
java.io.BufferedWriter.flush(BufferedWriter.java:254)
org.apache.log4j.net.BridgeSocketAppender.append(BridgeSocketAppender.java:264)
org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
org.apache.log4j.Category.callAppenders(Category.java:206)
org.apache.log4j.Category.forcedLog(Category.java:391)
org.apache.log4j.Category.debug(Category.java:260)
com.samsung.svoice.SLogger.debug(SLogger.java:154)