6 Replies Latest reply on Dec 18, 2007 3:57 PM by Pete Muir

    @Asynchronous mail example fails

    pieter martin Newbie

      Hi,

      Sending a simple mail works fine but sending a simple mail asynchronously fails with java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factor.

      I am using jboss-seam-2.0.0.CR3 and jboss-4.2.1.GA

      Exception is

      
      09:01:45,708 ERROR [STDERR] java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory
      09:01:45,709 ERROR [STDERR] at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
      09:01:45,709 ERROR [STDERR] at org.jboss.seam.mock.MockFacesContext.<init>(MockFacesContext.java:60)
      09:01:45,709 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.init(FaceletsRenderer.java:95)
      09:01:45,709 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer$RenderingContext.run(FaceletsRenderer.java:77)
      09:01:45,709 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:169)
      09:01:45,709 ERROR [STDERR] at org.jboss.seam.example.mail.AsynchronousMailProcessor.scheduleSend(AsynchronousMailProcessor.java:18)
      09:01:45,710 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      09:01:45,710 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      09:01:45,710 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:01:45,710 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:01:45,710 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      09:01:45,710 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
      09:01:45,710 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
      09:01:45,710 ERROR [STDERR] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
      09:01:45,710 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      09:01:45,710 ERROR [STDERR] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
      09:01:45,710 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      09:01:45,710 ERROR [STDERR] at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:50)
      09:01:45,711 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
      09:01:45,711 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
      09:01:45,711 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:155)
      09:01:45,711 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:91)
      09:01:45,711 ERROR [STDERR] at org.jboss.seam.example.mail.AsynchronousMailProcessor_$$_javassist_2.scheduleSend(AsynchronousMailProcessor_$$_javassist_2.java)
      09:01:45,711 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      09:01:45,711 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      09:01:45,711 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      09:01:45,711 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      09:01:45,711 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
      09:01:45,711 ERROR [STDERR] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:125)
      09:01:45,711 ERROR [STDERR] at org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:52)
      09:01:45,712 ERROR [STDERR] at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:76)
      09:01:45,712 ERROR [STDERR] at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
      09:01:45,712 ERROR [STDERR] at org.jboss.seam.async.ThreadPoolDispatcher$RunnableAsynchronous.run(ThreadPoolDispatcher.java:114)
      09:01:45,712 ERROR [STDERR] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      09:01:45,712 ERROR [STDERR] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      09:01:45,712 ERROR [STDERR] at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      09:01:45,712 ERROR [STDERR] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:65)
      09:01:45,712 ERROR [STDERR] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:168)
      09:01:45,712 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      09:01:45,712 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      09:01:45,712 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      
      
      


      Is this a bug?

      Thanks
      Pieter