[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3555) SeamMailAgain

Ga?l Beaudoin (JIRA) jira-events at lists.jboss.org
Tue Jan 13 10:42:04 EST 2009


    [ https://jira.jboss.org/jira/browse/JBSEAM-3555?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12447621#action_12447621 ] 

Ga?l Beaudoin commented on JBSEAM-3555:
---------------------------------------

Thanks !

Unfortunately It doesn't fix it for me. The first IllegalStateException is catched, a new MockLifecycle(); is instanciated, but then I still get :


org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.ui.facelet.facesContextFactory                              
16:08:44,842 ERROR [STDERR]     at org.jboss.seam.Component.newInstance(Component.java:2106)                                                                                        
16:08:44,842 ERROR [STDERR]     at org.jboss.seam.Component.getInstance(Component.java:1988)                                                                                        
16:08:44,842 ERROR [STDERR]     at org.jboss.seam.Component.getInstance(Component.java:1967)                                                                                        
16:08:44,843 ERROR [STDERR]     at org.jboss.seam.Component.getInstance(Component.java:1961)                                                                                        
16:08:44,843 ERROR [STDERR]     at org.jboss.seam.Component.getInstance(Component.java:1934)                                                                                        
16:08:44,843 ERROR [STDERR]     at org.jboss.seam.Component.getInstance(Component.java:1929)                                                                                        
16:08:44,843 ERROR [STDERR]     at org.jboss.seam.ui.facelet.RendererFacesContextFactory.instance(RendererFacesContextFactory.java:72)                                              
16:08:44,843 ERROR [STDERR]     at org.jboss.seam.ui.facelet.RendererRequest.init(RendererRequest.java:45)                                                                          
16:08:44,843 ERROR [STDERR]     at org.jboss.seam.ui.facelet.RendererRequest.run(RendererRequest.java:72)                                                                           
16:08:44,843 ERROR [STDERR]     at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:43)                                                                      
16:08:44,843 ERROR [STDERR]     at com.lrb.modules.booksellers.billing.InvoiceHome.sendEmail(InvoiceHome.java:157)                                                                  
16:08:44,843 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                                      
16:08:44,843 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                                                    
16:08:44,843 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                                                            
16:08:44,843 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)                                                                                                 
16:08:44,843 ERROR [STDERR]     at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)                                                                                      
16:08:44,843 ERROR [STDERR]     at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)                                                            
16:08:44,843 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)                                                            
16:08:44,843 ERROR [STDERR]     at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)                                                         
16:08:44,843 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)                                                            
16:08:44,843 ERROR [STDERR]     at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)                                                              
16:08:44,843 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)                                                            
16:08:44,843 ERROR [STDERR]     at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)                                                   
16:08:44,844 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)                                                            
16:08:44,844 ERROR [STDERR]     at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:95)                                                         
16:08:44,844 ERROR [STDERR]     at org.jboss.seam.util.Work.workInTransaction(Work.java:47)                                                                                         
16:08:44,844 ERROR [STDERR]     at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:89)                                                   
16:08:44,844 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)                                                            
16:08:44,844 ERROR [STDERR]     at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)                                                      
16:08:44,844 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)                                                            
16:08:44,844 ERROR [STDERR]     at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)                                                                        
16:08:44,844 ERROR [STDERR]     at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)                                                   
16:08:44,844 ERROR [STDERR]     at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)                                                                
16:08:44,844 ERROR [STDERR]     at com.lrb.modules.booksellers.billing.InvoiceHome_$$_javassist_22.sendEmail(InvoiceHome_$$_javassist_22.java)                                      
16:08:44,844 ERROR [STDERR]     at com.lrb.modules.booksellers.billing.SubscriptionInvoiceGenerator.generateInvoicesForDate(SubscriptionInvoiceGenerator.java:184)                  
16:08:44,844 ERROR [STDERR]     at com.lrb.modules.booksellers.billing.SubscriptionInvoiceGenerator.work(SubscriptionInvoiceGenerator.java:60)                                      
16:08:44,844 ERROR [STDERR]     at com.lrb.modules.booksellers.billing.SubscriptionInvoiceGenerator.work(SubscriptionInvoiceGenerator.java:1)                                       
16:08:44,844 ERROR [STDERR]     at com.lrb.metabook.util.Work.workInTransaction(Work.java:55)                                                                                       
16:08:44,844 ERROR [STDERR]     at com.lrb.modules.booksellers.AbstractJob.schedule(AbstractJob.java:82)                                                                            
16:08:44,844 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                                      
16:08:44,844 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                                                                    
16:08:44,845 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
16:08:44,845 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
16:08:44,845 ERROR [STDERR]     at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
16:08:44,845 ERROR [STDERR]     at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
16:08:44,845 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
16:08:44,845 ERROR [STDERR]     at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
16:08:44,845 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
16:08:44,845 ERROR [STDERR]     at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
16:08:44,845 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
16:08:44,845 ERROR [STDERR]     at org.jboss.seam.bpm.BusinessProcessInterceptor.aroundInvoke(BusinessProcessInterceptor.java:51)
16:08:44,845 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
16:08:44,845 ERROR [STDERR]     at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:95)
16:08:44,845 ERROR [STDERR]     at org.jboss.seam.util.Work.workInTransaction(Work.java:47)
16:08:44,845 ERROR [STDERR]     at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:89)
16:08:44,845 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
16:08:44,845 ERROR [STDERR]     at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
16:08:44,845 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
16:08:44,845 ERROR [STDERR]     at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:52)
16:08:44,845 ERROR [STDERR]     at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
16:08:44,845 ERROR [STDERR]     at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
16:08:44,846 ERROR [STDERR]     at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
16:08:44,846 ERROR [STDERR]     at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
16:08:44,846 ERROR [STDERR]     at com.lrb.modules.booksellers.billing.SubscriptionInvoiceGenerator_$$_javassist_17.schedule(SubscriptionInvoiceGenerator_$$_javassist_17.java)
16:08:44,846 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
16:08:44,846 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
16:08:44,846 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
16:08:44,846 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
16:08:44,846 ERROR [STDERR]     at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
16:08:44,846 ERROR [STDERR]     at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
16:08:44,846 ERROR [STDERR]     at org.jboss.seam.async.AsynchronousInvocation$1.process(AsynchronousInvocation.java:62)
16:08:44,846 ERROR [STDERR]     at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.run(Asynchronous.java:80)
16:08:44,846 ERROR [STDERR]     at org.jboss.seam.async.AsynchronousInvocation.execute(AsynchronousInvocation.java:44)
16:08:44,846 ERROR [STDERR]     at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:243)
16:08:44,846 ERROR [STDERR]     at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
16:08:44,846 ERROR [STDERR]     at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
16:08:44,847 ERROR [STDERR] Caused by: java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
16:08:44,847 ERROR [STDERR]     at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:267)
16:08:44,847 ERROR [STDERR]     at org.jboss.seam.ui.facelet.RendererFacesContextFactory.create(RendererFacesContextFactory.java:47)
16:08:44,847 ERROR [STDERR]     at com.lrb.metabook.core.RendererFacesContextFactory.create(RendererFacesContextFactory.java:44)
16:08:44,847 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
16:08:44,847 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
16:08:44,847 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
16:08:44,847 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:597)
16:08:44,847 ERROR [STDERR]     at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
16:08:44,847 ERROR [STDERR]     at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
16:08:44,847 ERROR [STDERR]     at org.jboss.seam.Component.callComponentMethod(Component.java:2211)
16:08:44,847 ERROR [STDERR]     at org.jboss.seam.Component.callCreateMethod(Component.java:2134)
16:08:44,847 ERROR [STDERR]     at org.jboss.seam.Component.newInstance(Component.java:2094)

