Re: JSF 1.2 + MyFaces Trinidad + PrettyFaces yields NPE in Trinidad RenderKitDecorator.java - ideas?
Hello all -- I've done some more digging, and what I did find out is that apparently there is a change in Trinidad version 1.2.12 that causes this to fail. If I use Trinidad 1.2.12, that's when I get the errors. Version 1.2.11 works fine, version 1.2.8 works fine as well. I've tried this with the JSP view handler and the Facelets view handler with the same results. If anyone has any other ideas, I'd be happy to investigate further. Also, I'm not sure what the list's policy is on attachments, but I could attach a demo maven project pretty easily, if that is of interest. Thanks, Donn On Wed, Jan 20, 2010 at 8:45 PM, Donn Aiken donn.ai...@gmail.com wrote: Hello -- I'm trying to get PrettyFaces to work with the Sun JSF-RI and MyFaces Trinidad, but I'm having some difficulty. I've got this to work successfully in a demo environment without Trinidad, but it would be ideal if this would work with Trinidad. Environment setup: Java Runtime Environment: 1.5.0_21 Servlet Container: Tomcat 6.0.20 JSF Implementation: SUN JSF RI - 1.2_12-b01-FCS MyFaces Trinidad: 1.2.12 PrettyFaces: 1.2.6 View Handler: JSP Oberservations: 1. If the client accesses the demo page using a jsf url (ex. /demo/hello.jsf) things work as expected. 2. If the client accesses the demo page through a URL mapped by PrettyFaces without Trinidad configured and installed, things work as expected. (ex. /demo/hello - /demo/hello.jsf). 3. If the Trinidad is installed and configured, the client can access the jsf page and things work as expected. 4. If the client accesses the demo page through a URL mapped by PrettyFaces after Trinidad is installed and configured, a null pointer exception happens. Stack Trace: Jan 20, 2010 8:15:40 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet Faces Servlet threw exception java.lang.NullPointerException at org.apache.myfaces.trinidadinternal.renderkit.RenderKitDecorator.getRenderKit(RenderKitDecorator.java:119) at org.apache.myfaces.trinidadinternal.renderkit.RenderKitDecorator.getResponseStateManager(RenderKitDecorator.java:70) at com.sun.faces.renderkit.RenderKitUtils.getResponseStateManager(RenderKitUtils.java:239) at com.sun.faces.lifecycle.RestoreViewPhase.isPostback(RestoreViewPhase.java:261) at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:171) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:103) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) 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) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71) 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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:64) 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:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 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:293) at
Re: JSF 1.2 + MyFaces Trinidad + PrettyFaces yields NPE in Trinidad RenderKitDecorator.java - ideas?
Hello donn, looks like the problem is a bug in Trinidad 1.2.12. Do you mind checking if one of these issues could have introduced your bug ? https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12310661styleName=Htmlversion=12313651 Thanks! Matthias On Mon, Jan 25, 2010 at 3:02 PM, Donn Aiken donn.ai...@gmail.com wrote: Hello all -- I've done some more digging, and what I did find out is that apparently there is a change in Trinidad version 1.2.12 that causes this to fail. If I use Trinidad 1.2.12, that's when I get the errors. Version 1.2.11 works fine, version 1.2.8 works fine as well. I've tried this with the JSP view handler and the Facelets view handler with the same results. If anyone has any other ideas, I'd be happy to investigate further. Also, I'm not sure what the list's policy is on attachments, but I could attach a demo maven project pretty easily, if that is of interest. Thanks, Donn On Wed, Jan 20, 2010 at 8:45 PM, Donn Aiken donn.ai...@gmail.com wrote: Hello -- I'm trying to get PrettyFaces to work with the Sun JSF-RI and MyFaces Trinidad, but I'm having some difficulty. I've got this to work successfully in a demo environment without Trinidad, but it would be ideal if this would work with Trinidad. Environment setup: Java Runtime Environment: 1.5.0_21 Servlet Container: Tomcat 6.0.20 JSF Implementation: SUN JSF RI - 1.2_12-b01-FCS MyFaces Trinidad: 1.2.12 PrettyFaces: 1.2.6 View Handler: JSP Oberservations: 1. If the client accesses the demo page using a jsf url (ex. /demo/hello.jsf) things work as expected. 2. If the client accesses the demo page through a URL mapped by PrettyFaces without Trinidad configured and installed, things work as expected. (ex. /demo/hello - /demo/hello.jsf). 3. If the Trinidad is installed and configured, the client can access the jsf page and things work as expected. 4. If the client accesses the demo page through a URL mapped by PrettyFaces after Trinidad is installed and configured, a null pointer exception happens. Stack Trace: Jan 20, 2010 8:15:40 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet Faces Servlet threw exception java.lang.NullPointerException at org.apache.myfaces.trinidadinternal.renderkit.RenderKitDecorator.getRenderKit(RenderKitDecorator.java:119) at org.apache.myfaces.trinidadinternal.renderkit.RenderKitDecorator.getResponseStateManager(RenderKitDecorator.java:70) at com.sun.faces.renderkit.RenderKitUtils.getResponseStateManager(RenderKitUtils.java:239) at com.sun.faces.lifecycle.RestoreViewPhase.isPostback(RestoreViewPhase.java:261) at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:171) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:103) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) 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) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71) 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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:64) 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:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at
Re: JSF 1.2 + MyFaces Trinidad + PrettyFaces yields NPE in Trinidad RenderKitDecorator.java - ideas?
Hello Donn, do you have the Trinidad filter in place ? Is there an additional ViewHandler ? Would be nice if you could post some more info here. Thanks! Matthias On Thu, Jan 21, 2010 at 2:45 AM, Donn Aiken donn.ai...@gmail.com wrote: Hello -- I'm trying to get PrettyFaces to work with the Sun JSF-RI and MyFaces Trinidad, but I'm having some difficulty. I've got this to work successfully in a demo environment without Trinidad, but it would be ideal if this would work with Trinidad. Environment setup: Java Runtime Environment: 1.5.0_21 Servlet Container: Tomcat 6.0.20 JSF Implementation: SUN JSF RI - 1.2_12-b01-FCS MyFaces Trinidad: 1.2.12 PrettyFaces: 1.2.6 View Handler: JSP Oberservations: 1. If the client accesses the demo page using a jsf url (ex. /demo/hello.jsf) things work as expected. 2. If the client accesses the demo page through a URL mapped by PrettyFaces without Trinidad configured and installed, things work as expected. (ex. /demo/hello - /demo/hello.jsf). 3. If the Trinidad is installed and configured, the client can access the jsf page and things work as expected. 4. If the client accesses the demo page through a URL mapped by PrettyFaces after Trinidad is installed and configured, a null pointer exception happens. Stack Trace: Jan 20, 2010 8:15:40 PM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet Faces Servlet threw exception java.lang.NullPointerException at org.apache.myfaces.trinidadinternal.renderkit.RenderKitDecorator.getRenderKit(RenderKitDecorator.java:119) at org.apache.myfaces.trinidadinternal.renderkit.RenderKitDecorator.getResponseStateManager(RenderKitDecorator.java:70) at com.sun.faces.renderkit.RenderKitUtils.getResponseStateManager(RenderKitUtils.java:239) at com.sun.faces.lifecycle.RestoreViewPhase.isPostback(RestoreViewPhase.java:261) at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:171) at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100) at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:103) at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) 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) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:71) 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.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:64) 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:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) 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:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454) at java.lang.Thread.run(Unknown Source) Has anyone got this kind of configuration working? Thanks. Donn Aiken -- Matthias Wessendorf blog: http://matthiaswessendorf.wordpress.com/ sessions: http://www.slideshare.net/mwessendorf