11 Replies Latest reply on Oct 12, 2007 4:21 AM by damianharvey

    Quartz question

    mladen.babic

      Hi,
      I have action which send e-mail to user. I've tried to add Quartz action to do same action with interval. Quartz action works fine but when I added method which sending mail in this action it trows me this error

      java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory
      14:32:34,791 ERROR [STDERR] at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
      14:32:34,792 ERROR [STDERR] at org.jboss.seam.mock.MockFacesContext.<init>(MockFacesContext.java:58)
      14:32:41,125 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer$Context.wrap(FaceletsRenderer.java:58)
      14:32:41,125 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:109)
      14:32:41,125 ERROR [STDERR] at com.elbsolutions.eorder.bean.MessageAction.sendOrderEmailToBuyer(MessageAction.java:58)
      14:32:41,125 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor1174.invoke(Unknown Source)
      14:32:41,125 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      14:32:41,125 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      14:32:41,125 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      14:32:41,125 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
      14:32:41,125 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
      14:32:41,125 ERROR [STDERR] at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
      14:32:41,125 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      14:32:41,125 ERROR [STDERR] at org.jboss.seam.persistence.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:43)
      14:32:41,125 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      14:32:41,126 ERROR [STDERR] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
      14:32:41,126 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      14:32:41,126 ERROR [STDERR] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
      14:32:41,126 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      14:32:41,126 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
      14:32:41,126 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
      14:32:41,126 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
      14:32:41,126 ERROR [STDERR] at com.elbsolutions.eorder.bean.MessageAction_$$_javassist_264.sendOrderEmailToBuyer(MessageAction_$$_javassist_264.java)
      14:32:41,126 ERROR [STDERR] at com.elbsolutions.eorder.bean.QuartzTriggerAction.schedule(QuartzTriggerAction.java:45)
      14:32:41,126 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor1158.invoke(Unknown Source)
      14:32:41,126 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      14:32:41,126 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      14:32:41,126 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      14:32:41,126 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
      14:32:41,126 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
      14:32:41,126 ERROR [STDERR] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
      14:32:41,126 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      14:32:41,126 ERROR [STDERR] at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
      14:32:41,126 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      14:32:41,126 ERROR [STDERR] at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
      14:32:41,126 ERROR [STDERR] at org.jboss.seam.util.Work.workInTransaction(Work.java:39)
      14:32:41,126 ERROR [STDERR] at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
      14:32:41,127 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      14:32:41,127 ERROR [STDERR] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
      14:32:41,127 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      14:32:41,127 ERROR [STDERR] at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:42)
      14:32:41,127 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      14:32:41,127 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
      14:32:41,127 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
      14:32:41,127 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
      14:32:41,127 ERROR [STDERR] at com.elbsolutions.eorder.bean.QuartzTriggerAction_$$_javassist_262.schedule(QuartzTriggerAction_$$_javassist_262.java)
      14:32:41,127 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor1157.invoke(Unknown Source)
      14:32:41,127 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      14:32:41,127 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      14:32:41,127 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      14:32:41,127 ERROR [STDERR] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:124)
      14:32:41,127 ERROR [STDERR] at org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:52)
      14:32:41,127 ERROR [STDERR] at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:76)
      14:32:41,127 ERROR [STDERR] at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
      14:32:41,127 ERROR [STDERR] at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:242)
      14:32:41,127 ERROR [STDERR] at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      14:32:41,127 ERROR [STDERR] at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
      14:32:41,127 ERROR [MessageAction] ERROR while sending e-mail
      java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory
       at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
       at org.jboss.seam.mock.MockFacesContext.<init>(MockFacesContext.java:58)
       at org.jboss.seam.ui.facelet.FaceletsRenderer$Context.wrap(FaceletsRenderer.java:58)
       at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:109)
       at com.elbsolutions.eorder.bean.MessageAction.sendOrderEmailToBuyer(MessageAction.java:58)
       at sun.reflect.GeneratedMethodAccessor1174.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       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.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
       at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:46)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
       at org.jboss.seam.persistence.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:43)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
       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.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
       at com.elbsolutions.eorder.bean.MessageAction_$$_javassist_264.sendOrderEmailToBuyer(MessageAction_$$_javassist_264.java)
       at com.elbsolutions.eorder.bean.QuartzTriggerAction.schedule(QuartzTriggerAction.java:45)
       at sun.reflect.GeneratedMethodAccessor1158.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       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.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.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
       at org.jboss.seam.util.Work.workInTransaction(Work.java:39)
       at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
       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.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:42)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
       at com.elbsolutions.eorder.bean.QuartzTriggerAction_$$_javassist_262.schedule(QuartzTriggerAction_$$_javassist_262.java)
       at sun.reflect.GeneratedMethodAccessor1157.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
       at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:124)
       at org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:52)
       at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:76)
       at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
       at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:242)
       at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
       at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
      


      tnx,
      mb

        • 1. Re: Quartz question
          mladen.babic

          If you need more info about my problem ,i'll post here.
          tnx,
          mb

          • 2. Re: Quartz question
            pmuir

            Which version of Seam? Code you are using.

            • 3. Re: Quartz question
              mladen.babic

              I'm using Seam 2.0 BETA. Here is fragment of my code:
              This method triggers action for sending e-mail:

              
               @Asynchronous
               @Transactional
               public QuartzTriggerHandle schedule( @Expiration Date when, @IntervalDuration Long min){
               for(Order order:orderService.getAllOrders()){
               if(orderService.getOrderForMailing(order)!=null){
               messageAction.sendOrderEmailToBuyer(order);
               }
               }
              
               return null;
               }
              
              


              And this method sending e-mail.

              public void sendOrderEmailToBuyer(Order order) {
               try {
               User buyer = order.getBuyer();
               Contexts.getConversationContext().set("currentOrder", order);
               Contexts.getConversationContext().remove("currentOrderItems");
               Contexts.getConversationContext().set("recipient", buyer);
               Contexts.getConversationContext().set("changedstatus", chandedstatus);
              
               log.info("Email was sent successfuly to %1", buyer.getEmail());
               } catch (Exception e) {
               e.printStackTrace();
               log.error("ERROR while sending e-mail", e);
               }
               }


              Method sendOrderEmailToBuyer works fine when I clicked on button directly.Problem is when quartz action triggered this method for sending mail it trows error which I post above.Info:Quartz class starts when server starts.

              Tnx,
              mb

              • 4. Re: Quartz question

                I am back from vacation! :) Well, I think the issue here is that there is no notion of "conversation" in an asynchronous method. Once started, the async method is invoked automatically without user intervention -- the user might be long gone when the method is invoked. So, the user session / conversation (or any JSF state) is not propagated into the method. Similarly, the outcome of the asyn method is not rendered to JSF pages.

                My guess is that you will need to use the regular JavaMail API to send out email from the async method.

                • 5. Re: Quartz question
                  pmuir

                  Yes there is no conversation context, so outject to the event scope. Seam mail should still work, we mock up the JSF contexts.

                  Can you post a testcase against CVS to JIRA. Ideally this would be a patch against the mail example or the quartz example demonstrating the problem.

                  • 6. Re: Quartz question
                    mladen.babic

                    Hi Pete,

                    I have been confused about this answer. Which method(or class ) I have to outject on event scope : asyn method or method which sends email (against on my example)?

                    Best regards,
                    mb

                    • 7. Re: Quartz question
                      pmuir

                      The variables you wish to access in your mail template

                      e.g.

                      Contexts.getEventContext().set("currentOrder", order);


                      • 8. Re: Quartz question
                        mladen.babic

                        I've done that , but i still have same problem.

                        Best regards,
                        mb

                        • 9. Re: Quartz question [not just Quartz but EJB timer as well]
                          damianharvey

                          I've got exactly the same problem as this using Seam 2.0.0.CR2 on JBoss 4.2.0.GA. I've tried the async send in the mail example and it shows the same issue.

                          Has anyone found a solution to this?

                          I've stripped my own app back so that it has no variables in the mail template. Everything is hard-coded so I doubt it's a conversation scope issue as suggested above.

                          All of the other types of send in the example app work aside from the async. Here's the stack trace from the example:

                          17:11:35,054 INFO [MailSession] Creating JavaMail Session (localhost:2500)
                          17:11:35,060 INFO [MailSession] connected to mail server
                          17:11:54,872 ERROR [STDERR] java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory
                          17:11:54,872 ERROR [STDERR] at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
                          17:11:54,872 ERROR [STDERR] at org.jboss.seam.mock.MockFacesContext.<init>(MockFacesContext.java:60)
                          17:11:54,872 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.init(FaceletsRenderer.java:95)
                          17:11:54,872 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.run(FaceletsRenderer.java:77)
                          17:11:54,872 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:169)
                          17:11:54,872 ERROR [STDERR] at org.jboss.seam.example.mail.AsynchronousMailProcessor.scheduleSend(AsynchronousMailProcessor.java:18)
                          17:11:54,873 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                          17:11:54,873 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                          17:11:54,873 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                          17:11:54,873 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:50)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.example.mail.AsynchronousMailProcessor_$$_javassist_2.scheduleSend(AsynchronousMailProcessor_$$_javassist_2.java)
                          17:11:54,873 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                          17:11:54,873 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                          17:11:54,873 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                          17:11:54,873 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:52)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:76)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
                          17:11:54,873 ERROR [STDERR] at org.jboss.seam.async.TimerServiceDispatcher.dispatch(TimerServiceDispatcher.java:50)
                          17:11:54,874 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                          17:11:54,874 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                          17:11:54,874 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                          17:11:54,874 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                          17:11:54,874 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
                          17:11:54,874 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
                          17:11:54,874 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                          17:11:54,874 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                          17:11:54,874 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                          17:11:54,874 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                          17:11:54,874 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
                          17:11:54,874 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                          17:11:54,874 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                          17:11:54,874 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
                          17:11:54,874 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                          17:11:54,874 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                          17:11:54,874 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                          17:11:54,874 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
                          17:11:54,874 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                          17:11:54,874 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
                          17:11:54,874 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
                          17:11:54,874 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                          17:11:54,874 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
                          17:11:54,874 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                          17:11:54,875 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                          17:11:54,875 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                          17:11:54,875 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.callTimeout(StatelessContainer.java:151)
                          17:11:54,875 ERROR [STDERR] at org.jboss.ejb.txtimer.TimerImpl$TimerTaskImpl.run(TimerImpl.java:561)
                          17:11:54,875 ERROR [STDERR] at java.util.TimerThread.mainLoop(Timer.java:512)
                          17:11:54,875 ERROR [STDERR] at java.util.TimerThread.run(Timer.java:462)
                          


                          Thanks,

                          Damian

                          • 10. Re: Quartz question
                            mladen.babic

                            I've solved problem when I updated my app on SEAM 2.0.0 and AS 4.2.1. Look in template for email too,maybe you have some value which is not in event scope(e.g. subject ,address...)


                            Best regards,
                            mb

                            • 11. Re: Quartz question
                              damianharvey

                              I've just tried it under JBoss 4.2.1 and it works fine. No idea why my 4.2.0 instance was b0rked.

                              Cheers,

                              Damian.