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

        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.
        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: