File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Threads and Synchronization and the fly likes button hang in threaded server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "button hang in threaded server" Watch "button hang in threaded server" New topic

button hang in threaded server

Arad Chear
Ranch Hand

Joined: Jan 05, 2007
Posts: 98
hi folk this is first thread for me in this nice forum

i hope you help me because iam must sent it today to the doctor

when iam press CONNECT button in applet its still back and hang

this is the server

and when client press CONNECT botton iam instantiate an object from Connection class :

Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Hi, welcome to the ranch!

Do your two programs print anything useful to the console? I haven't tried to run them, but it looks like they might show the first few expected lines.

If so, think about why the server would ever come up with null while reading from the client. What would cause that loop to terminate?

A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
I agree. Here's the link:
subject: button hang in threaded server
It's not a secret anymore!