Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.1-Beta2
-
Component/s: ACE-Components
-
Labels:None
-
Environment:Grimlock code rev# 26238
Server: Tomcat 6/7
All browsers (IE7/8, Firefox 3.6/6, Chrome 15)
-
Assignee Priority:P1
Description
This issue can be reproduced in comp-suite application:
1. Load the comp-suite application and navigate to Data Exporter -> Specify Columns page:
http://localhost:8080/comp-suite/showcase.jsf?grp=aceMenu&exp=dataExporterColumns
2. Check all the check boxes to exclude all columns of the data table.
3. Select Export File Type as 'PDF', and click on Export File button.
4. A Server Internal Error message occurs, and an error is thrown in the server log:
Nov 4, 2011 12:51:23 PM com.sun.faces.lifecycle.ApplyRequestValuesPhase execute
WARNING: The number of columns in PdfPTable constructor must be greater than zero.
java.lang.IllegalArgumentException: The number of columns in PdfPTable constructor must be greater than zero.
at com.lowagie.text.pdf.PdfPTable.<init>(Unknown Source)
at org.icefaces.ace.component.dataexporter.PDFExporter.exportPDFTable(PDFExporter.java:108)
at org.icefaces.ace.component.dataexporter.PDFExporter.export(PDFExporter.java:77)
at org.icefaces.ace.component.dataexporter.DataExporter.broadcast(DataExporter.java:48)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:759)
at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:935)
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:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:163)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:556)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:402)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:249)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:267)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:245)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:260)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
1. Load the comp-suite application and navigate to Data Exporter -> Specify Columns page:
http://localhost:8080/comp-suite/showcase.jsf?grp=aceMenu&exp=dataExporterColumns
2. Check all the check boxes to exclude all columns of the data table.
3. Select Export File Type as 'PDF', and click on Export File button.
4. A Server Internal Error message occurs, and an error is thrown in the server log:
Nov 4, 2011 12:51:23 PM com.sun.faces.lifecycle.ApplyRequestValuesPhase execute
WARNING: The number of columns in PdfPTable constructor must be greater than zero.
java.lang.IllegalArgumentException: The number of columns in PdfPTable constructor must be greater than zero.
at com.lowagie.text.pdf.PdfPTable.<init>(Unknown Source)
at org.icefaces.ace.component.dataexporter.PDFExporter.exportPDFTable(PDFExporter.java:108)
at org.icefaces.ace.component.dataexporter.PDFExporter.export(PDFExporter.java:77)
at org.icefaces.ace.component.dataexporter.DataExporter.broadcast(DataExporter.java:48)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:759)
at javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:935)
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:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:163)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:556)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:402)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:249)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:267)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:245)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:260)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Activity
Carmen Cristurean
created issue -
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27028 | Wed Dec 21 15:59:44 MST 2011 | art.zambrano | |
Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataExporter/DataExporterColumns.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27030 | Wed Dec 21 16:19:50 MST 2011 | art.zambrano | |
Files Changed | ||||
MODIFY
/icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/dataexporter/PDFExporter.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27031 | Wed Dec 21 16:29:38 MST 2011 | ken.fyten | |
Files Changed | ||||
MODIFY
/icefaces3/tags/icefaces-3.0.0.RC2/icefaces/samples/showcase/showcase/src/main/java/org/icefaces/samples/showcase/example/ace/dataExporter/DataExporterColumns.java
|
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #27032 | Wed Dec 21 16:29:57 MST 2011 | ken.fyten | |
Files Changed | ||||
MODIFY
/icefaces3/tags/icefaces-3.0.0.RC2/icefaces/ace/component/src/org/icefaces/ace/component/dataexporter/PDFExporter.java
|
Ken Fyten
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [] | |
Fix Version/s | 3.0 [ 10241 ] | |
Fix Version/s | 3.0.RC2 [ 10313 ] | |
Assignee Priority | P1 | |
Assignee | Arturo Zambrano [ artzambrano ] |
Arturo Zambrano
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Security | Private [ 10001 ] |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Fixed at revision 27030. A blank .pdf file will be generated when there are no columns to export.