javax.mail.AuthenticationFailedException: [ALERT] Invalid credentials (Failure)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Ayush Goyal
, 1 year ago
[ALERT] Please log in via your web browser: https://support.google.com/mail/accounts/answer/78754 (Failure)
via Stack Overflow by blackat
, 1 year ago
[AUTHENTICATIONFAILED] Invalid credentials (Failure)
via Oracle Community by 843834, 1 year ago
Logon failure: unknown user name or bad password.
javax.mail.AuthenticationFailedException: [ALERT] Invalid credentials (Failure)
at javax.mail.Service.connect(Service.java:291)
at com.srinivas.oauth2.OAuth2Authenticator.connectToImap(OAuth2Authenticator.java:91)
at com.srinivas.web.OAuth2CallBk.processGmail(OAuth2CallBk.java:68)
at com.srinivas.web.OAuth2CallBk.doPost(OAuth2CallBk.java:54)
at com.srinivas.web.OAuth2CallBk.doGet(OAuth2CallBk.java:36)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1001)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
27 times, 7 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
16 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.