Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1064

The Datascroller causes a class cast exception in MyFaces 1.2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • None
    • None
    • Data Scroller
    • None
    • MyFaces 1.2 Tomcat 6, Tomahawk latest Trunk

    Description

      Following Error occurs in the examples when run via -Djsf=12 on a tomcat:

      java.lang.ClassCastException: java.lang.Long
      at javax.faces.component.UIData.getRows(UIData.java:975)
      at org.apache.myfaces.component.html.ext.HtmlDataTable.getRows(HtmlDataTable.java:756)
      at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeInnerHtml(HtmlTableRendererBase.java:217)
      at org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.encodeChildren(HtmlTableRendererBase.java:134)
      at org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer.encodeChildren(HtmlTableRenderer.java:185)
      at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:527)
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChild(RendererUtils.java:456)
      at org.apache.myfaces.shared_impl.renderkit.RendererUtils.renderChildren(RendererUtils.java:439)
      at org.apache.myfaces.shared_impl.renderkit.html.HtmlGroupRendererBase.encodeEnd(HtmlGroupRendererBase.java:89)
      at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:539)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:250)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:247)
      at javax.faces.component.UIComponent.encodeAll(UIComponent.java:247)
      at org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:308)
      at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
      at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
      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.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      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:104)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              werpu Werner Punz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: