[ https://issues.apache.org/jira/browse/PDFBOX-1516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13577411#comment-13577411 ]
Avinash commented on PDFBOX-1516: --------------------------------- I am using the most trunk version of PDFBOX I am using PDFBox 1.7.1 and i still get the same error > PDFPagePanel not Working > ------------------------ > > Key: PDFBOX-1516 > URL: https://issues.apache.org/jira/browse/PDFBOX-1516 > Project: PDFBox > Issue Type: Bug > Reporter: Avinash > > When i run this code i get a long list of exception and i dont know why. > try{ > > PDDocument pd=PDDocument.load(new > File("Data/BookShelf/AVI/DEFAULT/apa_editorial_style.pdf")); > List allPages = pd.getDocumentCatalog().getAllPages(); > System.out.println("Number of Pages :"+pd.getNumberOfPages()); > PDFPagePanel p=new PDFPagePanel(); > PDPage firstPage = null; > if(allPages.size()>0){ > firstPage = (PDPage)allPages.get(0); > p.setPage(firstPage); > read.add(p); // read is a JPanel > jScrollPane1.setViewportView(p); > pd.close(); > } > } > catch(Exception ex){ > ex.printStackTrace(); > } > Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: > Index: 12, Size: 0 > at java.util.ArrayList.rangeCheck(ArrayList.java:604) > at java.util.ArrayList.get(ArrayList.java:382) > at > org.apache.pdfbox.io.RandomAccessBuffer.seek(RandomAccessBuffer.java:84) > at > org.apache.pdfbox.io.RandomAccessFileInputStream.read(RandomAccessFileInputStream.java:96) > at java.io.BufferedInputStream.read1(BufferedInputStream.java:273) > at java.io.BufferedInputStream.read(BufferedInputStream.java:334) > at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) > at java.io.BufferedInputStream.read(BufferedInputStream.java:254) > at java.io.FilterInputStream.read(FilterInputStream.java:83) > at java.io.PushbackInputStream.read(PushbackInputStream.java:139) > at > org.apache.pdfbox.io.PushBackInputStream.read(PushBackInputStream.java:91) > at > org.apache.pdfbox.pdfparser.BaseParser.skipSpaces(BaseParser.java:1547) > at > org.apache.pdfbox.pdfparser.PDFStreamParser.parseNextToken(PDFStreamParser.java:230) > at > org.apache.pdfbox.pdfparser.PDFStreamParser.access$000(PDFStreamParser.java:46) > at > org.apache.pdfbox.pdfparser.PDFStreamParser$1.tryNext(PDFStreamParser.java:182) > at > org.apache.pdfbox.pdfparser.PDFStreamParser$1.hasNext(PDFStreamParser.java:194) > at > org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:257) > at > org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:237) > at > org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:217) > at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:119) > at org.apache.pdfbox.pdfviewer.PDFPagePanel.paint(PDFPagePanel.java:98) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JViewport.paint(JViewport.java:731) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JLayeredPane.paint(JLayeredPane.java:585) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paintToOffscreen(JComponent.java:5228) > at > javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1482) > at > javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1413) > at javax.swing.RepaintManager.paint(RepaintManager.java:1206) > at javax.swing.JComponent.paint(JComponent.java:1040) > at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39) > at > sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:78) > at > sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:115) > at java.awt.Container.paint(Container.java:1967) > at java.awt.Window.paint(Window.java:3877) > at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:781) > at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:728) > at > javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:677) > at javax.swing.RepaintManager.access$700(RepaintManager.java:59) > at > javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1621) > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) > at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721) > at java.awt.EventQueue.access$200(EventQueue.java:103) > at java.awt.EventQueue$3.run(EventQueue.java:682) > at java.awt.EventQueue$3.run(EventQueue.java:680) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:691) > at > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244) > at > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163) > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:97) > Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: > Index: 12, Size: 0 > at java.util.ArrayList.rangeCheck(ArrayList.java:604) > at java.util.ArrayList.get(ArrayList.java:382) > at > org.apache.pdfbox.io.RandomAccessBuffer.seek(RandomAccessBuffer.java:84) > at > org.apache.pdfbox.io.RandomAccessFileInputStream.read(RandomAccessFileInputStream.java:96) > at java.io.BufferedInputStream.read1(BufferedInputStream.java:273) > at java.io.BufferedInputStream.read(BufferedInputStream.java:334) > at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) > at java.io.BufferedInputStream.read(BufferedInputStream.java:254) > at java.io.FilterInputStream.read(FilterInputStream.java:83) > at java.io.PushbackInputStream.read(PushbackInputStream.java:139) > at > org.apache.pdfbox.io.PushBackInputStream.read(PushBackInputStream.java:91) > at > org.apache.pdfbox.pdfparser.BaseParser.skipSpaces(BaseParser.java:1547) > at > org.apache.pdfbox.pdfparser.PDFStreamParser.parseNextToken(PDFStreamParser.java:230) > at > org.apache.pdfbox.pdfparser.PDFStreamParser.access$000(PDFStreamParser.java:46) > at > org.apache.pdfbox.pdfparser.PDFStreamParser$1.tryNext(PDFStreamParser.java:182) > at > org.apache.pdfbox.pdfparser.PDFStreamParser$1.hasNext(PDFStreamParser.java:194) > at > org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:257) > at > org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:237) > at > org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:217) > at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:119) > at org.apache.pdfbox.pdfviewer.PDFPagePanel.paint(PDFPagePanel.java:98) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JViewport.paint(JViewport.java:731) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JLayeredPane.paint(JLayeredPane.java:585) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paintToOffscreen(JComponent.java:5228) > at > javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1482) > at > javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1413) > at javax.swing.RepaintManager.paint(RepaintManager.java:1206) > at javax.swing.JComponent.paint(JComponent.java:1040) > at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39) > at > sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:78) > at > sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:115) > at java.awt.Container.paint(Container.java:1967) > at java.awt.Window.paint(Window.java:3877) > at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:781) > at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:728) > at > javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:677) > at javax.swing.RepaintManager.access$700(RepaintManager.java:59) > at > javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1621) > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) > at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721) > at java.awt.EventQueue.access$200(EventQueue.java:103) > at java.awt.EventQueue$3.run(EventQueue.java:682) > at java.awt.EventQueue$3.run(EventQueue.java:680) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:691) > at > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244) > at > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163) > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:97) > Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: > Index: 12, Size: 0 > at java.util.ArrayList.rangeCheck(ArrayList.java:604) > at java.util.ArrayList.get(ArrayList.java:382) > at > org.apache.pdfbox.io.RandomAccessBuffer.seek(RandomAccessBuffer.java:84) > at > org.apache.pdfbox.io.RandomAccessFileInputStream.read(RandomAccessFileInputStream.java:96) > at java.io.BufferedInputStream.read1(BufferedInputStream.java:273) > at java.io.BufferedInputStream.read(BufferedInputStream.java:334) > at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) > at java.io.BufferedInputStream.read(BufferedInputStream.java:254) > at java.io.FilterInputStream.read(FilterInputStream.java:83) > at java.io.PushbackInputStream.read(PushbackInputStream.java:139) > at > org.apache.pdfbox.io.PushBackInputStream.read(PushBackInputStream.java:91) > at > org.apache.pdfbox.pdfparser.BaseParser.skipSpaces(BaseParser.java:1547) > at > org.apache.pdfbox.pdfparser.PDFStreamParser.parseNextToken(PDFStreamParser.java:230) > at > org.apache.pdfbox.pdfparser.PDFStreamParser.access$000(PDFStreamParser.java:46) > at > org.apache.pdfbox.pdfparser.PDFStreamParser$1.tryNext(PDFStreamParser.java:182) > at > org.apache.pdfbox.pdfparser.PDFStreamParser$1.hasNext(PDFStreamParser.java:194) > at > org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:257) > at > org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:237) > at > org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:217) > at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:119) > at org.apache.pdfbox.pdfviewer.PDFPagePanel.paint(PDFPagePanel.java:98) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JViewport.paint(JViewport.java:731) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JLayeredPane.paint(JLayeredPane.java:585) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paintToOffscreen(JComponent.java:5228) > at > javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1482) > at > javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1413) > at javax.swing.RepaintManager.paint(RepaintManager.java:1206) > at javax.swing.JComponent.paint(JComponent.java:1040) > at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39) > at > sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:78) > at > sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:115) > at java.awt.Container.paint(Container.java:1967) > at java.awt.Window.paint(Window.java:3877) > at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:781) > at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:728) > at > javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:677) > at javax.swing.RepaintManager.access$700(RepaintManager.java:59) > at > javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1621) > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) > at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721) > at java.awt.EventQueue.access$200(EventQueue.java:103) > at java.awt.EventQueue$3.run(EventQueue.java:682) > at java.awt.EventQueue$3.run(EventQueue.java:680) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:691) > at > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244) > at > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163) > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:97) > Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: > Index: 12, Size: 0 > at java.util.ArrayList.rangeCheck(ArrayList.java:604) > at java.util.ArrayList.get(ArrayList.java:382) > at > org.apache.pdfbox.io.RandomAccessBuffer.seek(RandomAccessBuffer.java:84) > at > org.apache.pdfbox.io.RandomAccessFileInputStream.read(RandomAccessFileInputStream.java:96) > at java.io.BufferedInputStream.read1(BufferedInputStream.java:273) > at java.io.BufferedInputStream.read(BufferedInputStream.java:334) > at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) > at java.io.BufferedInputStream.read(BufferedInputStream.java:254) > at java.io.FilterInputStream.read(FilterInputStream.java:83) > at java.io.PushbackInputStream.read(PushbackInputStream.java:139) > at > org.apache.pdfbox.io.PushBackInputStream.read(PushBackInputStream.java:91) > at > org.apache.pdfbox.pdfparser.BaseParser.skipSpaces(BaseParser.java:1547) > at > org.apache.pdfbox.pdfparser.PDFStreamParser.parseNextToken(PDFStreamParser.java:230) > at > org.apache.pdfbox.pdfparser.PDFStreamParser.access$000(PDFStreamParser.java:46) > at > org.apache.pdfbox.pdfparser.PDFStreamParser$1.tryNext(PDFStreamParser.java:182) > at > org.apache.pdfbox.pdfparser.PDFStreamParser$1.hasNext(PDFStreamParser.java:194) > at > org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:257) > at > org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:237) > at > org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:217) > at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:119) > at org.apache.pdfbox.pdfviewer.PDFPagePanel.paint(PDFPagePanel.java:98) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JViewport.paint(JViewport.java:731) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JLayeredPane.paint(JLayeredPane.java:585) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paintToOffscreen(JComponent.java:5228) > at > javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1482) > at > javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1413) > at javax.swing.RepaintManager.paint(RepaintManager.java:1206) > at javax.swing.JComponent.paint(JComponent.java:1040) > at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39) > at > sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:78) > at > sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:115) > at java.awt.Container.paint(Container.java:1967) > at java.awt.Window.paint(Window.java:3877) > at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:781) > at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:728) > at > javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:677) > at javax.swing.RepaintManager.access$700(RepaintManager.java:59) > at > javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1621) > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) > at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721) > at java.awt.EventQueue.access$200(EventQueue.java:103) > at java.awt.EventQueue$3.run(EventQueue.java:682) > at java.awt.EventQueue$3.run(EventQueue.java:680) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:691) > at > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244) > at > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163) > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:97) > Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: > Index: 12, Size: 0 > at java.util.ArrayList.rangeCheck(ArrayList.java:604) > at java.util.ArrayList.get(ArrayList.java:382) > at > org.apache.pdfbox.io.RandomAccessBuffer.seek(RandomAccessBuffer.java:84) > at > org.apache.pdfbox.io.RandomAccessFileInputStream.read(RandomAccessFileInputStream.java:96) > at java.io.BufferedInputStream.read1(BufferedInputStream.java:273) > at java.io.BufferedInputStream.read(BufferedInputStream.java:334) > at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) > at java.io.BufferedInputStream.read(BufferedInputStream.java:254) > at java.io.FilterInputStream.read(FilterInputStream.java:83) > at java.io.PushbackInputStream.read(PushbackInputStream.java:139) > at > org.apache.pdfbox.io.PushBackInputStream.read(PushBackInputStream.java:91) > at > org.apache.pdfbox.pdfparser.BaseParser.skipSpaces(BaseParser.java:1547) > at > org.apache.pdfbox.pdfparser.PDFStreamParser.parseNextToken(PDFStreamParser.java:230) > at > org.apache.pdfbox.pdfparser.PDFStreamParser.access$000(PDFStreamParser.java:46) > at > org.apache.pdfbox.pdfparser.PDFStreamParser$1.tryNext(PDFStreamParser.java:182) > at > org.apache.pdfbox.pdfparser.PDFStreamParser$1.hasNext(PDFStreamParser.java:194) > at > org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:257) > at > org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:237) > at > org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:217) > at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:119) > at org.apache.pdfbox.pdfviewer.PDFPagePanel.paint(PDFPagePanel.java:98) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JViewport.paint(JViewport.java:731) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JLayeredPane.paint(JLayeredPane.java:585) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paintToOffscreen(JComponent.java:5228) > at > javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1482) > at > javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1413) > at javax.swing.RepaintManager.paint(RepaintManager.java:1206) > at javax.swing.JComponent.paint(JComponent.java:1040) > at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39) > at > sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:78) > at > sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:115) > at java.awt.Container.paint(Container.java:1967) > at java.awt.Window.paint(Window.java:3877) > at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:781) > at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:728) > at > javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:677) > at javax.swing.RepaintManager.access$700(RepaintManager.java:59) > at > javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1621) > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) > at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721) > at java.awt.EventQueue.access$200(EventQueue.java:103) > at java.awt.EventQueue$3.run(EventQueue.java:682) > at java.awt.EventQueue$3.run(EventQueue.java:680) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:691) > at > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244) > at > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163) > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:97) > Exception in thread "AWT-EventQueue-0" java.lang.IndexOutOfBoundsException: > Index: 12, Size: 0 > at java.util.ArrayList.rangeCheck(ArrayList.java:604) > at java.util.ArrayList.get(ArrayList.java:382) > at > org.apache.pdfbox.io.RandomAccessBuffer.seek(RandomAccessBuffer.java:84) > at > org.apache.pdfbox.io.RandomAccessFileInputStream.read(RandomAccessFileInputStream.java:96) > at java.io.BufferedInputStream.read1(BufferedInputStream.java:273) > at java.io.BufferedInputStream.read(BufferedInputStream.java:334) > at java.io.BufferedInputStream.fill(BufferedInputStream.java:235) > at java.io.BufferedInputStream.read(BufferedInputStream.java:254) > at java.io.FilterInputStream.read(FilterInputStream.java:83) > at java.io.PushbackInputStream.read(PushbackInputStream.java:139) > at > org.apache.pdfbox.io.PushBackInputStream.read(PushBackInputStream.java:91) > at > org.apache.pdfbox.pdfparser.BaseParser.skipSpaces(BaseParser.java:1547) > at > org.apache.pdfbox.pdfparser.PDFStreamParser.parseNextToken(PDFStreamParser.java:230) > at > org.apache.pdfbox.pdfparser.PDFStreamParser.access$000(PDFStreamParser.java:46) > at > org.apache.pdfbox.pdfparser.PDFStreamParser$1.tryNext(PDFStreamParser.java:182) > at > org.apache.pdfbox.pdfparser.PDFStreamParser$1.hasNext(PDFStreamParser.java:194) > at > org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:257) > at > org.apache.pdfbox.util.PDFStreamEngine.processSubStream(PDFStreamEngine.java:237) > at > org.apache.pdfbox.util.PDFStreamEngine.processStream(PDFStreamEngine.java:217) > at org.apache.pdfbox.pdfviewer.PageDrawer.drawPage(PageDrawer.java:119) > at org.apache.pdfbox.pdfviewer.PDFPagePanel.paint(PDFPagePanel.java:98) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JViewport.paint(JViewport.java:731) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paint(JComponent.java:1063) > at javax.swing.JLayeredPane.paint(JLayeredPane.java:585) > at javax.swing.JComponent.paintChildren(JComponent.java:887) > at javax.swing.JComponent.paintToOffscreen(JComponent.java:5228) > at > javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1482) > at > javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1413) > at javax.swing.RepaintManager.paint(RepaintManager.java:1206) > at javax.swing.JComponent.paint(JComponent.java:1040) > at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:39) > at > sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:78) > at > sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:115) > at java.awt.Container.paint(Container.java:1967) > at java.awt.Window.paint(Window.java:3877) > at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:781) > at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:728) > at > javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:677) > at javax.swing.RepaintManager.access$700(RepaintManager.java:59) > at > javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1621) > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251) > at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:721) > at java.awt.EventQueue.access$200(EventQueue.java:103) > at java.awt.EventQueue$3.run(EventQueue.java:682) > at java.awt.EventQueue$3.run(EventQueue.java:680) > at java.security.AccessController.doPrivileged(Native Method) > at > java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:691) > at > java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244) > at > java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163) > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147) > at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:97) > Please help me out ......... -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira