myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Byrne" <den...@dbyrne.net>
Subject Re: getRenderKitId exception
Date Fri, 29 Sep 2006 01:56:56 GMT
The stack trace suggests this is not happending when you call UIViewRoot.getRenderKitId().

Is this code from Nico in the MyFaces repository?

Dennis Byrne

>-----Original Message-----
>From: fischman_98 [mailto:mfischer@powerconsultantsinc.com]
>Sent: Thursday, September 28, 2006 09:36 PM
>To: users@myfaces.apache.org
>Subject: getRenderKitId exception
>
>
>I'm getting an exception (see below) when calling
>uiViewRoot.getRenderKitId().  I've started reading about renderers with
>custom components, but I'm not doing anything special here...
>
>Anyone know how to solve this?
>
>BTW - I'm using this from excellent code provide by Nico Krijnen Mar 14,
>2006; 09:58am...
>http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
>http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984

>
>if (uiViewRoot.getRenderKitId() == null) {
>            // Just to be sure...
>            // uiViewRoot.setRenderKitId(renderKitId);
>        	System.out.println("4.2");
>        	throw new RuntimeException("FIX ME IF THIS HAPPENS");
>}
>
>java.lang.RuntimeException: FIX ME IF THIS HAPPENS
>	at
>com.ngsimages.history.ViewState.restoreComponentState(ViewState.java:151)
>	at com.ngsimages.history.ViewState.restoreView(ViewState.java:94)
>	at com.ngsimages.history.ViewState.restore(ViewState.java:57)
>	at
>com.ngsimages.security.AuthenticationBean.login(AuthenticationBean.java:135)
>	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>	at java.lang.reflect.Method.invoke(Unknown Source)
>	at
>org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
>	at
>org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
>	at javax.faces.component.UICommand.broadcast(UICommand.java:106)
>	at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
>	at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
>	at
>org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
>	at
>org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
>	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
>	at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>	at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>	at
>org.hibernate.com.ngsimages.persistence.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:40)
>	at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
>	at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>	at
>org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
>	at
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
>	at
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>	at
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>	at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>	at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>	at
>org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>	at
>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>	at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>	at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>	at
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>	at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>	at
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
>	at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
>	at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>	at
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>	at
>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>	at
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>	at
>org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
>	at
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
>	at
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
>	at
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
>	at java.lang.Thread.run(Unknown Source)
>
>-- 
>View this message in context: http://www.nabble.com/getRenderKitId-exception-tf2354536.html#a6558041
>Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



Mime
View raw message