AllExperts > Java 
Search      
Java
Volunteer
Answers to thousands of questions
 Home · More Java Questions · Answer Library  · Encyclopedia ·
More Java Answers
Question Library

Ask a question about Java
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Artemus Harper
Expertise
I have a BS in computer science and am working towards a Masters degree.

Experience
I have experience in Core Java, good background in Java swing/gui, some experience with JNI, Java reflection. knowledge of Java bytecode and annotations. Basics in c++ and c#

Education/Credentials
BS in Computer Science at Central Washington University

 
   

You are here:  Experts > Computing/Technology > Focus on Java > Java > socket programming

Java - socket programming


Expert: Artemus Harper - 10/28/2009

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.

Add to this Answer   Ask a Question


 
User Agreement | Privacy Policy | Kids' Privacy Policy | Help
Copyright  © 2008 About, Inc. AllExperts, AllExperts.com, and About.com are registered trademarks of About, Inc. All rights reserved.