my dog learned polymorphism
The moose likes Beginning Java and the fly likes Some problem with threads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Some problem with threads" Watch "Some problem with threads" New topic

Some problem with threads

Kacper Szmigiel

Joined: Sep 18, 2012
Posts: 24
Hello! Can you tell me what's wrong with this code? I turn on server, client - everything is ok, connection etc. But when I write something on client's input sender's thread is just stopping the program. Client doesn't send anything (there isn't any comunicate) and we can't write anything. Here's the client's code:

And server:

Jeff Verdegan

Joined: Jan 03, 2004
Posts: 6109

Sorry, but I'm not able to follow your code with the Polish identifiers. Can you post a version with the English equivalents of your class, method, and variable names? I know it may seem like a lot of work, but you'll have better luck here if you make it as easy as possible for people to read and understand your code. Although there are people from all over the world here, English is the primary language used, and I would have to assume that it's the native language of the majority of people who answer questions here. I'd also assume that the number of people who speak Polish is pretty small.
Kacper Szmigiel

Joined: Sep 18, 2012
Posts: 24
Hey, dude, but internet is polish But, as you wish:

Hope it's ok.
I agree. Here's the link:
subject: Some problem with threads
jQuery in Action, 3rd edition