EsotericSoftware / EsotericSoftware/kryonet

Something that works in 2.12 doesn't work in 2..20

Open
#37 0 comments 0 reactions 0 assignees View on GitHub
bug imported Priority-Medium
Dominant language
Java
Stars
1.9k
Forks
411
PR merge metrics
No merged PRs in 30d

Description

_From [lovelyfa...@gmail.com](https://code.google.com/u/117823887889060917603/) on July 26, 2013 14:05:05_

What steps will reproduce the problem?
1. I followed this simple tutorial at http://www.youtube.com/watch?v=1fLXEL4ngpE
2. When i run the server, and then the client i get this message
0:00 INFO: [kryonet] Server opened.
00:00 TRACE: [kryonet] Server thread started.
00:15 DEBUG: [kryonet] Port 54555/TCP connected to: /127.0.0.1:52642
00:15 TRACE: [kryonet] Connection listener added: com.esotericsoftware.kryonet.Server$1
00:15 TRACE: [kryo] Write class 9: com.esotericsoftware.kryonet.FrameworkMessage$RegisterTCP
00:15 DEBUG: [kryo] Write: com.esotericsoftware.kryonet.FrameworkMessage$RegisterTCP
00:15 TRACE: [kryo] Write field: connectionID (com.esotericsoftware.kryonet.FrameworkMessage$RegisterTCP)
00:15 TRACE: [kryo] Write int: 1
00:15 TRACE: [kryo] Object graph complete.
00:15 TRACE: [kryonet] Connection 1 sent TCP: RegisterTCP (6)
00:15 INFO: [kryonet] Connection 1 connected: /127.0.0.1
00:15 INFO: [SERVER] Someone is trying to connect.
00:15 TRACE: [kryonet] Unable to read TCP from: Connection 1
java.io.IOException: An existing connection was forcibly closed by the remote host
at sun.nio.ch.SocketDispatcher.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(Unknown Source)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
at sun.nio.ch.IOUtil.read(Unknown Source)
at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
at com.esotericsoftware.kryonet.TcpConnection.readObject(TcpConnection.java:107)
at com.esotericsoftware.kryonet.Server.update(Server.java:192)
at com.esotericsoftware.kryonet.Server.run(Server.java:350)
at java.lang.Thread.run(Unknown Source)
00:15 INFO: [SERVER] Someone is trying to disconnect.
00:15 INFO: [kryonet] Connection 1 disconnected.

3. But when i change the library from 2.20 to 2.12
Everything is fine. I dont need to change anything at all

What is the expected output? What do you see instead?
What you type in the client gets shown in the server

What version of the product are you using? On what operating system?
2.20, problem persist in 2.18 too

Please provide any additional information below.
I create a bitbucket repository so you didnt have to look through all the tutorial
https://bitbucket.org/fjoseph/kryonet-error

_Original issue: http://code.google.com/p/kryonet/issues/detail?id=36_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.