Solved

javax.mail.messagingexception: connection failure

Posted on 2009-05-14
2
345 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
groupSumClump challenge 9 115
stackato and cloud 4 85
Maven Project: Hibernate Dependencies Conflict 10 22
pagenation logic how it is working in my code 1 30
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…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn how to implement Singleton Design Pattern in Java.

777 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