javax.mail.AuthenticationFailedException: Logon failure: unknown user name or bad password.

Atlassian JIRA | Mark Michaelis | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    I recently configured a space-pop-mail-account but not knowing the password I left it "broken". Now, due to an OutOfMemoryError (already reported at support.atlassian.com) I had to restart the Tomcat-server. This failed due to the exception below. It seems as if because of this wrong password Confluence won't startup at all. There should be a robust error handling so that I can at least change the password inside Confluence. Workaround: Go to the <confluence-home>/config/<Space Key>-directory and edit the confluence-space.bandana.xml. As the password is clear-text I just had to enter the correct password. Perhaps an alternative is to completely delete the <popMailAccount>-entry. And now here is the exception: 2005-10-14 13:04:00,056 ERROR [atlassian.confluence.mail.DefaultMailAccountManager] Error retrieving store to fetch mail. 2005-10-14 13:05:00,066 WARN [atlassian.confluence.mail.DefaultMailAccountManager] Error connecting to mail server: hostname: Exchange-Server-Machine username: MailUser javax.mail.AuthenticationFailedException: Logon failure: unknown user name or bad password. at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:104) at javax.mail.Service.connect(Service.java:233) at com.atlassian.confluence.mail.DefaultMailAccountManager.getStore(DefaultMailAccountManager.java:169) at com.atlassian.confluence.mail.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:65) at com.atlassian.confluence.mail.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:48) at com.atlassian.confluence.mail.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:274) at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflection(AopProxyUtils.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:149) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:116) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152) at $Proxy24.pollAllSpaces(Unknown Source) at com.atlassian.confluence.mail.jobs.MailPollJob.executeInternal(MailPollJob.java:19) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:66) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) 2005-10-14 13:05:00,067 ERROR [atlassian.confluence.mail.DefaultMailAccountManager] Error retrieving store to fetch mail.

    Atlassian JIRA | 1 decade ago | Mark Michaelis
    javax.mail.AuthenticationFailedException: Logon failure: unknown user name or bad password.
  2. 0

    I recently configured a space-pop-mail-account but not knowing the password I left it "broken". Now, due to an OutOfMemoryError (already reported at support.atlassian.com) I had to restart the Tomcat-server. This failed due to the exception below. It seems as if because of this wrong password Confluence won't startup at all. There should be a robust error handling so that I can at least change the password inside Confluence. Workaround: Go to the <confluence-home>/config/<Space Key>-directory and edit the confluence-space.bandana.xml. As the password is clear-text I just had to enter the correct password. Perhaps an alternative is to completely delete the <popMailAccount>-entry. And now here is the exception: 2005-10-14 13:04:00,056 ERROR [atlassian.confluence.mail.DefaultMailAccountManager] Error retrieving store to fetch mail. 2005-10-14 13:05:00,066 WARN [atlassian.confluence.mail.DefaultMailAccountManager] Error connecting to mail server: hostname: Exchange-Server-Machine username: MailUser javax.mail.AuthenticationFailedException: Logon failure: unknown user name or bad password. at com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:104) at javax.mail.Service.connect(Service.java:233) at com.atlassian.confluence.mail.DefaultMailAccountManager.getStore(DefaultMailAccountManager.java:169) at com.atlassian.confluence.mail.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:65) at com.atlassian.confluence.mail.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:48) at com.atlassian.confluence.mail.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:274) at sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflection(AopProxyUtils.java:61) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:149) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:116) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152) at $Proxy24.pollAllSpaces(Unknown Source) at com.atlassian.confluence.mail.jobs.MailPollJob.executeInternal(MailPollJob.java:19) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:66) at org.quartz.core.JobRunShell.run(JobRunShell.java:191) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516) 2005-10-14 13:05:00,067 ERROR [atlassian.confluence.mail.DefaultMailAccountManager] Error retrieving store to fetch mail.

    Atlassian JIRA | 1 decade ago | Mark Michaelis
    javax.mail.AuthenticationFailedException: Logon failure: unknown user name or bad password.
  3. 0

    Download attachment from outlook via javamail not working

    Stack Overflow | 1 year ago | ak31
    javax.mail.AuthenticationFailedException: Logon failure: unknown user name or bad password.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Javamail problem (Java API forum at JavaRanch)

    coderanch.com | 1 year ago
    javax.mail.AuthenticationFailedException: EOF on socket
  6. 0

    error while running java mail application

    codeguru.com | 1 year ago
    javax.mail.AuthenticationFailedException: EOF on sock et

  1. AndrewProg 10 times, last 8 months ago
13 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. javax.mail.AuthenticationFailedException

    Logon failure: unknown user name or bad password.

    at com.sun.mail.pop3.POP3Store.protocolConnect()
  2. JavaMail API (compat)
    POP3Store.protocolConnect
    1. com.sun.mail.pop3.POP3Store.protocolConnect(POP3Store.java:104)
    1 frame
  3. JavaMail API
    Service.connect
    1. javax.mail.Service.connect(Service.java:233)
    1 frame
  4. com.atlassian.confluence
    DefaultMailAccountManager.pollAllSpaces
    1. com.atlassian.confluence.mail.DefaultMailAccountManager.getStore(DefaultMailAccountManager.java:169)
    2. com.atlassian.confluence.mail.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:65)
    3. com.atlassian.confluence.mail.DefaultMailAccountManager.poll(DefaultMailAccountManager.java:48)
    4. com.atlassian.confluence.mail.DefaultMailAccountManager.pollAllSpaces(DefaultMailAccountManager.java:274)
    4 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    3. java.lang.reflect.Method.invoke(Method.java:585)
    3 frames
  6. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflection(AopProxyUtils.java:61)
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:149)
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:116)
    3 frames
  7. Spring Tx
    TransactionInterceptor.invoke
    1. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:56)
    1 frame
  8. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:138)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:152)
    2 frames
  9. Unknown
    $Proxy24.pollAllSpaces
    1. $Proxy24.pollAllSpaces(Unknown Source)
    1 frame
  10. com.atlassian.confluence
    MailPollJob.executeInternal
    1. com.atlassian.confluence.mail.jobs.MailPollJob.executeInternal(MailPollJob.java:19)
    1 frame
  11. Spring Context Support
    QuartzJobBean.execute
    1. org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:66)
    1 frame
  12. quartz
    SimpleThreadPool$WorkerThread.run
    1. org.quartz.core.JobRunShell.run(JobRunShell.java:191)
    2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
    2 frames