Email Configuration Issue

Robert Charles, modified 12 Years ago.

Email Configuration Issue

Youngling Posts: 2 Join Date: 10/12/11 Recent Posts
I setup Klaros today on an Ubuntu box. I can't seem to get the email to work. The on screen error message when I attempt to send a test mail is:
ERROR - 17:15:52 - Error while sending the email: null

I have Bugzilla and Jenkins running on this same box and they have no problems sending out emails. Any insight would be greatly appreciated.

Error from the logs:

2011-10-11 17:15:52: ERROR, de.verit.klaros.web.beans.pages.configure.EditEmailSettingsBean, TP-Processor11 Error while sending the email:
javax.faces.FacesException: null
at org.jboss.seam.mail.ui.UIMessage.encodeEnd(UIMessage.java:173) ~[jboss-seam-mail-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.ui.util.JSF.renderChild(JSF.java:181) ~[jboss-seam-ui-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.ui.util.JSF.renderChildren(JSF.java:163) ~[jboss-seam-ui-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.ui.facelet.RendererRequest.renderFacelet(RendererRequest.java:140) ~[jboss-seam-ui-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.ui.facelet.RendererRequest.run(RendererRequest.java:107) ~[jboss-seam-ui-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:43) ~[jboss-seam-ui-2.2.2.Final.jar:2.2.2.Final]
at de.verit.klaros.web.service.email.EmailService.sendEmail(EmailService.java:154) ~[EmailService.class:na]
at de.verit.klaros.web.service.email.EmailService.sendTestEmail(EmailService.java:209) ~[EmailService.class:na]
at sun.reflect.GeneratedMethodAccessor1821.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.6.0_22]
at java.lang.reflect.Method.invoke(Method.java:616) ~[na:1.6.0_22]
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at de.verit.klaros.web.service.email.EmailService_$$_javassist_seam_80.sendTestEmail(EmailService_$$_javassist_seam_80.java) ~[EmailService.class:na]
at de.verit.klaros.web.beans.pages.configure.EditEmailSettingsBean.sendTestMail(EditEmailSettingsBean.java:330) ~[EditEmailSettingsBean.class:na]
at sun.reflect.GeneratedMethodAccessor1444.invoke(Unknown Source) ~[na:na]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.6.0_22]
at java.lang.reflect.Method.invoke(Method.java:616) ~[na:1.6.0_22]
at org.jboss.seam.util.Reflections.invoke(Reflections.java:22) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:32) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.core.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:32) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at de.verit.klaros.web.beans.pages.configure.EditEmailSettingsBean_$$_javassist_seam_82.sendTestMail(EditEmailSettingsBean_$$_javassist_seam_82.java) [EditEmailSettingsBean.class:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_22]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.6.0_22]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.6.0_22]
at java.lang.reflect.Method.invoke(Method.java:616) ~[na:1.6.0_22]
at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:335) [jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:348) [jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58) [jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
at org.jboss.el.parser.AstValue.invoke(AstValue.java:96) [jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) [jboss-el-1.0_02.CR5.jar:1.0_02.CR5]
at org.jboss.seam.el.OptionalParameterMethodExpression.invoke(OptionalParameterMethodExpression.java:45) [jboss-seam-2.2.2.Final.jar:2.2.2.Final]
at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68) [icefaces-facelets-1.8.2.jar:na]
at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:99) [jsf-api-1.2_14.jar:1.2_14-b01-FCS]
at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88) [jsf-api-1.2_14.jar:1.2_14-b01-FCS]
at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:771) [jsf-api-1.2_14.jar:1.2_14-b01-FCS]
at javax.faces.component.UICommand.broadcast(UICommand.java:372) [jsf-api-1.2_14.jar:1.2_14-b01-FCS]
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475) [jsf-api-1.2_14.jar:1.2_14-b01-FCS]
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756) [jsf-api-1.2_14.jar:1.2_14-b01-FCS]
at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82) [jsf-impl-1.2_14.jar:1.2_14-b01-FCS]
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) [jsf-impl-1.2_14.jar:1.2_14-b01-FCS]
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-1.2_14.jar:1.2_14-b01-FCS]
at de.verit.klaros.web.beans.application.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:54) [LifecycleImpl.class:na]
at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18) [icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:132) [icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:74) [icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.core.RequestVerifier.service(RequestVerifier.java:31) [icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24) [icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16) [icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23) [icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:53) [icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.servlet.SessionVerifier.service(SessionVerifier.java:26) [icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23) [icefaces-1.8.2-1.jar:na]
at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:131) [icefaces-1.8.2-1.jar:na]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) [servlet-api-2.5.jar:na]
at de.verit.klaros.web.servlet.ExceptionHandlingPersistentFacesServlet.service(ExceptionHandlingPersistentFacesServlet.java:51) [ExceptionHandlingPersistentFacesServlet.class:na]
at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56) [icefaces-1.8.2-1.jar:na]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) [catalina-6.0.28.jar:6.0.28]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina-6.0.28.jar:6.0.28]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [catalina-6.0.28.jar:6.0.28]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [catalina-6.0.28.jar:6.0.28]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [catalina-6.0.28.jar:6.0.28]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [catalina-6.0.28.jar:6.0.28]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [catalina-6.0.28.jar:6.0.28]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) [catalina-6.0.28.jar:6.0.28]
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) [tomcat-coyote-6.0.28.jar:6.0.28]
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) [tomcat-coyote-6.0.28.jar:6.0.28]
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:774) [tomcat-coyote-6.0.28.jar:6.0.28]
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) [tomcat-coyote-6.0.28.jar:6.0.28]
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:896) [tomcat-coyote-6.0.28.jar:6.0.28]
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) [tomcat-coyote-6.0.28.jar:6.0.28]
at java.lang.Thread.run(Thread.java:679) [na:1.6.0_22]
Caused by: javax.mail.AuthenticationFailedException: null
at javax.mail.Service.connect(Service.java:319) ~[mail-1.4.1.jar:1.4.1]
at javax.mail.Service.connect(Service.java:169) ~[mail-1.4.1.jar:1.4.1]
at javax.mail.Service.connect(Service.java:118) ~[mail-1.4.1.jar:1.4.1]
at org.jboss.seam.mail.ui.UIMessage.encodeEnd(UIMessage.java:167) ~[jboss-seam-mail-2.2.2.Final.jar:2.2.2.Final]
... 92 common frames omitted
thumbnail
Torsten Stolpmann, modified 12 Years ago.

