Details
-
Task
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
None
-
None
-
None
Description
If I build PDFBox with > Java 8, but then try to run it via Tika with Java 8, I get:
java.util.concurrent.ExecutionException: java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.font.PDType1Font BatchProcess: at java.util.concurrent.FutureTask.report(FutureTask.java:122) BatchProcess: at java.util.concurrent.FutureTask.get(FutureTask.java:192) BatchProcess: at org.apache.tika.batch.BatchProcess.mainLoop(BatchProcess.java:206) BatchProcess: at org.apache.tika.batch.BatchProcess.call(BatchProcess.java:166) BatchProcess: at org.apache.tika.batch.BatchProcess.call(BatchProcess.java:52) BatchProcess: at java.util.concurrent.FutureTask.run(FutureTask.java:266) BatchProcess: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) BatchProcess: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) BatchProcess: at java.lang.Thread.run(Thread.java:748) BatchProcess:Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.font.PDType1Font BatchProcess: at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:76) BatchProcess: at org.apache.pdfbox.pdmodel.PDResources.getFont(PDResources.java:146) BatchProcess: at org.apache.pdfbox.contentstream.operator.text.SetFontAndSize.process(SetFontAndSize.java:66) BatchProcess: at org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:875) BatchProcess: at org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:509) BatchProcess: at org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:483) BatchProcess: at org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:156) BatchProcess: at org.apache.pdfbox.text.LegacyPDFStreamEngine.processPage(LegacyPDFStreamEngine.java:139) BatchProcess: at org.apache.pdfbox.text.PDFTextStripper.processPage(PDFTextStripper.java:391) BatchProcess: at org.apache.tika.parser.pdf.PDF2XHTML.processPage(PDF2XHTML.java:153) BatchProcess: at org.apache.tika.parser.pdf.AbstractPDF2XHTML.processPages(AbstractPDF2XHTML.java:867)
and
java.lang.NoSuchMethodError: java.nio.ByteBuffer.position(I)Ljava/nio/ByteBuffer; BatchProcess: at org.apache.fontbox.type1.Type1Lexer.readToken(Type1Lexer.java:184) BatchProcess: at org.apache.fontbox.type1.Type1Lexer.<init>(Type1Lexer.java:64) BatchProcess: at org.apache.fontbox.type1.Type1Parser.parseASCII(Type1Parser.java:86) BatchProcess: at org.apache.fontbox.type1.Type1Parser.parse(Type1Parser.java:61) BatchProcess: at org.apache.fontbox.type1.Type1Font.createWithPFB(Type1Font.java:56) BatchProcess: at org.apache.pdfbox.pdmodel.font.FileSystemFontProvider$FSFontInfo.getType1Font(FileSystemFontProvider.java:259) BatchProcess: at org.apache.pdfbox.pdmodel.font.FileSystemFontProvider$FSFontInfo.getFont(FileSystemFontProvider.java:131)