org.apache.tika.exception.TikaException

Unexpected RuntimeException from org.apache.tika.parser.pdf.PDFParser@2a15cd

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Stack trace

  • org.apache.tika.exception.TikaException: Unexpected RuntimeException from org.apache.tika.parser.pdf.PDFParser@2a15cd at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:244) at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242) at org.apache.tika.parser.AutoDetectParser.parse(AutoDetectParser.java:120) at com.arisglobal.agcommon.agsolr.util.TikaIndexTest.main(TikaIndexTest.java:37) Caused by: java.lang.ClassCastException: org.apache.pdfbox.cos.COSString cannot be cast to org.apache.pdfbox.cos.COSDictionary at org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationLink.getAction(PDAnnotationLink.java:93) at org.apache.tika.parser.pdf.PDF2XHTML.endPage(PDF2XHTML.java:178) at org.apache.pdfbox.util.PDFTextStripper.processPage(PDFTextStripper.java:450) at org.apache.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:372) at org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:328) at org.apache.tika.parser.pdf.PDF2XHTML.process(PDF2XHTML.java:72) at org.apache.tika.parser.pdf.PDFParser.parse(PDFParser.java:153) at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:242) ... 3 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

We couldn't find other users who have seen this exception.