PDFBox
  1. PDFBox
  2. PDFBOX-1217

ClassCastException: COSInteger cannot be cast to COSDictionary

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.6.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      java.lang.ClassCastException: org.apache.pdfbox.cos.COSInteger cannot be cast to org.apache.pdfbox.cos.COSDictionary
      at org.apache.pdfbox.pdmodel.PDDocument.getDocumentInformation(PDDocument.java:576)
      at net.sourceforge.docfetcher.model.parse.PdfParser.parse(PdfParser.java:52)
      at net.sourceforge.docfetcher.model.parse.ParseService.doParse(ParseService.java:261)
      at net.sourceforge.docfetcher.model.parse.ParseService.parse(ParseService.java:229)
      at net.sourceforge.docfetcher.model.index.file.FileContext.index(FileContext.java:137)
      at net.sourceforge.docfetcher.model.index.file.FileIndex$1.handleFile(FileIndex.java:276)
      at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.runWithHtmlPairing(HtmlFileLister.java:123)
      at net.sourceforge.docfetcher.model.index.file.HtmlFileLister.doRun(HtmlFileLister.java:56)
      ...

      I got this crash from a user, so I'm afraid I can't provide the PDF file that caused this.

        Activity

        Andreas Lehmkühler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        John Hewson made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Unresolved [ 9 ]
        Tran Nam Quang created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Tran Nam Quang
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development