3 Replies Latest reply on Jul 29, 2013 1:42 AM by Katrien

    Sending newsletters

    Katrien Level 1

      Hi, we're having issues with sending newletters (campaigns). We've no clue to what may be going wrong. Any help is greatly appreciated.

       

      The error in the log is this:

       

       

       

      26.07.2013 17:23:16.137 *ERROR* [10.150.122.43 [1374859396096] POST /libs/mcm/content/newsletter.flighttest.json HTTP/1.1] com.day.cq.mailer.impl.email.CqRetrieverEMailTemplate Failed to retrieve Content {} java.net.ConnectException: Connection refused        at java.net.PlainSocketImpl.socketConnect(Native Method)        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)        at java.net.Socket.connect(Socket.java:529)        at java.net.Socket.connect(Socket.java:478)        at java.net.Socket.<init>(Socket.java:375)        at java.net.Socket.<init>(Socket.java:249)        at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)        at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)        at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)        at com.day.cq.retriever.impl.HttpClientGenerator.retrieve(HttpClientGenerator.java:65)        at com.day.cq.retriever.impl.RetrieverServiceImpl.retrieve(RetrieverServiceImpl.java:48)        at com.day.cq.mailer.impl.email.CqRetrieverEMailTemplate.retrieve(CqRetrieverEMailTemplate.java:262)        at com.day.cq.mailer.impl.email.CqRetrieverEMailTemplate.getHtml(CqRetrieverEMailTemplate.java:99)        at com.day.cq.mailer.impl.email.CqRetrieverEMailTemplate.doBuild(CqRetrieverEMailTemplate.java:134)        at com.day.cq.mailer.impl.email.CqRetrieverEMailTemplate.doBuild(CqRetrieverEMailTemplate.java:47)        at com.day.cq.mailer.impl.email.AbstractEmailTemplate.buildMessage(AbstractEmailTemplate.java:141)        at com.day.cq.mailer.impl.email.AbstractEmailTemplate.buildMessage(AbstractEmailTemplate.java:42)        at com.day.cq.mailer.impl.CqMailing.send(CqMailing.java:157)        at com.day.cq.mailer.impl.CqMailingService.send(CqMailingService.java:145)        at com.day.cq.mcm.core.newsletter.NewsletterServiceImpl.sendNewsletter(NewsletterServiceImpl.java:341)        at org.apache.jsp.libs.mcm.components.commands.newsletter.flighttest_POST_jsp._jspService(flighttest_POST_jsp.java:296)        at org.apache.sling.scripting.jsp.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:502)        at org.apache.sling.scripting.jsp.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:449)        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.callJsp(JspScriptEngineFactory.java:241)        at org.apache.sling.scripting.jsp.JspScriptEngineFactory.access$100(JspScriptEngineFactory.java:86)        at org.apache.sling.scripting.jsp.JspScriptEngineFactory$JspScriptEngine.eval(JspScriptEngineFactory.java:441)        at org.apache.sling.scripting.core.impl.DefaultSlingScript.call(DefaultSlingScript.java:361)        at org.apache.sling.scripting.core.impl.DefaultSlingScript.eval(DefaultSlingScript.java:171)        at org.apache.sling.scripting.core.impl.DefaultSlingScript.service(DefaultSlingScript.java:463)        at org.apache.sling.engine.impl.request.RequestData.service(RequestData.java:508)        at org.apache.sling.engine.impl.filter.SlingComponentFilterChain.render(SlingComponentFilterChain.java:45)        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64)        at com.day.cq.wcm.core.impl.WCMDebugFilter.doFilter(WCMDebugFilter.java:148)        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)        at com.day.cq.wcm.core.impl.WCMComponentFilter.filterRootInclude(WCMComponentFilter.java:333)        at com.day.cq.wcm.core.impl.WCMComponentFilter.doFilter(WCMComponentFilter.java:160)        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)        at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processComponent(SlingRequestProcessorImpl.java:254)        at org.apache.sling.engine.impl.filter.RequestSlingFilterChain.render(RequestSlingFilterChain.java:49)        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:64)        at com.day.cq.wcm.core.impl.warp.TimeWarpFilter.doFilter(TimeWarpFilter.java:106)        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)        at com.day.cq.wcm.mobile.core.impl.redirect.RedirectFilter.doFilter(RedirectFilter.java:290)        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)        at com.pearson.pt.newrelic.filter.NewRelicFilter.doFilter(NewRelicFilter.java:82)        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)        at org.apache.sling.engine.impl.debug.RequestProgressTrackerLogFilter.doFilter(RequestProgressTrackerLogFilter.java:59)        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)        at com.day.cq.theme.impl.ThemeResolverFilter.doFilter(ThemeResolverFilter.java:76)        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)        at com.day.cq.wcm.foundation.forms.impl.FormsHandlingServlet.doFilter(FormsHandlingServlet.java:220)        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)        at com.adobe.granite.optout.impl.OptOutFilter.doFilter(OptOutFilter.java:74)        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)        at com.day.cq.wcm.core.impl.WCMRequestFilter.doFilter(WCMRequestFilter.java:90)        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)        at com.day.cq.wcm.designimporter.CanvasPageDeleteRequestFilter.doFilter(CanvasPageDeleteRequestFilter.java:87)        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)        at org.apache.sling.rewriter.impl.RewriterFilter.doFilter(RewriterFilter.java:83)        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)        at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:127)        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)        at org.apache.sling.bgservlets.impl.BackgroundServletStarterFilter.doFilter(BackgroundServletStarterFilter.java:135)        at org.apache.sling.engine.impl.filter.AbstractSlingFilterChain.doFilter(AbstractSlingFilterChain.java:60)        at org.apache.sling.engine.impl.SlingRequestProcessorImpl.processRequest(SlingRequestProcessorImpl.java:151)        at org.apache.sling.engine.impl.SlingMainServlet.service(SlingMainServlet.java:206)        at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:96)        at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:79)        at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:42)        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:49)        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)        at org.apache.sling.i18n.impl.I18NFilter.doFilter(I18NFilter.java:127)        at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)        at org.apache.sling.security.impl.ReferrerFilter.doFilter(ReferrerFilter.java:259)        at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)        at org.apache.felix.http.sslfilter.internal.SslFilter.doFilter(SslFilter.java:55)        at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)        at com.adobe.granite.license.impl.LicenseCheckFilter.doFilter(LicenseCheckFilter.java:179)        at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)        at org.apache.sling.engine.impl.log.RequestLoggerFilter.doFilter(RequestLoggerFilter.java:75)        at org.apache.felix.http.base.internal.handler.FilterHandler.doHandle(FilterHandler.java:88)        at org.apache.felix.http.base.internal.handler.FilterHandler.handle(FilterHandler.java:76)        at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:47)        at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:33)        at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:48)        at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:39)        at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67)        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)        at com.day.j2ee.servletengine.ServletRuntimeEnvironment.service(ServletRuntimeEnvironment.java:250)        at com.day.j2ee.servletengine.RequestDispatcherImpl.doFilter(RequestDispatcherImpl.java:321)        at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:340)        at com.day.j2ee.servletengine.RequestDispatcherImpl.service(RequestDispatcherImpl.java:383)        at com.day.j2ee.servletengine.ServletHandlerImpl.process(ServletHandlerImpl.java:360)        at com.day.j2ee.servletengine.HttpListener$Worker.run(HttpListener.java:644)        at java.lang.Thread.run(Thread.java:662)

        • 1. Re: Sending newsletters
          rush_pawan Level 4

          Hi,

           

          By looking at log it seems to be an error related to getting connection for sending newsletter mail from mail server. Can you plz check your mail server configuration where it is accessible from your server machine or not.

           

          Also i would also suggest you to re-refer (i know you have already gone through) this link as you are using OOTB newletter template.

           

          http://dev.day.com/docs/en/cq/current/wcm/campaigns.html#Configuring the newsletter service component

           

          Let me know for more information.

           

          Thanks,

          Pawan

          • 2. Re: Sending newsletters
            Katrien Level 1

            Thanks, that didn't help unfortunately. We can send email otherwise. The mail server seems to be set-up ok. The problem is only with the newsletter.

             

            Any other tips? The error seems to indicate "/libs/mcm/content/newsletter.flighttest.json HTTP/1.1] com.day.cq.mailer.impl.email.CqRetrieverEMailTemplate Failed to retrieve Content". But I don't understand what content it's trying to get.

            • 3. Re: Sending newsletters
              Katrien Level 1

              In the log I can also see replication request. Can someone confirm to me if we need to configure the mail server on publish? Or on Author?