myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthias Wessendorf <mat...@apache.org>
Subject Re: JSF 1.2 + MyFaces Trinidad + PrettyFaces yields NPE in Trinidad RenderKitDecorator.java - ideas?
Date Sat, 23 Jan 2010 10:03:48 GMT
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.aiken@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
twitter: http://twitter.com/mwessendorf

Mime
View raw message