File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes IO Exception :Connection timed out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "IO Exception :Connection timed out " Watch "IO Exception :Connection timed out " New topic

IO Exception :Connection timed out

varkala prabhakar
Ranch Hand

Joined: Sep 08, 2001
Posts: 54
I have a mail servlet and when i try to run that servlet i get this error:,kindly tell me how to correct the error.

Added code UBB tags
-Mike C
[ January 07, 2002: Message edited by: Mike Curwen ]
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Hi varkala,

Could you provide a bit more detail in your stack trace? It's helpful to see the full stack trace when diagnosing a problem.

There are a few things I will comment on:

You seem to be accessing on port 25. Does Yahoo provide smtp service on this port?

Is there a reason you're not using JavaMail API to send/receive emails? It hides some of the Sockets and Streams details, and is a bit easier to use.
I agree. Here's the link:
subject: IO Exception :Connection timed out
It's not a secret anymore!