Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-5241

Calling constructor of PDFTextStripper throws java.lang.NoClassDefFoundError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.0.24
    • None
    • Text extraction
    • Windows 10 (amd64)
      Java-Version: 16.0.1 (Amazon Corretto)

    Description

      Using 2.0.24

      <dependency>
      <groupId>org.apache.pdfbox</groupId>
      <artifactId>pdfbox</artifactId>
      <version>2.0.24</version>
      </dependency>

      On some of our customer's devices simply instantiating PDFTextStripper causes the JVM to crash

      java.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.font.encoding.GlyphListjava.lang.NoClassDefFoundError: Could not initialize class org.apache.pdfbox.pdmodel.font.encoding.GlyphList at org.apache.pdfbox.text.LegacyPDFStreamEngine.<init>(LegacyPDFStreamEngine.java:120) at org.apache.pdfbox.text.PDFTextStripper.<init>(PDFTextStripper.java:214)

       

      When running Java 11 this problem was not reported at all, so I guess this is a Java 16 issue.

      If there is anything else I can provide please let me know

      Thank you

       

      EDIT: We cannot reproduce this issue on all machines, it seems to appear randomly 

      Attachments

        Activity

          People

            Unassigned Unassigned
            Bettenburg Andreas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: