Manuel Hartl created CAMEL-21051:
------------------------------------

             Summary: SftpOperations.retrieveFileToStreamInBody potentially 
hides exceptions
                 Key: CAMEL-21051
                 URL: https://issues.apache.org/jira/browse/CAMEL-21051
             Project: Camel
          Issue Type: Bug
          Components: camel-sftp
    Affects Versions: 4.7.0, 4.5.0
         Environment: Occurs on Windows and linux
            Reporter: Manuel Hartl


The Method

org.apache.camel.component.file.remote.SftpOperations#retrieveFileToStreamInBody
 executed operations in finally-block which potentially hides exceptions from 
try-block.

In my case i have an out of memory exception happening during reading the 
sftp-data, but i dont see it because 
{color:#000000}{color:#0066cc}changeCurrentDirectory() in the finally block 
throws another exception.{color}{color}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to