You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Gabrielle Crawford (JIRA)" <de...@myfaces.apache.org> on 2009/11/11 01:51:27 UTC

[jira] Commented: (TRINIDAD-1632) Trinidad 2 - exception thrown when partial state saving turned on

    [ https://issues.apache.org/jira/browse/TRINIDAD-1632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12776199#action_12776199 ] 

Gabrielle Crawford commented on TRINIDAD-1632:
----------------------------------------------

What's happening

First render:
- UIViewRoot.setRenderKitId - id is stored in the properties
- markInitialState called for UIViewRoot, so the id won't be state saved

postback:
- neither UIViewRoot.setRenderKitId or markInitialState called, so there's no renderKitId on the viewRoot
- UIViewRoot.getRenderKitId called, it tries to look up the renderKitId in the properties map, but it's not there, so returns null


> Trinidad 2 - exception thrown when partial state saving turned on
> -----------------------------------------------------------------
>
>                 Key: TRINIDAD-1632
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1632
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>          Components: Components
>    Affects Versions: 2.0.0-core
>            Reporter: Gabrielle Crawford
>            Assignee: Gabrielle Crawford
>
> Set the following values in web.xml 
>   <context-param>
>     <param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
>     <param-value>true</param-value>
>   </context-param>
>  <context-param>
>     <param-name>org.apache.myfaces.trinidad.CHANGE_PERSISTENCE</param-name>
>     <param-value>org.apache.myfaces.trinidad.change.NullChangeManager</param-value>
>   </context-param>
>   
>     <context-param>
>       <param-name>org.apache.myfaces.trinidad.CACHE_VIEW_ROOT</param-name>
>       <param-value>false</param-value>
>     </context-param>   
>   <context-param>
>     <param-name>javax.faces.FACELETS_VIEW_MAPPINGS</param-name>
>     <param-value>*.xhtml;*.jspx</param-value>
>   </context-param>     
> Now render a page, initially it renders fine, but when you try to interact with the page, like click a command component, you get an exception
> java.lang.NullPointerException
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase._getRendererImpl(UIXComponentBase.java:1145)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase._getLifecycleRendererImpl(UIXComponentBase.java:1159)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.getLifecycleRenderer(UIXComponentBase.java:1184)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:978)
> 	at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:799)
> 	at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1042)
> 	at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:940)
> 	at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
> 	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
> 	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
> 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:310)
> 	at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
> 	at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
> 	at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
> 	at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
> 	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
> 	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 weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
> 	at org.apache.myfaces.trinidaddemo.webapp.RedirectFilter.doFilter(RedirectFilter.java:97)
> 	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
> 	at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:325)
> 	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
> 	at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
> 	at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
> 	at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
> 	at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
> 	at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
> 	at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
> 	at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
> 	at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
> 	at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
> 	at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.