wood burning stoves*
The moose likes Sockets and Internet Protocols and the fly likes Socket Connection.. Was working, now it's not?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Socket Connection.. Was working, now it Watch "Socket Connection.. Was working, now it New topic
Author

Socket Connection.. Was working, now it's not??

Brad Walton
Ranch Hand

Joined: Feb 16, 2008
Posts: 35
I had a working socket connection just yesterday, and now it's not working, but nothing has changed?! Here is the code:



The result is 10 immediate 'nulls' and the socket is closed. Any idea why the readLine is returning null? Isn't that supposed to wait on a line of data? I am perplexed on this and have been looking at it too long now. I need some fresh eyes on it. Thanks for any help.
[ February 25, 2008: Message edited by: Brad Walton ]
Brad Walton
Ranch Hand

Joined: Feb 16, 2008
Posts: 35
Nevermind.. there was a configuration error in the application I was connecting to. Problem fixed.
 
 
subject: Socket Connection.. Was working, now it's not??
 
Similar Threads
Socket design question
sockets: How to receive server response in client
two server and many client....
Need help with thread pool issue..
not able to connect...