ICEfaces
  1. ICEfaces
  2. ICE-7301

ace:dataTable/dataExporter - NPE when exporting table using column filtering and pagination

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1-Beta
    • Fix Version/s: 2.1-Beta2, 3.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      ICEfaces-2.1.0-BETA-10022011
    • Assignee Priority:
      P1

      Description

      A NullPointerException is thrown when exporting a dataTable that uses column filtering and a paginator. Can be reproduce in the comps-suite by adding the dataExporter to the dataTable.xhtml page. Exception stack trace:

      java.lang.NullPointerException
      at org.icefaces.ace.component.datatable.DataTableRenderer.decodeFilters(DataTableRenderer.java:208)
      at org.icefaces.ace.component.datatable.DataTableRenderer.decode(DataTableRenderer.java:66)
      at javax.faces.component.UIComponentBase.decode(UIComponentBase.java:787)
      at javax.faces.component.UIData.processDecodes(UIData.java:1162)
      at org.icefaces.ace.component.datatable.DataTable.processDecodes(DataTable.java:501)
      at javax.faces.component.UIForm.processDecodes(UIForm.java:225)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
      at javax.faces.component.UIComponentBase.processDecodes(UIComponentBase.java:1176)
      at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:933)
      at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
      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:593)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:562)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:395)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:250)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:188)
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

        Activity

        Arran Mccullough created issue -
        Arran Mccullough made changes -
        Field Original Value New Value
        Attachment Case10553Example.war [ 13603 ]
        Arran Mccullough made changes -
        Attachment Case10553Example.zip [ 13604 ]
        Arran Mccullough made changes -
        Salesforce Case [5007000000JL2DC]
        Hide
        Arran Mccullough added a comment -

        If I remove the paginator reference in the dataTable component or the filtering the export works fine.

        Show
        Arran Mccullough added a comment - If I remove the paginator reference in the dataTable component or the filtering the export works fine.
        Arran Mccullough made changes -
        Assignee Ken Fyten [ ken.fyten ]
        Ken Fyten made changes -
        Fix Version/s 2.1 [ 10241 ]
        Assignee Priority P1
        Assignee Ken Fyten [ ken.fyten ] Nils Lundquist [ nils.lundquist ]
        Hide
        Nils Lundquist added a comment -

        Added NPE check. JSON callback param, normally need during pagination + filter requests, is not needed during export.

        Show
        Nils Lundquist added a comment - Added NPE check. JSON callback param, normally need during pagination + filter requests, is not needed during export.
        Nils Lundquist made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        Fix Version/s 2.1-Beta2 [ 10294 ]
        Ken Fyten made changes -
        Security Private [ 10001 ]
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Nils Lundquist
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: