Mail error problems

4,805 views

Just did a fresh Ganib install using war file; it seems to work fine except of these line in catalina.out:

DEBUG [LoginProcessing.jsp] Page Redirect requested: /ganib/business/createAccount.jsp?isEmailSent=false&module=160&portfolio=true&uid=95603 javax.mail.AuthenticationFailedException: Invalid credentials t5if4202633wiw.64 at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:665) at javax.mail.Service.connect(Service.java:295) at javax.mail.Service.connect(Service.java:176) at com.ganib.soa.utility.BlogEmailFilter.openAccountWithImap(BlogEmailFilter.java:468) at com.ganib.soa.utility.BlogEmailFilter.filterMailAccount(BlogEmailFilter.java:150) at com.ganib.scheduler.BlogEmailFilterJob.execute(BlogEmailFilterJob.java:79) at org.quartz.core.JobRunShell.run(JobRunShell.java:213) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) java.lang.NullPointerException

I'm sure credentials are correct.

Also, made a tcpdump to find them and noticed application try to connect using IMAPS PROTOCOL to gmail account. That's weird, i never configured a gmail account in context.xml,

give please any suggestion.

Tks Gianni.

asked Aug 12, 2013 by Gianni (120 points)

1 Answer

0 votes

By looking at the error it seems you have installed Ganib 1.3 Please redownload the latest version again fromhttps://sourceforge.net/projects/ganib/files/Ganib-1.3/ Replace the war file in webapps folder and restart the tomcat.

In old version of Ganib, it tries to use the default gmail account to enable blog+email integration. That email addresses defaults to app@example.com and hence you saw the invalid credentials error. If you are planning to use the Ganib with blog+email feature you can update the account in table PN_PROPERTY with key for email address as "prm.global.blog.emailfilter.accname" and for password "prm.global.blog.emailfilter.accpassword"

answered Aug 12, 2013 by Emily S (820 points)
...