aspose file tools*
The moose likes Beginning Java and the fly likes Explain java.net.SocketTimeoutException: Read timed out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Explain java.net.SocketTimeoutException: Read timed out" Watch "Explain java.net.SocketTimeoutException: Read timed out" New topic
Author

Explain java.net.SocketTimeoutException: Read timed out

alex russo
Greenhorn

Joined: Apr 19, 2012
Posts: 11
Hello ,

Can some one explain me in simple terms what is "java.net.SocketTimeoutException: Read timed out" . I have searched in google and I ran into so many descriptions that I am confused now. If some one can explain me in simple terms that would be of great help.

Note: If I have created a thread in error under wrong tree structure please apologize me and move this post to appropriate location.

thanks

Alex
Karthik Jayachandran
Ranch Hand

Joined: Feb 18, 2009
Posts: 88

As per API, it defines

Signals that a timeout has occurred on a socket read or accept.


It means the specific destination is unable to connect / unable to read.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14268
    
  21

A socket is what you use to communicate over a network (for example to connect to a server on the Internet). The error message means that a program was trying to receive data from a remote computer over the network, but no no data was received for a period of time, so the program stopped waiting for the data to be received.

Is this an error message that you get when you run your own program? If you want us to help you solve the problem, then please explain in more detail what you are trying to do, show us your code, explain exactly when and where the exception occurs, etc.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Explain java.net.SocketTimeoutException: Read timed out