[ 
https://issues.apache.org/jira/browse/PDFBOX-4715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16998340#comment-16998340
 ] 

ASF subversion and git services commented on PDFBOX-4715:
---------------------------------------------------------

Commit 1871701 from Tim Allison in branch 'pdfbox/trunk'
[ https://svn.apache.org/r1871701 ]

PDFBOX-4715 -- specify release version for builds with Java >= 9

> Need to add release version for maven-compiler-plugin
> -----------------------------------------------------
>
>                 Key: PDFBOX-4715
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-4715
>             Project: PDFBox
>          Issue Type: Task
>            Reporter: Tim Allison
>            Priority: Blocker
>
> If I build PDFBox with > Java 8, but then try to run it via Tika with Java 8, 
> I get:
> {noformat}
> 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)
> {noformat}
> and 
> {noformat}
> 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)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org

Reply via email to