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

GlyphList doesn't appear to be thread safe in trunk...or user error?

    Details

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

      Description

      This could be user error, but I'm getting the following when running trunk in a multithreaded environment.

      Caused by: java.util.ConcurrentModificationException
              at java.util.HashMap$HashIterator.nextEntry(HashMap.java:922)
              at java.util.HashMap$EntryIterator.next(HashMap.java:962)
              at java.util.HashMap$EntryIterator.next(HashMap.java:960)
              at java.util.HashMap.putAllForCreate(HashMap.java:554)
              at java.util.HashMap.<init>(HashMap.java:298)
              at org.apache.pdfbox.pdmodel.font.encoding.GlyphList.<init>(GlyphList.java:114)
              at org.apache.pdfbox.text.PDFTextStreamEngine.<init>(PDFTextStreamEngine.java:103)
              at org.apache.pdfbox.text.PDFTextStripper.<init>(PDFTextStripper.java:196)
              at org.apache.tika.parser.pdf.PDF2XHTML.<init>(PDF2XHTML.java:106)
              at org.apache.tika.parser.pdf.PDF2XHTML.process(PDF2XHTML.java:133)
              at org.apache.tika.parser.pdf.PDFParser.parse(PDFParser.java:132)
              at org.apache.tika.parser.CompositeParser.parse(CompositeParser.java:281)
              ... 16 more
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jahewson John Hewson
                Reporter:
                tallison@apache.org Tim Allison
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: