You are here:

Java/socket programming

Advertisement


Question
hello,
I ran simple example of socket programming in Java that caught it from www.sun.com (KnockKnockServer and KnockKnockClient).First,this program was run but now, I must wait for running a lot of time and it is not stopped.When I stop it myself, it does not have any error .And debugging is with same situation.
what can I do for this problem?
I was stopped and can not to do any thing,please help me.

Thanks

Answer
You can either debug the application in an IDE (such as eclipse or netbeans) and hit the suspend button to see where your program is stuck (chances are one or both computers are waiting for the other to communicate first). You can also use control-break in the terminal window of the running java program too see the stack trace of all the threads.

Java

All Answers


Answers by Expert:


Ask Experts

Volunteer


Artemus Harper

Expertise

I have a Masters in computer science. I can answer questions on core J2SE, swing and graphics. Please no questions about JSP or J2ME.

Experience

I have experience in Core Java, good background in Java swing/gui, some experience with JNI, Java reflection. Some experience in bio-informatics. Basics in c++ and c#

Organizations
Washington State University

Education/Credentials
MS in Computer Science from Washington State University and a BS in Mathematics and Computer Science from Central Washington University.

©2012 About.com, a part of The New York Times Company. All rights reserved.