Solved

javax.mail.messagingexception: connection failure

Posted on 2009-05-14
2
339 Views
Last Modified: 2013-11-24
I am writing an email reader application and I have noticed that when I try to connect (sometimes) I get the following exception:  

javax.mail.messagingexception: connection failure.
This problem also does not happen consistently.
Any suggestions on how to handle it?
0
Comment
Question by:Genus1
2 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 24387906
Could be a flaky network connection
0
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 24390675
catch the exception and retry making the connection

0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now