在Android中为PdfReader创建对象时使用ITEXT-5.1.3我得到了java.lang.StackOverflowError。任何人都可以帮我解决这个问题。
代码是:
PdfReader pdfReader = new PdfReader(“/ mnt / sdcard / Jagadeesh / walker_05312013.pdf”);
以下是异常堆栈跟踪
06-04 17:17:16.140: E/AndroidRuntime(8485): FATAL EXCEPTION: main
06-04 17:17:16.140: E/AndroidRuntime(8485): java.lang.StackOverflowError
06-04 17:17:16.140: E/AndroidRuntime(8485): at java.nio.MemoryBlock.peekByte(MemoryBlock.java:142)
06-04 17:17:16.140: E/AndroidRuntime(8485): at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:88)
06-04 17:17:16.140: E/AndroidRuntime(8485): at java.nio.MappedByteBufferAdapter.get(MappedByteBufferAdapter.java:132)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.MappedRandomAccessFile.read(MappedRandomAccessFile.java:115)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.RandomAccessFileOrArray.read(RandomAccessFileOrArray.java:237)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PRTokeniser.nextToken(PRTokeniser.java:297)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PRTokeniser.nextValidToken(PRTokeniser.java:249)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readDictionary(PdfReader.java:1575)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readPRObject(PdfReader.java:1617)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readDictionary(PdfReader.java:1581)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readPRObject(PdfReader.java:1617)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1413)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRefStream(PdfReader.java:1510)
06-04 17:17:16.140: E/AndroidRuntime(8485): at com.itextpdf.text.pdf.PdfReader.readXRef