14 Replies Latest reply on Jul 11, 2007 5:37 AM by shasho

    Problems with seam and icefaces (sending emails)

    kosl

      Dear All,

      I was very happy to see that there is a new version of icefaces released (1.6). In the release notes it says that it is "fully integrated" with seam 1.2.1 GA, That's why on friday I've moved my project from seam 1.2.0path1 to this version and icefaces (1.6) unfortunatelly there are some problems, namely with rendering of emails using the seam-email capabilities. I get the following exception (probably closely related to the problems described in http://jira.jboss.org/jira/browse/JBSEAM-977:

      
      23:36:03,140 ERROR [MailExample] Error sending mail
       java.lang.NullPointerException
       at org.jboss.seam.mail.ui.MailComponent.encode(MailComponent.java:52)
       at org.jboss.seam.mail.ui.MailComponent.encode(MailComponent.java:42)
       at org.jboss.seam.mail.ui.AddressComponent.getInternetAddress(AddressComponent.java:28)
       at org.jboss.seam.mail.ui.RecipientAddressComponent.encodeBegin(RecipientAddressComponent.java:25)
       at org.jboss.seam.ui.JSF.renderChild(JSF.java:171)
       at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
       at org.jboss.seam.mail.ui.UIMessage.encodeChildren(UIMessage.java:159)
       at org.jboss.seam.ui.JSF.renderChild(JSF.java:174)
       at org.jboss.seam.ui.JSF.renderChildren(JSF.java:162)
       at org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRenderer.java:150)
       at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:112)
       at com.levia.youdo.tests.MailExample.send(MailExample.java:41)
       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:585)
       at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
       at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
       at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:47)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
       at org.jboss.seam.interceptors.ManagedEntityIdentityInterceptor.aroundInvoke(ManagedEntityIdentityInterceptor.java:37)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
       at org.jboss.seam.interceptors.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:34)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
       at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27)
       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
       at com.levia.youdo.tests.MailExample_$$_javassist_105.send(MailExample_$$_javassist_105.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:585)
       at com.sun.el.parser.AstValue.invoke(AstValue.java:174)
       at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:286)
       at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
       at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
       at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
       at javax.faces.component.UICommand.broadcast(UICommand.java:109)
       at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
       at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
       at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
       at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
       at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
       at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:57)
       at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:45)
       at com.icesoft.faces.webapp.http.core.IDVerifier.service(IDVerifier.java:25)
       at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
       at com.icesoft.faces.webapp.http.servlet.ViewBoundAdaptingServlet.service(ViewBoundAdaptingServlet.java:44)
       at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
       at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
       at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:97)
       at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
       at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
       at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
       at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:85)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
       at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
       at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:359)
       at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
       at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:54)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:595)
      


      I'm sure it's not the problem with the way I'm sending emails, I took the code just from the seam examples - furthermore I am able to run it outside of my project - that is when icefaces ain't used.

      Does anyone know whether is there any simple way to solve this issue? Will it be solved in seam 2.0 ?

      I would really apreciate any answers,

      Kind Regards,

      Karol Oslowski

        • 1. Re: Problems with seam and icefaces (sending emails)
          pmuir

          If you can create a *really simple* test case just showing this issue which deploys to a clean install of JBoss AS then I can take a look. As this is icesfaces, I'll need all the libs - put it up on the net and I'll download it. Create a JIRA issue to track.

          • 2. Re: Problems with seam and icefaces (sending emails)
            kosl

            Dear Pete,

            Thank you very much for your fast reaction. I've created an Jira issue http://jira.jboss.org/jira/browse/JBSEAM-1623.

            All you have to do now is download the mail example from the link below, configure the mail server in components.xml in WEB-INF and yous should be able to duplicate the problem. www.mimuw.edu.pl/~barter/exampleear.zip

            I hope the example is simple enought it's unchanged mail example form seam 1.2.1GA with icefaces installed to get to the webpage u need to go to http://localhost:8080/seam-mail/index.html

            Hope we'll find solution to this problem!

            Kind Regards,

            Karol Oslowski

            • 3. Re: Problems with seam and icefaces (sending emails)
              kosl

              sorry the link isn't working

              http://www.mimuw.edu.pl/~barter/exampleear.zip

              This should be fine. At first it gives 403 error (don't know why) but when you try to go to this adress directly it works fine. Sorry for this inconvenience.

              Thx. again

              • 4. Re: Problems with seam and icefaces (sending emails)
                pmuir

                Ok, I can see the problem, but I really need to make any fixes against Seam2 now. I had a quick go at getting the mail example using icesfaces on Seam2 but failed - if you can add icesfaces to the mail example in CVS head, then I'll take a look :)

                • 5. Re: Problems with seam and icefaces (sending emails)
                  kosl

                  Ok, I'll try to do that :-)

                  • 6. Re: Problems with seam and icefaces (sending emails)
                    kosl

                    Hi,

                    I think I managed to do what you asked me to do.

                    Again the mail example is working, but when I add icefaces to the project I get the following exception:

                    19:25:33,375 ERROR [MailExample] Error sending mail
                    java.lang.UnsupportedOperationException
                     at javax.faces.context.ExternalContext.getResponseContentType(ExternalContext.java:749)
                     at com.sun.faces.renderkit.RenderKitImpl.createResponseWriter(RenderKitImpl.java:183)
                     at org.jboss.seam.ui.facelet.FaceletsRenderer$Context.wrap(FaceletsRenderer.java:67)
                     at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:109)
                     at org.jboss.seam.example.mail.MailExample.sendTemplate(MailExample.java:80)
                     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: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 org.jboss.seam.example.mail.MailExample_$$_javassist_15.sendTemplate(MailExample_$$_javassist_15.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:585)
                     at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:325)
                     at org.jboss.el.util.ReflectionUtil.invokeMethod(ReflectionUtil.java:338)
                     at org.jboss.el.parser.AstPropertySuffix.invoke(AstPropertySuffix.java:58)
                     at org.jboss.el.parser.AstValue.invoke(AstValue.java:96)
                     at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
                     at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                     at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
                     at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
                     at javax.faces.component.UICommand.broadcast(UICommand.java:383)
                     at org.ajax4jsf.framework.ajax.AjaxViewRoot.processEvents(AjaxViewRoot.java:180)
                     at org.ajax4jsf.framework.ajax.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:158)
                     at org.ajax4jsf.framework.ajax.AjaxViewRoot.processApplication(AjaxViewRoot.java:346)
                     at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
                     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                     at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:57)
                     at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:45)
                     at com.icesoft.faces.webapp.http.core.IDVerifier.service(IDVerifier.java:25)
                     at com.icesoft.faces.webapp.http.servlet.BasicAdaptingServlet.service(BasicAdaptingServlet.java:16)
                     at com.icesoft.faces.webapp.http.servlet.ViewBoundAdaptingServlet.service(ViewBoundAdaptingServlet.java:44)
                     at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
                     at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
                     at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:97)
                     at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:35)
                     at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52)
                     at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29)
                     at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:85)
                     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
                     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)
                     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
                     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364)
                     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
                     at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:54)
                     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                     at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
                     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                     at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
                     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                     at java.lang.Thread.run(Thread.java:595)
                    19:25:33,468 INFO [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
                    sourceId=null[severity=(INFO 0), summary=(Email sending failed: null), detail=(Email sending failed: null)]
                    


                    I was using Jboss 4.2 GA the standard installation - configuration "all"

                    I'm not sure if its the same problem but I think that probably yes. I've put the ear online www.mimuw.edu.pl/~barter/earseam2.zip

                    I hope this might help.

                    Kind Regards,

                    Karol Oslowski

                    • 7. Re: Problems with seam and icefaces (sending emails)
                      kosl

                      Different exception is thrown when the message is thrown asynchronously.

                      22:25:41,921 ERROR [STDERR] 2007-07-09 22:25:41 com.sun.facelets.tag.jsf.ComponentRule warnAttr
                      WARNING: /jboss-seam-email.war/simple.xhtml @3,51 xmlns="http://www.w3.org/1999/xhtml" Property '' is not on type: org.jboss.seam.mail.ui.UIMessage
                      22:25:41,953 ERROR [STDERR] java.lang.IllegalStateException: ICEfaces requires the PersistentFacesServlet. Please check your web.xml servlet mappings
                      22:25:41,953 ERROR [STDERR] at com.icesoft.faces.context.DOMResponseWriter.<init>(DOMResponseWriter.java:118)
                      22:25:41,953 ERROR [STDERR] at com.icesoft.faces.context.DOMContext.createTemporaryDOMResponseWriter(DOMContext.java:138)
                      22:25:41,953 ERROR [STDERR] at com.icesoft.faces.context.DOMContext.attachDOMContext(DOMContext.java:106)
                      22:25:41,953 ERROR [STDERR] at com.icesoft.faces.renderkit.dom_html_basic.TextRenderer.renderUIOutput(TextRenderer.java:81)
                      22:25:41,953 ERROR [STDERR] at com.icesoft.faces.renderkit.dom_html_basic.TextRenderer.renderEnd(TextRenderer.java:66)
                      22:25:41,968 ERROR [STDERR] at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeEnd(DomBasicRenderer.java:125)
                      22:25:41,968 ERROR [STDERR] at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:833)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.ui.util.JSF.renderChild(JSF.java:181)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.ui.util.JSF.renderChildren(JSF.java:163)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.mail.ui.MailComponent.encode(MailComponent.java:80)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.mail.ui.MailComponent.encode(MailComponent.java:54)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.mail.ui.UIBody.encodeChildren(UIBody.java:44)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.ui.util.JSF.renderChild(JSF.java:175)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.ui.util.JSF.renderChildren(JSF.java:163)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.mail.ui.UIMessage.encodeChildren(UIMessage.java:155)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.ui.util.JSF.renderChild(JSF.java:175)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.ui.util.JSF.renderChildren(JSF.java:163)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRenderer.java:147)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:111)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.example.mail.AsynchronousMailProcessor.scheduleSend(AsynchronousMailProcessor.java:18)
                      22:25:41,968 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      22:25:41,968 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                      22:25:41,968 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      22:25:41,968 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:42)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:151)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:87)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.example.mail.AsynchronousMailProcessor_$$_javassist_15.scheduleSend(AsynchronousMailProcessor_$$_javassist_15.java)
                      22:25:41,968 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      22:25:41,968 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                      22:25:41,968 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      22:25:41,968 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:124)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.async.AsynchronousInvocation.call(AsynchronousInvocation.java:52)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.async.Asynchronous.executeInContexts(Asynchronous.java:76)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.async.Asynchronous.execute(Asynchronous.java:45)
                      22:25:41,968 ERROR [STDERR] at org.jboss.seam.async.TimerServiceDispatcher.dispatch(TimerServiceDispatcher.java:50)
                      22:25:41,968 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                      22:25:41,968 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                      22:25:41,968 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                      22:25:41,968 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
                      22:25:41,968 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
                      22:25:41,968 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
                      22:25:41,968 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                      22:25:41,968 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      22:25:41,968 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                      22:25:41,968 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      22:25:41,968 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
                      22:25:41,968 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      22:25:41,968 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
                      22:25:41,968 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
                      22:25:41,968 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      22:25:41,968 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                      22:25:41,968 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      22:25:41,968 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessInstanceInterceptor.invoke(StatelessInstanceInterceptor.java:62)
                      22:25:41,968 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      22:25:41,968 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
                      22:25:41,968 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:106)
                      22:25:41,968 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      22:25:41,968 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
                      22:25:41,968 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      22:25:41,968 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                      22:25:41,968 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                      22:25:41,968 ERROR [STDERR] at org.jboss.ejb3.stateless.StatelessContainer.callTimeout(StatelessContainer.java:151)
                      22:25:41,968 ERROR [STDERR] at org.jboss.ejb.txtimer.TimerImpl$TimerTaskImpl.run(TimerImpl.java:561)
                      22:25:41,968 ERROR [STDERR] at java.util.TimerThread.mainLoop(Timer.java:512)
                      22:25:41,968 ERROR [STDERR] at java.util.TimerThread.run(Timer.java:462)


                      • 8. Re: Problems with seam and icefaces (sending emails)
                        shasho

                        Hi,


                        I have related quesion. Running the same code in my Jboss 4.05 I get the
                        "No Factories configured for this Application......
                        at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:90)
                        ......" error.

                        What do I need to do beside deploying the application in Jboss? Do I need to change Jboss configuration ? Add jars?

                        Thanks
                        Amir

                        • 9. Re: Problems with seam and icefaces (sending emails)
                          pmuir

                          What code? What version of Seam? With icefaces?

                          • 10. Re: Problems with seam and icefaces (sending emails)
                            shasho


                            I took the ZIP file from www.mimuw.edu.pl/~barter/exampleear.zip and deployed the EAR in my Jboss 4.05

                            Ice 1.6
                            Seam 1.2.1

                            • 11. Re: Problems with seam and icefaces (sending emails)
                              kosl

                              You ned to install all the applications that are usually deployed with the mail example. Furthermore you should configure your smtp server in WEB-INF/components.xml file. Hope this helps.

                              Cheers,

                              k.

                              • 12. Re: Problems with seam and icefaces (sending emails)
                                shasho


                                The only thing that I changed in the application I downloaded from www.mimuw.edu.pl/~barter/exampleear.zip is the definition of <mail:mail-session... in WEB-INF/components.xml.

                                Now, I suspect that I need also to change some configuration in the Jboss itself. The seam references mention something about updating the file deploy/mail-service.xml (section 16.3.1.1) of the reference. But it didn't work for me

                                Any help?

                                • 13. Re: Problems with seam and icefaces (sending emails)
                                  pmuir

                                  The application kosl put up at that address is a test case to show me where the problem is. Yes, it doesn't work. It's not supposed to work!

                                  • 14. Re: Problems with seam and icefaces (sending emails)
                                    shasho



                                    We have different problems . He got "java.lang.NullPointerException...
                                    I got "No Factories configured for this Application...... "

                                    Looking at previous posts in this forum I suspect that my problem is Jboss configuration problem

                                    His example is taken from the seam examples. The only different is deploying it with IceFaces