• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

pop3 works, imap fails with No login methods supported!  RSS feed

 
Rancher
Posts: 4686
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have code, mostly from the Sun java examples that connects to a mail server to fetch messages. Using the standard mail.jar and activation.jar from Sun.

When I specify "pop3" it works fine. But when i try imap, it fails. throwing a "No login methods supported!" message





I am at a loss as to what is wrong. I would know how to proceed if it returned "can't login" or "bad password" or any other exception hinting that I'm passing in bad values, but no login method???
 
Sheriff
Posts: 21500
96
Chrome Eclipse IDE Java Spring Ubuntu VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is IMAP supported by the mail server?
 
Sheriff
Posts: 23714
50
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JavaMail FAQ suggests turning on debug mode for the mail session and examining the output for this kind of problem.
 
Pat Farrell
Rancher
Posts: 4686
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Rob Prime wrote:Is IMAP supported by the mail server?


Yes, ports opened in the firewalls, etc.
 
Pat Farrell
Rancher
Posts: 4686
7
Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Paul Clapham wrote:The JavaMail FAQ suggests turning on debug mode for the mail session and examining the output for this kind of problem.



Log results:



Note: the first line is my debug line of the subclass extending Authenticator, verifying that there are non-null password, Yet the Javamail debug line shows: user=fnfbook, password=<null>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!