7 Replies Latest reply on Aug 10, 2008 10:55 PM by tony.herstell1

    Aynch Mail Sender Fails but Normal Does'nt

    tony.herstell1

      All I do is move my email sending to an Asynch routine and I get this:


      18:30:50,457 INFO  [AsynchronousMailProcessorImpl] > scheduleSend
      18:30:50,738 ERROR [STDERR] 9/08/2008 18:30:50 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.1.GA/server/selwyn/deploy/Sec.ear/SecWeb.war/WEB-INF/lib/jboss-seam-mail.jar!/META-INF/seam-mail.taglib.xml
      18:30:50,753 ERROR [STDERR] 9/08/2008 18:30:50 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.1.GA/server/selwyn/deploy/Sec.ear/SecWeb.war/WEB-INF/lib/jboss-seam-ui.jar!/META-INF/s.taglib.xml
      18:30:50,753 ERROR [STDERR] 9/08/2008 18:30:50 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.1.GA/server/selwyn/deploy/Sec.ear/SecWeb.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
      18:30:50,769 ERROR [STDERR] 9/08/2008 18:30:50 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.1.GA/server/selwyn/deploy/Sec.ear/SecWeb.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
      18:30:50,769 ERROR [STDERR] 9/08/2008 18:30:50 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.1.GA/server/selwyn/deploy/Sec.ear/SecWeb.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
      18:30:50,769 ERROR [STDERR] 9/08/2008 18:30:50 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.1.GA/server/selwyn/deploy/Sec.ear/SecWeb.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
      18:30:50,785 ERROR [STDERR] 9/08/2008 18:30:50 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.1.GA/server/selwyn/deploy/Sec.ear/SecWeb.war/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
      18:30:50,785 ERROR [STDERR] 9/08/2008 18:30:50 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.1.GA/server/selwyn/deploy/Sec.ear/SecWeb.war/WEB-INF/lib/richfaces-ui-3.2.1.GA.jar!/META-INF/a4j.taglib.xml
      18:30:50,800 ERROR [STDERR] 9/08/2008 18:30:50 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.1.GA/server/selwyn/deploy/Sec.ear/SecWeb.war/WEB-INF/lib/richfaces-ui-3.2.1.GA.jar!/META-INF/ajax4jsf.taglib.xml
      18:30:50,800 ERROR [STDERR] 9/08/2008 18:30:50 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.1.GA/server/selwyn/deploy/Sec.ear/SecWeb.war/WEB-INF/lib/richfaces-ui-3.2.1.GA.jar!/META-INF/jsp.taglib.xml
      18:30:50,816 ERROR [STDERR] 9/08/2008 18:30:50 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.1.GA/server/selwyn/deploy/Sec.ear/SecWeb.war/WEB-INF/lib/richfaces-ui-3.2.1.GA.jar!/META-INF/rich.taglib.xml
      18:30:50,832 ERROR [STDERR] 9/08/2008 18:30:50 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
      INFO: Added Library from: jar:file:/C:/jboss-4.2.1.GA/server/selwyn/deploy/Sec.ear/SecWeb.war/WEB-INF/lib/richfaces-ui-3.2.1.GA.jar!/META-INF/richfaces.taglib.xml
      18:30:51,144 INFO  [MailSession] Creating JavaMail Session (smtp.gmail.com:465)
      18:30:51,144 INFO  [MailSession] connected to mail server
      18:30:51,207 ERROR [STDERR] java.lang.NullPointerException
      18:30:51,207 ERROR [STDERR]     at javax.mail.internet.MimeUtility.checkAscii(MimeUtility.java:1286)
      18:30:51,207 ERROR [STDERR]     at javax.mail.internet.MimeUtility.encodeWord(MimeUtility.java:613)
      18:30:51,207 ERROR [STDERR]     at javax.mail.internet.MimeUtility.encodeText(MimeUtility.java:444)
      18:30:51,207 ERROR [STDERR]     at javax.mail.internet.MimeMessage.setSubject(MimeMessage.java:793)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.mail.ui.UISubject.encodeChildren(UISubject.java:29)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.ui.util.JSF.renderChild(JSF.java:175)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.ui.util.JSF.renderChildren(JSF.java:163)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.mail.ui.UIMessage.encodeChildren(UIMessage.java:167)
      18:30:51,207 ERROR [STDERR]     at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
      18:30:51,207 ERROR [STDERR]     at com.sun.facelets.component.RepeatRenderer.encodeChildren(RepeatRenderer.java:50)
      18:30:51,207 ERROR [STDERR]     at com.sun.facelets.component.UIRepeat.process(UIRepeat.java:357)
      18:30:51,207 ERROR [STDERR]     at com.sun.facelets.component.UIRepeat.encodeChildren(UIRepeat.java:617)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.ui.util.JSF.renderChild(JSF.java:175)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.ui.util.JSF.renderChildren(JSF.java:163)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRenderer.java:207)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.ui.facelet.FaceletsRenderer$1.process(FaceletsRenderer.java:161)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.run(FaceletsRenderer.java:79)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:170)
      18:30:51,207 ERROR [STDERR]     at nz.co.selwynequestriancentre.action.mailingList.AsynchronousMailProcessorImpl.scheduleSend(AsynchronousMailProcessorImpl.java:37)
      18:30:51,207 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      18:30:51,207 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      18:30:51,207 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      18:30:51,207 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:50)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
      18:30:51,207 ERROR [STDERR]     at nz.co.selwynequestriancentre.action.mailingList.AsynchronousMailProcessorImpl_$$_javassist_11.scheduleSend(AsynchronousMailProcessorImpl_$$_javassist_11.java)
      18:30:51,207 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      18:30:51,207 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      18:30:51,207 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      18:30:51,207 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:52)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:76)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
      18:30:51,207 ERROR [STDERR]     at org.jboss.seam.async.ThreadPoolDispatcher$RunnableAsynchronous.run(ThreadPoolDispatcher.java:126)
      18:30:51,207 ERROR [STDERR]     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      18:30:51,207 ERROR [STDERR]     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      18:30:51,207 ERROR [STDERR]     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      18:30:51,207 ERROR [STDERR]     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)
      18:30:51,207 ERROR [STDERR]     at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)
      18:30:51,207 ERROR [STDERR]     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      18:30:51,207 ERROR [STDERR]     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      18:30:51,207 ERROR [STDERR]     at java.lang.Thread.run(Thread.java:619)
      18:30:51,207 INFO  [AsynchronousMailProcessorImpl] < scheduleSend




      Bean that calls the Aynch one:


             @TransactionAttribute(TransactionAttributeType.REQUIRED)
              @End
              public String sendToMailingList() {
                      try {
                              recipients = new ArrayList<User>();
                              if (testOnly) {
                                      User tony = (User) em.createQuery("from User u where u.email = :email").setParameter("email", "tony.herstell@selwynequestriancentre.co.nz").getSingleResult();
                                      recipients.add(tony);
                              } else {
                                      MailingListBuilder mailingListBuilder = new MailingListBuilder();
                                      recipients = mailingListBuilder.getMailingList(em);
                              }
                              
                              //Contexts.getEventContext().set("recipients", recipients);
                              //renderer.render("/WEB-INF/pages/mailingList/mailingListEmailWrapper.xhtml");
                              
                              asynchronousMailProcessor.scheduleSend(3000, recipients);
      
                              facesMessages.addFromResourceBundle(FacesMessage.SEVERITY_INFO,"mailing_list_emailed_successfully");
                      log.info("Mailing List Email(s) sent!");
                  } catch (Exception e) {
                      log.error("Mailing List Email(s) sending failed: "+e);
                  }
                  return "success";
          }



      and bean that does the sending


      package nz.co.selwynequestriancentre.action.mailingList;
      
      import java.util.List;
      
      import javax.ejb.Remove;
      import javax.ejb.TransactionAttribute;
      import javax.ejb.TransactionAttributeType;
      
      import nz.co.selwynequestriancentre.model.entity.User;
      
      import org.jboss.seam.annotations.AutoCreate;
      import org.jboss.seam.annotations.Destroy;
      import org.jboss.seam.annotations.In;
      import org.jboss.seam.annotations.Logger;
      import org.jboss.seam.annotations.Name;
      import org.jboss.seam.annotations.async.Asynchronous;
      import org.jboss.seam.annotations.async.Duration;
      import org.jboss.seam.contexts.Contexts;
      import org.jboss.seam.faces.Renderer;
      import org.jboss.seam.log.Log;
      
      @Name("asynchronousMailProcessor")
      @AutoCreate
      public class AsynchronousMailProcessorImpl implements AsynchronousMailProcessor {
      
              /**
               * Inject and leverage the Seam Logger.
               */
              @Logger
              private Log log;
      
              @Asynchronous
              public void scheduleSend(@Duration long delay, List<User> recipients) {
                      log.info("> scheduleSend");
                      try {
                              Contexts.getEventContext().set("recipients", recipients);
                              Renderer.instance().render("/WEB-INF/pages/mailingList/mailingListEmailWrapper.xhtml");
                      } catch (Exception e) {
                              e.printStackTrace();
                      }
                      log.info("< scheduleSend");
              }
      
              @Remove
              @Destroy
              @TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
              public void destroy() {
                      log.info("> destory");
                      log.info("< destory");
              }
      
      }
      



      Any ideas why I get this error when I move to an Asynch mode. Works perfectly ok when not Asynch.



        • 1. Re: Aynch Mail Sender Fails but Normal Does'nt
          pmuir

          What version of Seam?

          • 2. Re: Aynch Mail Sender Fails but Normal Does'nt
            www.supernovasoftware.com

            I have the exact same problem with 2.0.2SP1.


            My stack trace looks like



            [07:00:00,253,SaleDAOBean] Error sending mail
            java.lang.NullPointerException
                 at org.apache.myfaces.trinidadinternal.renderkit.RenderKitDecorator.getRenderKit(RenderKitDecorator.java:119)
                 at org.apache.myfaces.trinidadinternal.renderkit.RenderKitDecorator.createResponseWriter(RenderKitDecorator.java:53)
                 at org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.init(FaceletsRenderer.java:105)
                 at org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.run(FaceletsRenderer.java:78)
                 at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:170)
                 at com.octgsoftware.pipetracker.dao.state.type.SaleDAOBean.sendInvoiceSummaryEmail(SaleDAOBean.java:141)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
                 at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
                 at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                 at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:26)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:27)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                 at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
                 at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
                 at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:195)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
                 at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:240)
                 at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:210)
                 at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:84)
                 at $Proxy485.sendInvoiceSummaryEmail(Unknown Source)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                 at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
                 at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                 at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                 at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
                 at org.javassist.tmp.java.lang.Object_$$_javassist_1.sendInvoiceSummaryEmail(Object_$$_javassist_1.java)
                 at com.octgsoftware.pipetracker.dao.async.ReportProcessorBean.scheduleReport(ReportProcessorBean.java:50)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
                 at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
                 at org.jboss.seam.intercept.EJBInvocationContext.proceed(EJBInvocationContext.java:44)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                 at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.persistence.EntityManagerProxyInterceptor.aroundInvoke(EntityManagerProxyInterceptor.java:26)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.persistence.HibernateSessionProxyInterceptor.aroundInvoke(HibernateSessionProxyInterceptor.java:27)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                 at org.jboss.seam.intercept.SessionBeanInterceptor.aroundInvoke(SessionBeanInterceptor.java:50)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
                 at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                 at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
                 at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                 at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                 at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:240)
                 at org.jboss.ejb3.stateless.StatelessContainer.localInvoke(StatelessContainer.java:210)
                 at org.jboss.ejb3.stateless.StatelessLocalProxy.invoke(StatelessLocalProxy.java:84)
                 at $Proxy130.scheduleReport(Unknown Source)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                 at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
                 at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:76)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                 at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:50)
                 at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                 at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
                 at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:54)
                 at org.javassist.tmp.java.lang.Object_$$_javassist_0.scheduleReport(Object_$$_javassist_0.java)
                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                 at java.lang.reflect.Method.invoke(Method.java:597)
                 at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                 at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
                 at org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:53)
                 at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:77)
                 at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
                 at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:241)
                 at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
                 at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
            


            • 3. Re: Aynch Mail Sender Fails but Normal Does'nt
              tony.herstell1

              Seam 203CR1
              RF 321GA
              EJB Project

              • 4. Re: Aynch Mail Sender Fails but Normal Does'nt
                pmuir

                Best bet is to try trunk, as I rewrote the way this works there to allow this sort of stuff to work.

                • 5. Re: Aynch Mail Sender Fails but Normal Does'nt
                  tony.herstell1

                  Ill do that Pete.
                  Once I figure out how!
                  I have never delved into the CM system for Seam; just pulled the downloads down.
                  Is the fix in the Testing release that is available for download or have you literally just done it?

                  • 6. Re: Aynch Mail Sender Fails but Normal Does'nt
                    pmuir

                    No, you need trunk from SVN or to wait for the upcoming 2.1 BETA1

                    • 7. Re: Aynch Mail Sender Fails but Normal Does'nt
                      tony.herstell1

                      I can live with the email issue till 2.1 BETA1; great news that you fixed it (hopefully).


                      I hope that includes the fix that causes all the exceptions when you have to send large numbers of emails. One suggested fix was aking the transaction timeout longer (not tried as yet but sounds plausible).


                      Large Number of emails problem




                      What is causing me much more serious problems (hours and hours) is getting this working:


                      Lazy Exceptions


                      This is out of the box RF technology; but I can see the voodoo to get it working as per the thread. As I need to use this constrcut everywhere its a big issue.