My Oracle Support Banner

SOA FTP Adapter is unable to transfer large files (More than 5MB) from SERV-U FTP server using SFTP (Doc ID 1517193.1)

Last updated on MAY 10, 2023

Applies to:

Oracle SOA Suite - Version 11.1.1.5.0 and later
Information in this document applies to any platform.

Symptoms

When the FTP Adapter downloads a 10MB file using SFTP it successfully downloads 6.5MB in 1 second using 32K chunks,
it then goes into hang mode and in 90 seconds fails with the following error:

BINDING.JCA-11433
Error getting binary file from FTP Server.
Error getting binary file from FTP Server.
Unable to get binary file from server.
Please make sure that file exists on the server.

at oracle.tip.adapter.ftp.SFTPClient.getBinaryFileAsStream(SFTPClient.java:658)
at oracle.tip.adapter.ftp.SFTPAgent.getBinaryFileAsStream(SFTPAgent.java:416)
at oracle.tip.adapter.ftp.SFTPAgent.getContentAsStream(SFTPAgent.java:472)
at oracle.tip.adapter.ftp.inbound.FTPSource.getContents(FTPSource.java:987)
at oracle.tip.adapter.ftp.inbound.FTPSource.getFileFromSource(FTPSource.java:912)
at oracle.tip.adapter.file.inbound.ProcessorDelegate.getContentAsFile(ProcessorDelegate.java:419)
at oracle.tip.adapter.file.inbound.ProcessorDelegate.process(ProcessorDelegate.java:134)
at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:349)
at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:120)
at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
Caused by: BINDING.JCA-11445
The SSH API threw an exception.
The SSH API threw an exception.
The SSH API threw an exception.
Maverick has not been setup properly. Please correct the setup.

at oracle.tip.adapter.ftp.SshImpl.SFTPChannelImpl.get(SFTPChannelImpl.java:248)
at oracle.tip.adapter.ftp.SFTPClient.getBinaryFileAsStream(SFTPClient.java:646)
... 10 more
Caused by: com.maverick.ssh.SshException: The channel unexpectedly terminated
at com.maverick.ssh.SubsystemChannel$_A.A(Unknown Source)
at com.maverick.ssh.SubsystemChannel.sendMessage(Unknown Source)
at com.maverick.sftp.SftpSubsystemChannel.A(Unknown Source)
at com.maverick.sftp.SftpSubsystemChannel.closeFile(Unknown Source)
at com.sshtools.sftp.SftpClient.get(Unknown Source)
at com.sshtools.sftp.SftpClient.get(Unknown Source)
at oracle.tip.adapter.ftp.SshImpl.SFTPChannelImpl.get(SFTPChannelImpl.java:244)
... 11 more

The following is the corresponding log file from the SERV-U ftp server:


[30] Wed 11Jan12 12:46:28 - (000075) SSH_FXP_INIT: client version 4 (J2SSH_Maverick_1.2.6_Oracle Corporation)
[31] Wed 11Jan12 12:46:28 - (000075) SSH_FXP_VERSION: server version 4
[30] Wed 11Jan12 12:46:28 - (000075) {0x00000001} SSH_FXP_REALPATH: path: "~"
[31] Wed 11Jan12 12:46:28 - (000075) {0x00000001} SSH_FXP_NAME: path: "/"
[30] Wed 11Jan12 12:46:28 - (000075) {0x00000002} SSH_FXP_STAT: path: "/./my.pdf"
[31] Wed 11Jan12 12:46:28 - (000075) {0x00000002} SSH_FXP_ATTRS
[30] Wed 11Jan12 12:46:28 - (000075) {0x00000003} SSH_FXP_OPEN: path: "/./my.pdf"
[31] Wed 11Jan12 12:46:28 - (000075) {0x00000003} SSH_FXP_HANDLE: file handle: 0x00000514
[32] Wed 11Jan12 12:46:28 - (000075) {0x00000004} SSH_FXP_READ: handle: 0x00000514; position: 0; 32768 bytes
[10] Wed 11Jan12 12:46:28 - (000075) Sending file "D:\FTP_ROOT\admin\my.pdf"
[33] Wed 11Jan12 12:46:28 - (000075) {0x00000004} SSH_FXP_DATA: 32768 bytes
[32] Wed 11Jan12 12:46:28 - (000075) {0x00000005} SSH_FXP_READ: handle: 0x00000514; position: 32768; 32768 bytes
[33] Wed 11Jan12 12:46:28 - (000075) {0x00000005} SSH_FXP_DATA: 32768 bytes
[32] Wed 11Jan12 12:46:28 - (000075) {0x00000006} SSH_FXP_READ: handle: 0x00000514; position: 65536; 32768 bytes
[33] Wed 11Jan12 12:46:28 - (000075) {0x00000006} SSH_FXP_DATA: 32768 bytes
[32] Wed 11Jan12 12:46:28 - (000075) {0x00000007} SSH_FXP_READ: handle: 0x00000514; position: 98304; 32768 bytes
[33] Wed 11Jan12 12:46:28 - (000075) {0x00000007} SSH_FXP_DATA: 32768 bytes
[32] Wed 11Jan12 12:46:28 - (000075) {0x00000008} SSH_FXP_READ: handle: 0x00000514; position: 131072; 32768 bytes
..
..
[32] Wed 11Jan12 12:46:28 - (000075) {0x000000ca} SSH_FXP_READ: handle: 0x00000514; position: 6488064; 32768 bytes
[33] Wed 11Jan12 12:46:28 - (000075) {0x000000ca} SSH_FXP_DATA: 32768 bytes
[32] Wed 11Jan12 12:46:28 - (000075) {0x000000cb} SSH_FXP_READ: handle: 0x00000514; position: 6520832; 32768 bytes
[33] Wed 11Jan12 12:46:28 - (000075) {0x000000cb} SSH_FXP_DATA: 32768 bytes
.. 91s of hang time!!!!
[10] Wed 11Jan12 12:47:59 - (000075) Error sending file "D:\FTP_ROOT\admin\my.pdf", aborting (6,553,600 Bytes)
[02] Wed 11Jan12 12:47:59 - (000075) Closed session
[02] Wed 11Jan12 12:47:59 - (000075) User "admin" logged out

Changes

 WHAT WORKS
-----------------------
- using FTP 
- using third party tool such as psftp - as opposed to the FTP Adapter
- using LINUX as opposed to SERV-U FTP server

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.