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

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Attachment Case10207Example.war [ 13306 ]
        Arran Mccullough made changes -
        Salesforce Case [5007000000GwGcI]
        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.
        Ken Fyten made changes -
        Summary IllegalArgumentException thrown for dataPaginator when modifyling table records IllegalArgumentException thrown for dataPaginator when modifying table records
        Ken Fyten made changes -
        Fix Version/s EE-2.0.0.GA_P01 [ 10271 ]
        Fix Version/s 2.1 [ 10241 ]
        Arran Mccullough made changes -
        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.
        Workaround Exists [Yes]
        Tyler Johnson made changes -
        Salesforce Case [5007000000GwGcI] [5007000000GwGcI, 5007000000JLDhb]
        Ken Fyten made changes -
        Assignee Priority P2
        Assignee Adnan Durrani [ adnan.durrani ]
        Ken Fyten made changes -
        Assignee Priority P2 P1
        Adnan Durrani made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        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
        Adnan Durrani made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 3.0.RC2 [ 10313 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved: