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

Multithreading issue in JempBox's DateConverter

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.16
    • Fix Version/s: 1.8.17
    • Component/s: JempBox
    • Labels:

      Description

      Tilman Hausherr recently found an exception thrown from here (https://github.com/apache/pdfbox/blob/1.8/jempbox/src/main/java/org/apache/jempbox/impl/DateConverter.java#L186) in one run of tika-eval but not in another. 

       

      This is a multithreading issue caused by https://github.com/apache/pdfbox/blob/1.8/jempbox/src/main/java/org/apache/jempbox/impl/DateConverter.java#L43 SimpleDateFormat is not threadsafe.  I'm surprised we haven't seen this earlier, but so it goes.

       

      Many, many thanks to Tilman for finding this!

        Attachments

          Activity

            People

            • Assignee:
              tilman Tilman Hausherr
              Reporter:
              tallison Tim Allison
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: