Transfer of large files (>2Gb) via FTP Adapter results in incomplete file of size 2147483647 bytes (Doc ID 1240517.1)

Last updated on MARCH 08, 2017

Applies to:

Oracle(R) BPEL Process Manager - Version 10.1.3.5.0 and later
Information in this document applies to any platform.
***Checked for relevance on 23-October-2013***

Symptoms

You have developed a composite application running on Oracle Application Server 10g 10.1.3.5.0 which executes a BPEL process that uses the extended FTP Adapter specification (oracle.tip.adapter.ftp.outbound.FTPIoInteractionSpec) providing additional operations to support the transfer and copying of files from an FTP server to a local directory.

Some of the files which are copied by the process are greater than 2Gb in size and when copy these large files the BPEL process does not throw an error but fails to copy the entire file to the targeted local directory.

While receiving bytes for the file received from the targeted FTP Server, the received chunks are used to incrementally build (at a temporary location) a partial copy of the file, until it is completed. Once the file has been fully received, the FTP Adapter then copies the file to the final location as identified by properties set on the FTP Adapter instance.

The temporary location of the partial file built during the transfer is located at a temporary location whose location matches the following pattern:

$ORACLE_HOME/j2ee/home/fileftp/temp_ftp/<composite_name>~<composite_version>/<random dir name>/Outbound


For example:

/app/oracle/product/APP/10.1.3/j2ee/home/fileftp/temp_ftp/BPEL_FileTransferService~1.3/1oyE6RHIo0JabuqlEn7TEA=3D=3D/outbound


When encountering this issue a partial copy of the file transferred, with a size of 2147483647 bytes (almost exactly 2Gb), will be left at this location.

The issue can be encountered when running both the 32bit and 64bit JDK but may be more easily reproducible when using the 32bit JDK.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms