Slick game freezes

Hi.I made a turn based card game(or at least beginning of it) in Slick2d.I wanted it to be multiplayer so I used same code that thenewboston uses for his internet chat.Did little edits and tested.Right now when I run the game without network it works fine.But when I run it with server,it connects fine and when I send messages to client they all show up in console but game window itself is not responding.Hope you understand.Here is the pastebin of networking class http://pastebin.com/A0XEg4y0

If you’re using Eclipse (perhaps other IDE’s have this feature aswell), you can execute the program line by line to debug, and see where the code fails to do what you intended.

Here’s how!

When the networking code works fine but the game window starts freezing you might want to show us that class aswell.

http://pastebin.com/T0v45yUa here is code of the game state.BTW,when I close server the game unfreezes again.
Could the problem be that my computer has java 7 but my project is in JavaSE-1.6

not responding always sound like a loop not finishing…

I think it might be do loop around whileChatting that freezes,but I cant find any workarounds for that

its pretty annoying but you have to for example debug by using a lot of sysout’s and find where it gets stuck

or with eclipse and breakpoints

When I first started with kryonet it was freezing she. Try connect, it turned out the server wasn’t allowing new connections, when the other client disconnected the frozen client would unfreeze and be connected to the server. Maybe you should check the user connection on the server side.

I am not using kryonet.Yet.