2 Replies Latest reply on Sep 30, 2009 3:55 AM by David Cowan

    Error rendering email via timer

    David Cowan Newbie

      I am having periodic problems rendering and sending emails via a timer.  I have a quartz timer that runs every morning and sends an email.  This works fine for a couple days and then starts failing. 


      The code I use to render the email




                    Context context = Contexts.getEventContext();
                    context.set("recipient", recipient);
                   renderer.render("/email/emailAlert.xhtml");
      



      The error I get is this.  If I restart jboss emails will send again for a couple days, then I get the same error


      
      2009-09-28 08:00:01,110 ERROR [com.cmc.trantrack.EmailService] Error sending event summary email
      javax.faces.FacesException: Missing final '@domain' ()
              at org.jboss.seam.mail.ui.RecipientAddressComponent.encodeBegin(RecipientAddressComponent.java:29)
              at javax.faces.component.UIComponent.encodeAll(UIComponent.java:884)
              at com.sun.facelets.component.RepeatRenderer.encodeChildren(RepeatRenderer.java:50)
              at com.sun.facelets.component.UIRepeat.process(UIRepeat.java:357)
              at com.sun.facelets.component.UIRepeat.encodeChildren(UIRepeat.java:617)
              at org.jboss.seam.ui.util.JSF.renderChild(JSF.java:175)
              at org.jboss.seam.ui.util.JSF.renderChildren(JSF.java:163)
              at org.jboss.seam.mail.ui.UIMessage.encodeChildren(UIMessage.java:165)
              at org.jboss.seam.ui.util.JSF.renderChild(JSF.java:175)
              at org.jboss.seam.ui.util.JSF.renderChildren(JSF.java:163)
              at org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRenderer.java:206)
              at org.jboss.seam.ui.facelet.FaceletsRenderer$1.process(FaceletsRenderer.java:160)
              at org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.run(FaceletsRenderer.java:78)
              at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:169)
              at com.cmc.trantrack.EmailService.sendEventSummary(EmailService.java:75)
      



      Its like the context variables are not being passed along.  Has anyone else seen this