ICEfaces
  1. ICEfaces
  2. ICE-6959

IllegalArgumentException thrown for dataPaginator when modifying table records

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1, EE-2.0.0.GA, 2.0.2
    • Fix Version/s: 3.0.RC2, 3.0, EE-2.0.0.GA_P01
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All
    • Assignee Priority:
      P1
    • Workaround Exists:
      Yes
    • Workaround Description:
      Create a component binding to the dataPaginator. When clearing the rows/records in the table, set the paginator to the first page by calling the gotoFirstPage(); on the DataPaginator object.

      Description

      Issue scenario: A dataTable has the capability for a user to remove/add rows. If all table rows are removed and new data is entered in again. The dataPaginator associated with the table throws an IllegalArgumentException:

      java.lang.IllegalArgumentException: -5
              at javax.faces.component.UIData.setFirst(UIData.java:275)
              at com.icesoft.faces.component.datapaginator.DataPaginator.broadcast(DataPaginator.java:160)
              at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:794)
              at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1259)
              at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)
              at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
              at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:409)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
              at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:393)
              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.Http11AprProcessor.process(Http11AprProcessor.java:859)
              at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
              at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
              at java.lang.Thread.run(Thread.java:619)

        Activity

        Hide
        Arran Mccullough added a comment -

        Steps to reproduce issue on test case:

        • Load app, select page 2 on paginator.
        • Click Empty Table Button.
        • Click Fill Table Button.
        • Error is thrown in logs.
        Show
        Arran Mccullough added a comment - Steps to reproduce issue on test case: Load app, select page 2 on paginator. Click Empty Table Button. Click Fill Table Button. Error is thrown in logs.
        Hide
        Adnan Durrani added a comment - - edited

        Fixed:

        Command: Commit
        Modified: D:\work\development\head\svn\ossrepo\icefaces-ee\branches\icefaces-ee-2.0.0-dev\icefaces\compat\components\src\main\java\com\icesoft\faces\component\datapaginator\DataPaginatorRenderer.java
        Sending content: D:\work\development\head\svn\ossrepo\icefaces-ee\branches\icefaces-ee-2.0.0-dev\icefaces\compat\components\src\main\java\com\icesoft\faces\component\datapaginator\DataPaginatorRenderer.java
        Completed: At revision: 26937

        Show
        Adnan Durrani added a comment - - edited Fixed: Command: Commit Modified: D:\work\development\head\svn\ossrepo\icefaces-ee\branches\icefaces-ee-2.0.0-dev\icefaces\compat\components\src\main\java\com\icesoft\faces\component\datapaginator\DataPaginatorRenderer.java Sending content: D:\work\development\head\svn\ossrepo\icefaces-ee\branches\icefaces-ee-2.0.0-dev\icefaces\compat\components\src\main\java\com\icesoft\faces\component\datapaginator\DataPaginatorRenderer.java Completed: At revision: 26937

          People

          • Assignee:
            Adnan Durrani
            Reporter:
            Arran Mccullough
          • Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: