What does your code / jsp page look like?
-Richard
Markus Mehrwald wrote:
Hello,
I have just migrated from Suns implementation to MyFaces. Everything
seems fine except of the inputHtml component. If it should be rendered
I always get the following exception(s):
javax.faces.FacesException: Exception while calling encodeEnd on
component : {Component-Path : [Class:
org.ajax4jsf.component.AjaxViewRoot,ViewId:
/public/leaseMain.jsp][Class:
javax.faces.component.UINamingContainer,Id: loggedId][Class:
javax.faces.component.UINamingContainer,Id: subdesc][Class:
javax.faces.component.html.HtmlForm,Id: j_id_jsp_331845884_0][Class:
org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id:
j_id_jsp_331845884_1]}
at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:610)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:250)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:246)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:246)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:246)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:246)
at
org.apache.myfaces.application.jsp.JspViewHandlerImpl.actuallyRenderView(JspViewHandlerImpl.java:424)
at
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:380)
at
org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
at
org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:189)
at
org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:508)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:154)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:260)
at
org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:366)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:493)
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:175)
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:263)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: javax.faces.FacesException: Exception while calling
encodeEnd on component : {Component-Path : [Class:
org.ajax4jsf.component.AjaxViewRoot,ViewId:
/public/leaseMain.jsp][Class:
javax.faces.component.UINamingContainer,Id: loggedId][Class:
javax.faces.component.UINamingContainer,Id: subdesc][Class:
javax.faces.component.html.HtmlForm,Id: j_id_jsp_331845884_0][Class:
org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id:
j_id_jsp_331845884_1][Class:
org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id:
j_id_jsp_331845884_13]}
at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:610)
at
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:419)
at
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:229)
at
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:101)
at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:607)
... 36 more
Caused by: javax.faces.FacesException: Exception while calling
encodeEnd on component : {Component-Path : [Class:
org.ajax4jsf.component.AjaxViewRoot,ViewId:
/public/leaseMain.jsp][Class:
javax.faces.component.UINamingContainer,Id: loggedId][Class:
javax.faces.component.UINamingContainer,Id: subdesc][Class:
javax.faces.component.html.HtmlForm,Id: j_id_jsp_331845884_0][Class:
org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id:
j_id_jsp_331845884_1][Class:
org.apache.myfaces.component.html.ext.HtmlPanelGrid,Id:
j_id_jsp_331845884_13][Class:
org.apache.myfaces.custom.inputHtml.InputHtml,Id: articleDescription]}
at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:610)
at
org.apache.myfaces.shared_tomahawk.renderkit.RendererUtils.renderChild(RendererUtils.java:419)
at
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.renderChildren(HtmlGridRendererBase.java:229)
at
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlGridRendererBase.encodeEnd(HtmlGridRendererBase.java:101)
at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:607)
... 40 more
Caused by: java.lang.ClassCastException: java.lang.Class cannot be
cast to java.lang.String
at
org.apache.myfaces.util.AbstractAttributeMap.put(AbstractAttributeMap.java:35)
at
org.apache.myfaces.custom.inputHtml.InputHtmlRenderer.setThisPageAlreadyRenderedAnInputHtml(InputHtmlRenderer.java:107)
at
org.apache.myfaces.custom.inputHtml.InputHtmlRenderer.encodeEnd(InputHtmlRenderer.java:93)
at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:607)
... 44 more
Can anyone tell me whats wrong please?
Thanks in advance,
Markus