Running a server I'm getting several Java related errors.
2013-07-27 19:30:05 [INFO] [user] joined the game
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:168)
at java.io.FilterInputStream.read(FilterInputStream.java:116)
at org.bouncycastle.crypto.io.CipherInputStream.nextChunk(Unknown Source)
at org.bouncycastle.crypto.io.CipherInputStream.read(Unknown Source)
at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:271)
at ex.a(SourceFile:178)
at cn.i(SourceFile:249)
at cn.c(SourceFile:17)
at co.run(SourceFile:94)
2013-07-27 14:38:18 [SEVERE] Reached end of stream for /xx.xx.xxx.xx
java.io.IOException: Bad packet id 50
at ex.a(SourceFile:185)
at cn.i(SourceFile:249)
at cn.c(SourceFile:17)
at co.run(SourceFile:94)
2013-07-27 14:40:23 [INFO] Disconnecting [user] [/xx.xx.xx.xxx:51343]: Took too long to log in
java.io.IOException: Bad packet id 31
at ex.a(SourceFile:185)
at cn.i(SourceFile:249)
at cn.c(SourceFile:17)
at co.run(SourceFile:94)
Comments 3
Same issue on a Linux x86_64 server (16 GB RAM, Java 7, Update 40)
2 clients, one Linux via LAN, one Windows via Internet, exception and several [SEVERE] Reached end of stream
messages appearing for the windows machine mostly. But also for the LAN client a couple of times.
2013-08-10 22:23:45 [SEVERE] Reached end of stream for /<Windows client IP>
java.net.SocketException: Socket closed
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:121)
at java.net.SocketOutputStream.write(SocketOutputStream.java:159)
at org.bouncycastle.crypto.io.CipherOutputStream.write(Unknown Source)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at java.io.DataOutputStream.flush(DataOutputStream.java:123)
at cp.run(SourceFile:121)
I don't suspect connection problems, as the ping time was around 40ms from the internet client and the Mumble connection worked fine. Also the server is connected with a 50M/5M (Up/Down) connection and the client with a 16M/1M connection.
java was started with
java -Xmx2048M -Xms512M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalPacing -XX:ParallelGCThreads=1 -XX:+AggressiveOpts -jar /srv/minecraft/minecraft_server.jar nogui
Speed tests on both sides showed that the connections were gerenally good and keeping up to their advertised speeds.
Can confirm, these exceptions happen from time to time on a server.
[06:27:26] [Connection #107 read thread/ERROR]: Exception on tcp connection
java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method) ~[?:1.7.0_25]
at java.net.SocketInputStream.read(SocketInputStream.java:150) ~[?:1.7.0_25]
at java.net.SocketInputStream.read(SocketInputStream.java:121) ~[?:1.7.0_25]
at java.net.SocketInputStream.read(SocketInputStream.java:203) ~[?:1.7.0_25]
at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:288) ~[?:1.7.0_25]
at gw.a(SourceFile:180) ~[minecraft_server.jar:?]
at ec.j(SourceFile:251) [minecraft_server.jar:?]
at ec.c(SourceFile:19) [minecraft_server.jar:?]
at ed.run(SourceFile:96) [minecraft_server.jar:?]
Are the players connecting via Internet or via LAN ?
In the first case, I'd say: That's normal - crappy connections.