Solved

javax.mail.messagingexception: connection failure

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

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
javap bin 2 41
web services creation SOAP vs REST 5 57
servlet example 17 53
Eclipse Java import and method not resolved 4 52
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

820 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