Re: problem using myfaces-core-2.0.0-SNAPSHOT + myfaces-orchestra20-1.5-SNAPSHOT
Hello Matthias, On 01/21/2010 09:53 AM, Matthias Wessendorf wrote: Ok, good to know. Quick follow-up: Does it work with the RI/Mojarra ? No , it doesn't. As you might have noticed looking at the FAQ, the current version of Trinidad might be part of the problem. If so, do you mind to create a JIRA ticket against MyFaces2 ? It seems that such a ticket has already been created. regards. Edmond/
Re: problem using myfaces-core-2.0.0-SNAPSHOT + myfaces-orchestra20-1.5-SNAPSHOT
On 01/20/2010 11:46 AM, Matthias Wessendorf wrote: Hello Edmond, I see you are using Trinidad; Did you give the 2.0.0-alpha a try ? Yes I did. The demo package of Trinidad 2.0.0-alpha is working. The application that is failing is using Myfaces-2.0.0-alpha, Trinidad-2.0.0-alpha, Orchestra20.1-5, Spring 2.5, OpenJPA-1.2 , Tomahawk and Tomcat-6 regards. -- Edmond/
Re: problem using myfaces-core-2.0.0-SNAPSHOT + myfaces-orchestra20-1.5-SNAPSHOT
Ok, good to know. Quick follow-up: Does it work with the RI/Mojarra ? If so, do you mind to create a JIRA ticket against MyFaces2 ? -Matthias On Wed, Jan 20, 2010 at 11:29 PM, Edmond B. Mulemangabo edmond.mulemang...@uclouvain.be wrote: On 01/20/2010 11:46 AM, Matthias Wessendorf wrote: Hello Edmond, I see you are using Trinidad; Did you give the 2.0.0-alpha a try ? Yes I did. The demo package of Trinidad 2.0.0-alpha is working. The application that is failing is using Myfaces-2.0.0-alpha, Trinidad-2.0.0-alpha, Orchestra20.1-5, Spring 2.5, OpenJPA-1.2 , Tomahawk and Tomcat-6 regards. -- Edmond/ -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf
Re: problem using myfaces-core-2.0.0-SNAPSHOT + myfaces-orchestra20-1.5-SNAPSHOT
On 01/21/2010 09:53 AM, Matthias Wessendorf wrote: Quick follow-up: Does it work with the RI/Mojarra ? I haven't given RI/Mojarra a try yet. I've never used RI/Mojarra; I hope I'll be able to set it up and give it a try. If so, do you mind to create a JIRA ticket against MyFaces2 ? -Matthias On Wed, Jan 20, 2010 at 11:29 PM, Edmond B. Mulemangabo edmond.mulemang...@uclouvain.be wrote: On 01/20/2010 11:46 AM, Matthias Wessendorf wrote: Hello Edmond, I see you are using Trinidad; Did you give the 2.0.0-alpha a try ? Yes I did. The demo package of Trinidad 2.0.0-alpha is working. The application that is failing is using Myfaces-2.0.0-alpha, Trinidad-2.0.0-alpha, Orchestra20.1-5, Spring 2.5, OpenJPA-1.2 , Tomahawk and Tomcat-6 regards. Edmond/
Re: problem using myfaces-core-2.0.0-SNAPSHOT + myfaces-orchestra20-1.5-SNAPSHOT
ok, I asked as it looks like a myfaces2 bug.. On Thu, Jan 21, 2010 at 11:43 AM, Edmond B. Mulemangabo edmond.mulemang...@uclouvain.be wrote: On 01/21/2010 09:53 AM, Matthias Wessendorf wrote: Quick follow-up: Does it work with the RI/Mojarra ? I haven't given RI/Mojarra a try yet. I've never used RI/Mojarra; I hope I'll be able to set it up and give it a try. If so, do you mind to create a JIRA ticket against MyFaces2 ? -Matthias On Wed, Jan 20, 2010 at 11:29 PM, Edmond B. Mulemangabo edmond.mulemang...@uclouvain.be wrote: On 01/20/2010 11:46 AM, Matthias Wessendorf wrote: Hello Edmond, I see you are using Trinidad; Did you give the 2.0.0-alpha a try ? Yes I did. The demo package of Trinidad 2.0.0-alpha is working. The application that is failing is using Myfaces-2.0.0-alpha, Trinidad-2.0.0-alpha, Orchestra20.1-5, Spring 2.5, OpenJPA-1.2 , Tomahawk and Tomcat-6 regards. Edmond/ -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf
RE: problem using myfaces-core-2.0.0-SNAPSHOT + myfaces-orchestra20-1.5-SNAPSHOT
Hi Matthias, hi Edmond, I was facing the same error (during initialization of Trinidad) when I tried a simple example last weekend. I could track it down to the following: During Context-Initialization (ContextServletListener) MyFaces uses a fake Proxy (org.apache.myfaces.application._SystemEventServletRequest) for HttpRequest. This proxy returns java.lang.UnsupportedOperationException: This request class is an empty placeholder regardless which method is invoked. On the other hand Trinidad tries to detect if this request is a partial request. This detection wants to read request header Tr-XHR-Message. org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.isAjaxRequest(CoreRenderKit.java:148) at org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.isPartialRequest(CoreRenderKit.java:163) at org.apache.myfaces.trinidadinternal.config.xmlHttp.XmlHttpConfigurator.getExternalContext(XmlHttpConfigurator.java:61) at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.getExternalContext(GlobalConfiguratorImpl.java:351) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.init(FacesContextFactoryImpl.java:90) I don’t really know who is using the wrong assumptions. Should the MyFaces HttpRequest-Proxy allow method invocations like request.getHeader(Tr-XHR-Message )? Or should Trinidad not try to read any request values, headers, attributes, etc. during initialization? Hopefully this could point you in the right direction. Regards Harald Harald Kuhn AirPlus International Business Information Services Dornhofstr. 36 63263 Neu-Isenburg T +49 (0) 61 02. 2 04 - 8 21 F +49 (0) 61 02. 2 04 - 77 8 21 hk...@airplus.com www.airplus.com Lufthansa AirPlus Servicekarten GmbH · Hans-Böckler-Straße 7 · 63263 Neu-Isenburg · Germany · Geschäftsführer: Patrick W. Diemer (Vorsitz), Klaus Busch · Vorsitzender des Aufsichtsrates: Stephan Gemkow · Handelsregister: Amtsgericht Offenbach/Main, HRB 8119 -Original Message- From: mwessend...@gmail.com [mailto:mwessend...@gmail.com] On Behalf Of Matthias Wessendorf Sent: Thursday, January 21, 2010 1:07 PM To: MyFaces Discussion; edmond.mulemang...@uclouvain.be Subject: Re: problem using myfaces-core-2.0.0-SNAPSHOT + myfaces-orchestra20-1.5-SNAPSHOT ok, I asked as it looks like a myfaces2 bug.. On Thu, Jan 21, 2010 at 11:43 AM, Edmond B. Mulemangabo edmond.mulemang...@uclouvain.be wrote: On 01/21/2010 09:53 AM, Matthias Wessendorf wrote: Quick follow-up: Does it work with the RI/Mojarra ? I haven't given RI/Mojarra a try yet. I've never used RI/Mojarra; I hope I'll be able to set it up and give it a try. If so, do you mind to create a JIRA ticket against MyFaces2 ? -Matthias On Wed, Jan 20, 2010 at 11:29 PM, Edmond B. Mulemangabo edmond.mulemang...@uclouvain.be wrote: On 01/20/2010 11:46 AM, Matthias Wessendorf wrote: Hello Edmond, I see you are using Trinidad; Did you give the 2.0.0-alpha a try ? Yes I did. The demo package of Trinidad 2.0.0-alpha is working. The application that is failing is using Myfaces-2.0.0-alpha, Trinidad-2.0.0-alpha, Orchestra20.1-5, Spring 2.5, OpenJPA-1.2 , Tomahawk and Tomcat-6 regards. Edmond/ -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf
Re: problem using myfaces-core-2.0.0-SNAPSHOT + myfaces-orchestra20-1.5-SNAPSHOT
) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) In few words, the wrappers should use HttpServletXXX for create the proxy (because ServletExternalContextImpl check for it) and contains some dummy methods to make it work. Note RI uses some classes that return null, 0 or empty list/collection when initialization occur. For now, I'll commit only the ones I need. « Now the question is: Should we change _SystemEventServletRequest to return an emty List for the headers or should we change this behavior in Trinidad. Im not that familiar with Trinidad, so please Matthias or someone else from the Trinidad team please take a look at this. Thanks! Regards, Jakob 2010/1/21 Kuhn, Harald hk...@airplus.com Hi Matthias, hi Edmond, I was facing the same error (during initialization of Trinidad) when I tried a simple example last weekend. I could track it down to the following: During Context-Initialization (ContextServletListener) MyFaces uses a fake Proxy (org.apache.myfaces.application._SystemEventServletRequest) for HttpRequest. This proxy returns java.lang.UnsupportedOperationException: This request class is an empty placeholder regardless which method is invoked. On the other hand Trinidad tries to detect if this request is a partial request. This detection wants to read request header Tr-XHR-Message. org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.isAjaxRequest(CoreRenderKit.java:148) at org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.isPartialRequest(CoreRenderKit.java:163) at org.apache.myfaces.trinidadinternal.config.xmlHttp.XmlHttpConfigurator.getExternalContext(XmlHttpConfigurator.java:61) at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.getExternalContext(GlobalConfiguratorImpl.java:351) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.init(FacesContextFactoryImpl.java:90) I don’t really know who is using the wrong assumptions. Should the MyFaces HttpRequest-Proxy allow method invocations like request.getHeader(Tr-XHR-Message )? Or should Trinidad not try to read any request values, headers, attributes, etc. during initialization? Hopefully this could point you in the right direction. Regards Harald Harald Kuhn AirPlus International Business Information Services Dornhofstr. 36 63263 Neu-Isenburg T +49 (0) 61 02. 2 04 - 8 21 F +49 (0) 61 02. 2 04 - 77 8 21 hk...@airplus.com www.airplus.com Lufthansa AirPlus Servicekarten GmbH · Hans-Böckler-Straße 7 · 63263 Neu-Isenburg · Germany · Geschäftsführer: Patrick W. Diemer (Vorsitz), Klaus Busch · Vorsitzender des Aufsichtsrates: Stephan Gemkow · Handelsregister: Amtsgericht Offenbach/Main, HRB 8119 -Original Message- From: mwessend...@gmail.com [mailto:mwessend...@gmail.com] On Behalf Of Matthias Wessendorf Sent: Thursday, January 21, 2010 1:07 PM To: MyFaces Discussion; edmond.mulemang...@uclouvain.be Subject: Re: problem using myfaces-core-2.0.0-SNAPSHOT + myfaces-orchestra20-1.5-SNAPSHOT ok, I asked as it looks like a myfaces2 bug.. On Thu, Jan 21, 2010 at 11:43 AM, Edmond B. Mulemangabo edmond.mulemang...@uclouvain.be wrote: On 01/21/2010 09:53 AM, Matthias Wessendorf wrote: Quick follow-up: Does it work with the RI/Mojarra ? I haven't given RI/Mojarra a try yet. I've never used RI/Mojarra; I hope I'll be able to set it up and give it a try. If so, do you mind to create a JIRA ticket against MyFaces2 ? -Matthias On Wed, Jan 20, 2010 at 11:29 PM, Edmond B. Mulemangabo edmond.mulemang...@uclouvain.be wrote: On 01/20/2010 11:46 AM, Matthias Wessendorf wrote: Hello Edmond, I see you are using Trinidad; Did you give the 2.0.0-alpha a try ? Yes I did. The demo package of Trinidad 2.0.0-alpha is working. The application that is failing is using Myfaces-2.0.0-alpha, Trinidad-2.0.0-alpha, Orchestra20.1-5, Spring 2.5, OpenJPA-1.2 , Tomahawk and Tomcat-6 regards. Edmond/ -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf twitter: http://twitter.com/mwessendorf
problem using myfaces-core-2.0.0-SNAPSHOT + myfaces-orchestra20-1.5-SNAPSHOT
hello ! I've been trying to switch to JSF2 using Myfaces-core-2.0.0 and myfaces-orchestra20-1.5 with Tomcat-6. I'm stuck. The PhaseListenerManager is throwing an NullPointer Exception. Below is the content of the stack. My application is executing successfully with Myfaces-core-1.2.8 and myfaces-orchestra15-1.0. Any help ? SEVERE: Exception sending context destroyed event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener java.lang.UnsupportedOperationException: This request class is an empty placeholder at org.apache.myfaces.application._SystemEventServletRequest$1.invoke(_SystemEventServletRequest.java:56) at $Proxy0.getHeader(Unknown Source) at javax.servlet.http.HttpServletRequestWrapper.getHeader(HttpServletRequestWrapper.java:80) at org.apache.myfaces.trinidadinternal.context.external.ServletRequestHeaderMap.getAttribute(ServletRequestHeaderMap.java:42) at org.apache.myfaces.trinidadinternal.context.external.ServletRequestHeaderMap.getAttribute(ServletRequestHeaderMap.java:30) at org.apache.myfaces.trinidadinternal.context.external.AbstractAttributeMap.get(AbstractAttributeMap.java:73) at org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.isAjaxRequest(CoreRenderKit.java:148) at org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.isPartialRequest(CoreRenderKit.java:163) at org.apache.myfaces.trinidadinternal.config.xmlHttp.XmlHttpConfigurator.getExternalContext(XmlHttpConfigurator.java:61) at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.getExternalContext(GlobalConfiguratorImpl.java:351) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.init(FacesContextFactoryImpl.java:90) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:68) at org.apache.myfaces.webapp.AbstractFacesInitializer.dispatchInitDestroyEvent(AbstractFacesInitializer.java:140) at org.apache.myfaces.webapp.AbstractFacesInitializer.destroyFaces(AbstractFacesInitializer.java:149) at org.apache.myfaces.webapp.StartupServletContextListener.contextDestroyed(StartupServletContextListener.java:211) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3882) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4523) at org.apache.catalina.manager.ManagerServlet.undeploy(ManagerServlet.java:1361) at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:381) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 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.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Jan 17, 2010 10:49:58 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet faces threw exception java.lang.NullPointerException at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:107) at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:152) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:88) at org.apache.myfaces.custom.ppr.PPRLifecycleWrapper.execute(PPRLifecycleWrapper.java:68) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
Re: problem using myfaces-core-2.0.0-SNAPSHOT + myfaces-orchestra20-1.5-SNAPSHOT
Hello Edmond, I see you are using Trinidad; Did you give the 2.0.0-alpha a try ? -Matthias On Mon, Jan 18, 2010 at 1:40 AM, Edmond B. Mulemangabo edmond.mulemang...@uclouvain.be wrote: hello ! I've been trying to switch to JSF2 using Myfaces-core-2.0.0 and myfaces-orchestra20-1.5 with Tomcat-6. I'm stuck. The PhaseListenerManager is throwing an NullPointer Exception. Below is the content of the stack. My application is executing successfully with Myfaces-core-1.2.8 and myfaces-orchestra15-1.0. Any help ? SEVERE: Exception sending context destroyed event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener java.lang.UnsupportedOperationException: This request class is an empty placeholder at org.apache.myfaces.application._SystemEventServletRequest$1.invoke(_SystemEventServletRequest.java:56) at $Proxy0.getHeader(Unknown Source) at javax.servlet.http.HttpServletRequestWrapper.getHeader(HttpServletRequestWrapper.java:80) at org.apache.myfaces.trinidadinternal.context.external.ServletRequestHeaderMap.getAttribute(ServletRequestHeaderMap.java:42) at org.apache.myfaces.trinidadinternal.context.external.ServletRequestHeaderMap.getAttribute(ServletRequestHeaderMap.java:30) at org.apache.myfaces.trinidadinternal.context.external.AbstractAttributeMap.get(AbstractAttributeMap.java:73) at org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.isAjaxRequest(CoreRenderKit.java:148) at org.apache.myfaces.trinidadinternal.renderkit.core.CoreRenderKit.isPartialRequest(CoreRenderKit.java:163) at org.apache.myfaces.trinidadinternal.config.xmlHttp.XmlHttpConfigurator.getExternalContext(XmlHttpConfigurator.java:61) at org.apache.myfaces.trinidadinternal.config.GlobalConfiguratorImpl.getExternalContext(GlobalConfiguratorImpl.java:351) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit.init(FacesContextFactoryImpl.java:90) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:68) at org.apache.myfaces.webapp.AbstractFacesInitializer.dispatchInitDestroyEvent(AbstractFacesInitializer.java:140) at org.apache.myfaces.webapp.AbstractFacesInitializer.destroyFaces(AbstractFacesInitializer.java:149) at org.apache.myfaces.webapp.StartupServletContextListener.contextDestroyed(StartupServletContextListener.java:211) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3882) at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4523) at org.apache.catalina.manager.ManagerServlet.undeploy(ManagerServlet.java:1361) at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:381) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 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.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Jan 17, 2010 10:49:58 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet faces threw exception java.lang.NullPointerException at org.apache.myfaces.lifecycle.PhaseListenerManager.informPhaseListenersAfter(PhaseListenerManager.java:107) at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:152) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:88) at org.apache.myfaces.custom.ppr.PPRLifecycleWrapper.execute(PPRLifecycleWrapper.java:68) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:189) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at