• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

connection failure exception

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
reply
    Bookmark Topic Watch Topic
  • New Topic