RE: Email Configuration Issue

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
Hi Robert,

From what I see in the stack dump, the mail authentication settings are not correct for delivering the test mail to you mail server.

Without further information the root cause is rather impossible to determine:

- What have you selected as security options?
- Did you have a look at the mail server logs for further information?

We already improved the exception logging in this case towards the next release, as FacesException is not delivering the causing exception (AuthenticationFailedException) message directly, which is the 'null' in your output.

Thanks for your feedback!

Torsten
Robert Charles, modified 12 Years ago.

RE: Email Configuration Issue

Youngling Posts: 2 Join Date: 10/12/11 Recent Posts
Hi Torsten,

Thanks for the reply. That is what we assumed as well, the problem is that authentication is not required.

Here is an excerpt from the mail.log when I attempted to send a mail from Klaros:

Oct 12 07:57:41 crosby sm-mta[19500]: p9CEvfFe019500: localhost [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA-v4

My email config is:
localhost
25
noreply@mydomain.com
No Authentication

It is definitely something to do with my sendmail config. I used another relay in my company and it sent the mail. I will keep plugging away at it today because I would much rather use the sendmail on this box over another groups relay.

Thank you,

Robert
thumbnail
Torsten Stolpmann, modified 12 Years ago.

RE: Email Configuration Issue

Jedi Council Member Posts: 755 Join Date: 2/12/09 Recent Posts
I am not a sysadmin, but I would blind guess that your mail relay restrictions somehow cover localhost which is probably not what is intended here.

Being a sendmail illiterate myself I am sorry that I will not be able to help you on that.

Hope this helps,

Torsten