aspose file tools
The moose likes Other JSE/JEE APIs and the fly likes connection failure exception Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Reply Bookmark "connection failure exception" Watch "connection failure exception" New topic
Author

connection failure exception

gayathri murugesan
Ranch Hand

Joined: Dec 21, 2009
Posts: 32
i have an application where unread messages must be retrieved from the gmail server inbox whenever it arrives.



the loop is executing for 15 times and the unread messages are retrieved but after 15 times i am getting exception


javax.mail.MessagingException: connection failure
at com.sun.mail.imap.IMAPStore.getProtocol(IMAPStore.java:775)
at com.sun.mail.imap.IMAPFolder.open(IMAPFolder.java:910)
at EmailClient$Checker.run(EmailClient.java:721)
at java.lang.Thread.run(Unknown Source)


why is it so.is there any other way to do the same.

 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: connection failure exception
 
Similar Threads
Message not getting deleted from server + Java Mail
Mark Mail as SEEN
retriving unread messages
How to properly read the custom Header value in the E-mail envolope
Java mail attachmetnt include txt extensions