java.lang.ClassCastException: org.apache.pdfbox.cos.COSDictionary cannot be cast to org.apache.pdfbox.cos.COSStream

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • pdfbox class cast exception
    via Stack Overflow by Dinoop Nair
    ,
    • java.lang.ClassCastException: org.apache.pdfbox.cos.COSDictionary cannot be cast to org.apache.pdfbox.cos.COSStream at org.apache.pdfbox.pdmodel.common.COSStreamArray.<init>(COSStreamArray.java:68) at org.apache.pdfbox.pdmodel.common.PDStream.createFromCOS(PDStream.java:185) at org.apache.pdfbox.pdmodel.PDPage.getContents(PDPage.java:639) at org.apache.pdfbox.util.PDFTextStripper.processPages(PDFTextStripper.java:378) at org.apache.pdfbox.util.PDFTextStripper.writeText(PDFTextStripper.java:342) at org.apache.pdfbox.util.PDFTextStripper.getText(PDFTextStripper.java:275) at com.tsgrp.opencontent.universal.annotation.XFDFAnnotationImpl.getWordMaps(XFDFAnnotationImpl.java:1561) at com.tsgrp.opencontent.universal.annotation.XFDFAnnotationImpl.getWordMaps(XFDFAnnotationImpl.java:1509)
    No Bugmate found.