查看: 917|回復: 2

[問題] 求助 黑盒子亂碼

[複製鏈接]

7

主題

48

帖子

867

金錢

妖魔

Rank: 4

威望
0
精華
0
貢獻
0
鑽石
0
閱讀權限
35
積分
915
在線時間
38 小時
相冊
0
日誌
0
好友
0
發表於 2024-4-7 10:47 | 顯示全部樓層 |閱讀模式
ERROR - The last packet successfully received from the server was 59,488,851 milliseconds ago.  The last packet sent successfully to the server was 59,488,852 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.
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received from the server was 59,488,851 milliseconds ago.  The last packet sent successfully to the server was 59,488,852 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.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
        at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1116)
        at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3851)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2471)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2651)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2683)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2144)
        at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1379)
        at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.execute(NewProxyPreparedStatement.java:989)
        at com.lineage.server.datatables.sql.AccountTable.updateLan(AccountTable.java:311)
        at com.lineage.server.datatables.lock.AccountReading.updateLan(AccountReading.java:119)
        at com.lineage.list.OnlineUser.updateClient(OnlineUser.java:70)
        at com.lineage.server.clientpackets.C_AuthLogin.checkLogin(C_AuthLogin.java:210)
        at com.lineage.server.clientpackets.C_AuthLogin.start(C_AuthLogin.java:68)
        at com.lineage.echo.PacketHandler.handlePacket(PacketHandler.java:179)
        at com.lineage.echo.ClientExecutor.run(ClientExecutor.java:127)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketException: Software caused connection abort: socket write error
        at java.net.SocketOutputStream.socketWrite0(Native Method)
        at java.net.SocketOutputStream.socketWrite(Unknown Source)
        at java.net.SocketOutputStream.write(Unknown Source)
        at java.io.BufferedOutputStream.flushBuffer(Unknown Source)
        at java.io.BufferedOutputStream.flush(Unknown Source)
        at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:3832)
        ... 16 more

有大大知道是哪個部分錯誤嗎





上一篇︰搖搖搖搖搖搖搖搖搖
下一篇︰分享各種效果

1

主題

585

帖子

1萬

金錢

巴列斯

Rank: 10Rank: 10Rank: 10

威望
0
精華
0
貢獻
0
鑽石
0
閱讀權限
60
積分
17605
在線時間
297 小時
相冊
0
日誌
0
好友
0
發表於 2024-4-7 12:27 | 顯示全部樓層
是不是伺服器開著就去睡覺

這個是閒置過久 自動關閉連線的

可以用上面的英文 去搜尋怎麼改時間

紅茶
聯絡方式
LINE: lineageapp
回復 支持 反對

使用道具 舉報

14

主題

142

帖子

3216

金錢

暗殺軍王.史雷佛

Rank: 8Rank: 8

威望
0
精華
0
貢獻
0
鑽石
0
閱讀權限
45
積分
3358
在線時間
29 小時
相冊
0
日誌
0
好友
3
QQ
發表於 2024-4-10 07:31 | 顯示全部樓層
这是困扰无数人的SQL连接问题
其实可以无视,网络上有很多解决办法,但不一定有效。
有修改c3p0控制文件的,也有改MySQL连接时间的(这个有上限),但不一定能够杜绝这东西出现……

[發帖際遇]: 一個袋子砸在了 Lin-JN 頭上,Lin-JN 賺了 2 金錢. 幸運榜 / 衰神榜
http://starway.freebbs.tw/index.php
回復 支持 反對

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊會員

本版積分規則

天堂私服列表

45客服

Archiver| 45天堂私服論壇   分享到微博! 分享到臉書! 分享到噗浪! 分享到維特! 分享到Google+! 分享到LINE!

45天堂私服發佈站 ©    天堂私服架設教學  提供最新天堂私服最新資訊

流量最高、品質最好、服務最優、玩家首選、最新天堂私服資訊,都在45天堂私服發佈站.    免責聲明

Sitetag
line客服聯繫
掃一掃二碼
Line客服聯繫
24H專人回覆
返回頂部 返回列表