You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2020/01/09 20:39:00 UTC

[jira] [Work logged] (CAMEL-14355) PDF producer should close PDF documents

     [ https://issues.apache.org/jira/browse/CAMEL-14355?focusedWorklogId=369344&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-369344 ]

ASF GitHub Bot logged work on CAMEL-14355:
------------------------------------------

                Author: ASF GitHub Bot
            Created on: 09/Jan/20 20:38
            Start Date: 09/Jan/20 20:38
    Worklog Time Spent: 10m 
      Work Description: PascalSchumacher commented on pull request #3472: CAMEL-14355: PDF producer should close PDF documents
URL: https://github.com/apache/camel/pull/3472
 
 
   For the create operation this is definitely the right thing to do.
   
   For the append and extractText operations this is a change in behavior, as the `PDDocument` object can no longer be used after these operations (e.g. for another operation).
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

            Worklog Id:     (was: 369344)
    Remaining Estimate: 0h
            Time Spent: 10m

> PDF producer should close PDF documents
> ---------------------------------------
>
>                 Key: CAMEL-14355
>                 URL: https://issues.apache.org/jira/browse/CAMEL-14355
>             Project: Camel
>          Issue Type: Improvement
>    Affects Versions: 2.24.3, 3.0.0
>            Reporter: James Netherton
>            Priority: Minor
>             Fix For: 3.1.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> If you use the PDF component to produce documents, after a while, the following shows up in the logs:
> {code}
> Warning: You did not close a PDF Document
> {code}
> 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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)