5 Replies Latest reply on Mar 25, 2009 5:11 PM by Serhiy Zastavnyy

    PersistentList error

    Serhiy Zastavnyy Novice

      Hi

      May be it is not for this topic, but I need help.
      I use RF with Hibernate. I maaped ArrayList and successfully save it and load, but when I try to use List(ArrayList) for RF ExtendedDataTable as source I have exception.
      I am new to RF and to Hibernate, so please sorry my stupid question.

       [java] SEVERE: Error Rendering View[/view/portal.xhtml]
       [java] java.lang.IllegalArgumentException: Cannot convert [] of type class org.hibernate.collection.PersistentList to class java.u
      til.ArrayList
       [java] at org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:380)
       [java] at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:188)
       [java] at javax.faces.component.UIData.getValue(UIData.java:609)
       [java] at org.ajax4jsf.component.UIDataAdaptor.getValue(UIDataAdaptor.java:1644)
       [java] at org.ajax4jsf.component.SequenceDataAdaptor.getDataModel(SequenceDataAdaptor.java:65)
       [java] at org.richfaces.component.UIExtendedDataTable.resetDataModel(UIExtendedDataTable.java:390)
       [java] at org.ajax4jsf.component.UIDataAdaptor.beforeRenderResponse(UIDataAdaptor.java:1653)
       [java] at org.richfaces.component.UIExtendedDataTable.beforeRenderResponse(UIExtendedDataTable.java:412)
       [java] at org.ajax4jsf.component.RenderPhaseUIDataAdaptorVisitor.beforeComponent(RenderPhaseUIDataAdaptorVisitor.java:44)
       [java] at org.richfaces.event.RenderPhaseComponentListener.processComponents(RenderPhaseComponentListener.java:47)
       [java] at org.richfaces.event.RenderPhaseComponentListener.processComponents(RenderPhaseComponentListener.java:55)
       [java] at org.richfaces.event.RenderPhaseComponentListener.processComponents(RenderPhaseComponentListener.java:55)
       [java] at org.richfaces.event.RenderPhaseComponentListener.processComponents(RenderPhaseComponentListener.java:55)
       [java] at org.richfaces.event.RenderPhaseComponentListener.processComponents(RenderPhaseComponentListener.java:55)
       [java] at org.richfaces.event.RenderPhaseComponentListener.processComponents(RenderPhaseComponentListener.java:55)
       [java] at org.richfaces.event.RenderPhaseComponentListener.processComponents(RenderPhaseComponentListener.java:55)
       [java] at org.richfaces.event.RenderPhaseComponentListener.beforePhase(RenderPhaseComponentListener.java:71)
       [java] at org.ajax4jsf.component.AjaxViewRoot.processPhaseListeners(AjaxViewRoot.java:185)
       [java] at org.ajax4jsf.component.AjaxViewRoot.encodeBegin(AjaxViewRoot.java:502)
       [java] at javax.faces.component.UIComponent.encodeAll(UIComponent.java:934)
       [java] at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
       [java] at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
       [java] at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
       [java] at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
       [java] at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
       [java] at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
       [java] at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
       [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       [java] at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
       [java] at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
       [java] at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:390)
       [java] at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:517)
       [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       [java] at com.kyros.utils.security.CheckRequestFilter.doFilter(CheckRequestFilter.java:62)
       [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       [java] at com.kyros.utils.i18n.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:35)
       [java] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       [java] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       [java] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
       [java] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
       [java] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       [java] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
       [java] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       [java] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
       [java] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
       [java] at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
       [java] at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
       [java] at java.lang.Thread.run(Thread.java:595)
       [java] 25/3/2009 7:39:56 com.sun.faces.lifecycle.Phase doPhase
       [java] SEVERE: JSF1054: (Phase ID: RENDER_RESPONSE 6, View ID: /view/portal.xhtml) Exception thrown during phase execution: javax.
      faces.event.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@30c68b]
       [java] 25/3/2009 7:39:56 org.apache.catalina.core.StandardWrapperValve invoke
       [java] SEVERE: Servlet.service() for servlet Faces Servlet threw exception
       [java] java.lang.IllegalArgumentException: Cannot convert [] of type class org.hibernate.collection.PersistentList to class java.u
      til.ArrayList
       [java] at org.apache.el.lang.ELSupport.coerceToType(ELSupport.java:380)
       [java] at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:188)
       [java] at javax.faces.component.UIData.getValue(UIData.java:609)
       [java] at org.ajax4jsf.component.UIDataAdaptor.getValue(UIDataAdaptor.java:1644)