Link to home
Create AccountLog in
Avatar of haneef_nb
haneef_nb

asked on

Exception in JSF application?

Dear Experts,

i am developing a JSF application, i have written a <rich:calendar> tag , i am getting the following exception.

the included jars listed below, please check this issue, and please do needful.



SEVERE: An exception occurred
javax.faces.FacesException: Exception while calling encodeEnd on component : {Component-Path : [Class: org.ajax4jsf.component.AjaxViewRoot,ViewId: /loaditems.jsp][Class: javax.faces.component.html.HtmlForm,Id: j_id_jsp_1313910313_1][Class: javax.faces.component.html.HtmlPanelGroup,Id: j_id_jsp_1313910313_2]}
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:652)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:261)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:257)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:257)
      at org.apache.myfaces.application.jsp.JspViewHandlerImpl.actuallyRenderView(JspViewHandlerImpl.java:427)
      at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:383)
      at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
      at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
      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:187)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
      at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
      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:127)
      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:298)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
      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: /loaditems.jsp][Class: javax.faces.component.html.HtmlForm,Id: j_id_jsp_1313910313_1][Class: javax.faces.component.html.HtmlPanelGroup,Id: j_id_jsp_1313910313_2][Class: org.richfaces.component.html.HtmlCalendar,Id: COMP_1_CAL]}
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:652)
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:534)
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(RendererUtils.java:511)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:92)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:649)
      ... 26 more
Caused by: javax.faces.convert.ConverterException: j_id_jsp_1313910313_1:COMP_1_CAL: 'ITEMS_LOAD_ACTION.ITEMS_LOAD_BEAN.UI_FM_DATE' could not be understood as a date.
      at javax.faces.convert.DateTimeConverter.getAsObject(DateTimeConverter.java:114)
      at org.richfaces.component.UICalendar.getAsDate(UICalendar.java:310)
      at org.richfaces.renderkit.CalendarRendererBase.getInputValue(CalendarRendererBase.java:358)
      at org.richfaces.renderkit.html.CalendarRenderer.doEncodeEnd(CalendarRenderer.java:269)
      at org.richfaces.renderkit.html.CalendarRenderer.doEncodeEnd(CalendarRenderer.java:457)
      at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:135)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:649)
      ... 30 more User generated image
ASKER CERTIFIED SOLUTION
Avatar of ramazanyich
ramazanyich
Flag of Belgium image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of haneef_nb
haneef_nb

ASKER

Thanks