Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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: 21374
91
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is IMAP supported by the mail server?
 
Sheriff
Posts: 23590
48
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>
 
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!