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

Log statement on level 'severe' while nothing else indicates error

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.10
    • 1.8.11
    • FontBox
    • None
    • Ubuntu 15.04. Java SE 7.

    Description

      I use PdfBox to insert a little bit of text at the top of my PDF-documents. I have found one case (one input document) where Fontbox emits a log record on level severe/error, without throwing any exception, and where I cannot see any problems with the output PDF document when inspecting it manually.

      The log record causes noise and disturbance for our operations guys, who use some automatic log monitoring tool that will raise an alarm for any log record with level "severe"/"error", and that will even raise a notice for log records with level "warning".

      I can configure our logging tool to ignore all logging from the Fontbox Java class as a workaround, but I would prefer not to.

      I will try to attach to this Jira issue a zip file with the PDF document in case and a small, self-contained Java application that allows you to easily reproduce the problem.

      The log record looks like this:

      Sep 01, 2015 1:18:18 PM org.apache.fontbox.cmap.CMap addMapping
      SEVERE: Mapping code should be 1 or two bytes and not 4
      

      Attachments

        Issue Links

          Activity

            People

              tilman Tilman Hausherr
              arehus Are Husby
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: