java.lang.IllegalArgumentException: The number of columns in PdfPTable constructor must be greater than zero.

ICEsoft JIRA Issue Tracker | Carmen Cristurean | 5 years ago
  1. 0

    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)

    ICEsoft JIRA Issue Tracker | 5 years ago | Carmen Cristurean
    java.lang.IllegalArgumentException: The number of columns in PdfPTable constructor must be greater than zero.
  2. 0

    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)

    ICEsoft JIRA Issue Tracker | 5 years ago | Carmen Cristurean
    java.lang.IllegalArgumentException: The number of columns in PdfPTable constructor must be greater than zero.
  3. 0

    Lotus Notes web application on safari Browser

    Stack Overflow | 5 years ago | Himanshu.MarJAVA
    java.lang.IllegalArgumentException: Number of action buttons must be greater than zero
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The UI for Scheduled Tasks allows for configuring 'bad' settings that will inevitably cause the task to fail. In this case I {code} 2015-12-16 11:54:47,559-0800 ERROR [quartz-2-thread-19] *SYSTEM org.sonatype.nexus.repository.maven.tasks.PurgeMavenUnusedSnapshotsTask - Failed to run task 'Purge Unused Maven Snapshots from *' on repository 'maven-snapshots' java.lang.IllegalArgumentException: Number of days must be greater than zero at com.google.common.base.Preconditions.checkArgument(Preconditions.java:122) [com.google.guava:18.0.0] at org.sonatype.nexus.repository.maven.internal.PurgeUnusedSnapshotsFacetImpl.purgeUnusedSnapshots(PurgeUnusedSnapshotsFacetImpl.java:104) [na:na] at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39) [na:na] at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:267) [na:na] at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53) [na:na] at org.sonatype.nexus.repository.maven.tasks.PurgeMavenUnusedSnapshotsTask.execute(PurgeMavenUnusedSnapshotsTask.java:59) [na:na] at org.sonatype.nexus.repository.RepositoryTaskSupport.execute(RepositoryTaskSupport.java:56) [na:na] at org.sonatype.nexus.scheduling.TaskSupport.call(TaskSupport.java:89) [org.sonatype.nexus.scheduling:3.0.0.SNAPSHOT] at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.doExecute(QuartzTaskJob.java:137) [org.sonatype.nexus.quartz:3.0.0.SNAPSHOT] at org.sonatype.nexus.quartz.internal.task.QuartzTaskJob.execute(QuartzTaskJob.java:99) [org.sonatype.nexus.quartz:3.0.0.SNAPSHOT] at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [org.quartz-scheduler.quartz:2.2.2] at org.sonatype.nexus.thread.internal.MDCAwareRunnable.run(MDCAwareRunnable.java:40) [org.sonatype.nexus.thread:3.0.0.SNAPSHOT] at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) [org.apache.shiro.core:1.2.4] at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) [org.apache.shiro.core:1.2.4] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_66] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_66] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_66] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_66] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_66] {code} Reproduction, configure "Purge Unused Snapshots" with -1 Days(see screenshot). Saves no problem but errors on run.

    Sonatype JIRA | 12 months ago | Kelly Robinson
    java.lang.IllegalArgumentException: Number of days must be greater than zero
  6. 0

    Advapi32Util.registryGetValues() returns no results if the key contains an empty REG_BINARY value

    GitHub | 4 years ago | ghost
    java.lang.IllegalArgumentException: Allocation size must be greater than zero

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      The number of columns in PdfPTable constructor must be greater than zero.

      at com.lowagie.text.pdf.PdfPTable.<init>()
    2. iText-4.2.1
      PdfPTable.<init>
      1. com.lowagie.text.pdf.PdfPTable.<init>(Unknown Source)
      1 frame
    3. org.icefaces.ace
      DataExporter.broadcast
      1. org.icefaces.ace.component.dataexporter.PDFExporter.exportPDFTable(PDFExporter.java:108)
      2. org.icefaces.ace.component.dataexporter.PDFExporter.export(PDFExporter.java:77)
      3. org.icefaces.ace.component.dataexporter.DataExporter.broadcast(DataExporter.java:48)
      3 frames
    4. JavaEE 7
      UIViewRoot.processDecodes
      1. javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:759)
      2. javax.faces.component.UIViewRoot.processDecodes(UIViewRoot.java:935)
      2 frames
    5. JSF
      LifecycleImpl.execute
      1. com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
      2. com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
      3. com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
      3 frames
    6. JavaEE 7
      FacesServlet.service
      1. javax.faces.webapp.FacesServlet.service(FacesServlet.java:593)
      1 frame
    7. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:163)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:108)
      7. org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:556)
      8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:402)
      9 frames
    8. Grizzly HTTP
      JIoEndpoint$SocketProcessor.run
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:249)
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:267)
      3. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:245)
      4. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:260)
      4 frames
    9. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      3. java.lang.Thread.run(Thread.java:619)
      3 frames