Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-14355

PDF producer should close PDF documents

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.24.3, 3.0.0
    • Fix Version/s: 3.0.1, 3.1.0
    • Component/s: None
    • Labels:
      None
    • Estimated Complexity:
      Novice

      Description

      If you use the PDF component to produce documents, after a while, the following shows up in the logs:

      Warning: You did not close a PDF Document
      

      Some of the PDFBox classes have finalize methods which detect whether documents were not closed properly and auto closes them.

      It'd be better if the Camel PDF producer did this when it has finished working on a PDF document, rather than relying on GC finalizers.

        Attachments

          Activity

            People

            • Assignee:
              pascalschumacher Pascal Schumacher
              Reporter:
              jamesnetherton James Netherton

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m

                  Issue deployment