com.lrb.metabook.core.RendererFacesContextFactory is the overridden RendererFacesContextFactory attached here.

I've tried with both seam 2.1.1 and trunk r9925.

Using jboss 4.2.3 and quartz.
I've also tried to use this trick with no success, same exception : http://in.relation.to/2640.lace

> SeamMailAgain
> -------------
>
>                 Key: JBSEAM-3555
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-3555
>             Project: Seam
>          Issue Type: Bug
>    Affects Versions: 2.1.0.CR1
>         Environment: JBoss AS 4.2.1.GA
> JBoss Seam 2.1.0-SNAPSHOT (10.10. HudsonNo330)
>            Reporter: Markus Heidt
>            Assignee: Pete Muir
>             Fix For: 2.1.2.CR1
>
>         Attachments: RendererFacesContextFactory.java, server.log
>
>
> Simple Mailing via Renderer doesn't work.
> 'Seam-gen'erated a new project and added a new action 'sendMail'
> Added the line to the action code:
> Renderer.instance().render("/simple.xhtml");
> simple.xhtml is a modified version of the seam example (without #{person})
> Error after executing the action:
> 2008-10-14 11:40:21,847 FATAL [javax.enterprise.resource.webcontainer.jsf.application] org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.ui.facelet.facesContextFactory
> javax.faces.el.EvaluationException: org.jboss.seam.InstantiationException: Could not instantiate Seam component: org.jboss.seam.ui.facelet.facesContextFactory
> 	at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:91)
> 	at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
> ...
> Caused by: java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
> 	at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list