java.lang.ArrayIndexOutOfBoundsException: 24

ZK-Tracker | hawk | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    h3. Reproducing Steps: # open {{zss.test\export.zul}} # click "generate and insert chart" button to insert charts # click "Export PDF" button *Actual:* popup a error message >> "24" {quote} java.lang.ArrayIndexOutOfBoundsException: 24 at org.zkoss.zss.model.impl.pdf.PdfExporter.layoutCharts(PdfExporter.java:1023) at org.zkoss.zss.model.impl.pdf.PdfExporter.access$16(PdfExporter.java:982) at org.zkoss.zss.model.impl.pdf.PdfExporter$PdfHeaderFooter.onEndPage(PdfExporter.java:1612) at com.lowagie.text.pdf.PdfDocument.newPage(Unknown Source) at com.lowagie.text.Document.newPage(Unknown Source) at org.zkoss.zss.model.impl.pdf.PdfExporter.printColumns(PdfExporter.java:580) at org.zkoss.zss.model.impl.pdf.PdfExporter.exportSheet(PdfExporter.java:301) at org.zkoss.zss.model.impl.pdf.PdfExporter.export(PdfExporter.java:181) at org.zkoss.zss.api.impl.ExporterImpl.export(ExporterImpl.java:49) at zss.testapp.ExportComposer.toPdf(ExportComposer.java:210) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.zkoss.zk.ui.select.Selectors$ComposerEventListener.onEvent(Selectors.java:681) at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2746) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2717) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2658) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1765) at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1550) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1260) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:603) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:485) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:494) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) {quote}

    ZK-Tracker | 3 years ago | hawk
    java.lang.ArrayIndexOutOfBoundsException: 24
  2. 0

    h3. Reproducing Steps: # open {{zss.test\export.zul}} # click "generate and insert chart" button to insert charts # click "Export PDF" button *Actual:* popup a error message >> "24" {quote} java.lang.ArrayIndexOutOfBoundsException: 24 at org.zkoss.zss.model.impl.pdf.PdfExporter.layoutCharts(PdfExporter.java:1023) at org.zkoss.zss.model.impl.pdf.PdfExporter.access$16(PdfExporter.java:982) at org.zkoss.zss.model.impl.pdf.PdfExporter$PdfHeaderFooter.onEndPage(PdfExporter.java:1612) at com.lowagie.text.pdf.PdfDocument.newPage(Unknown Source) at com.lowagie.text.Document.newPage(Unknown Source) at org.zkoss.zss.model.impl.pdf.PdfExporter.printColumns(PdfExporter.java:580) at org.zkoss.zss.model.impl.pdf.PdfExporter.exportSheet(PdfExporter.java:301) at org.zkoss.zss.model.impl.pdf.PdfExporter.export(PdfExporter.java:181) at org.zkoss.zss.api.impl.ExporterImpl.export(ExporterImpl.java:49) at zss.testapp.ExportComposer.toPdf(ExportComposer.java:210) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.zkoss.zk.ui.select.Selectors$ComposerEventListener.onEvent(Selectors.java:681) at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2746) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2717) at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2658) at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136) at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1765) at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1550) at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1260) at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:603) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:485) at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:494) at javax.servlet.http.HttpServlet.service(HttpServlet.java:755) {quote}

    ZK-Tracker | 3 years ago | hawk
    java.lang.ArrayIndexOutOfBoundsException: 24

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      24

      at org.zkoss.zss.model.impl.pdf.PdfExporter.layoutCharts()
    2. org.zkoss.zss
      PdfExporter$PdfHeaderFooter.onEndPage
      1. org.zkoss.zss.model.impl.pdf.PdfExporter.layoutCharts(PdfExporter.java:1023)
      2. org.zkoss.zss.model.impl.pdf.PdfExporter.access$16(PdfExporter.java:982)
      3. org.zkoss.zss.model.impl.pdf.PdfExporter$PdfHeaderFooter.onEndPage(PdfExporter.java:1612)
      3 frames
    3. iText-4.2.1
      Document.newPage
      1. com.lowagie.text.pdf.PdfDocument.newPage(Unknown Source)
      2. com.lowagie.text.Document.newPage(Unknown Source)
      2 frames
    4. org.zkoss.zss
      ExporterImpl.export
      1. org.zkoss.zss.model.impl.pdf.PdfExporter.printColumns(PdfExporter.java:580)
      2. org.zkoss.zss.model.impl.pdf.PdfExporter.exportSheet(PdfExporter.java:301)
      3. org.zkoss.zss.model.impl.pdf.PdfExporter.export(PdfExporter.java:181)
      4. org.zkoss.zss.api.impl.ExporterImpl.export(ExporterImpl.java:49)
      4 frames
    5. zss.testapp
      ExportComposer.toPdf
      1. zss.testapp.ExportComposer.toPdf(ExportComposer.java:210)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    7. ZK Kernel
      DHtmlUpdateServlet.doPost
      1. org.zkoss.zk.ui.select.Selectors$ComposerEventListener.onEvent(Selectors.java:681)
      2. org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2746)
      3. org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2717)
      4. org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2658)
      5. org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)
      6. org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1765)
      7. org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1550)
      8. org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1260)
      9. org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:603)
      10. org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:485)
      11. org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:494)
      11 frames
    8. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
      1 frame