A File Sent Via SFTP in Oracle API Gateway Will Not Go Outbound (Doc ID 1602281.1)

Last updated on MARCH 18, 2016

Applies to:

Oracle API Gateway - Version 11.1.2 and later
Information in this document applies to any platform.

Symptoms

After attempting to send a file outbound though the SFTP listener to a partner, it is seen that errors occur.. There is an outbound policy and outbound listener set up in OAG to send the file to the proper directory, but this is producing an error in the OAG:

"ERROR 0006: Outbound SFTP file: failed writing to CMS SFTP. The file will remain in the output directory and will need to be returned to the scan directory."

Connection to the partner's SFTP server via FileZilla and Putty occurs without any problems.


### Steps required to reproduce the problem ###

1) Input partner's IP and login information for SFTP into OAG, in the respective outbound policy and listener for the partner.
2) Push a test file outbound by dragging the test file into the relevant folder in FileZilla.
3) Wait for an alert in OAG Manager (ERROR 0006 keeps appearing).

In the gateway trace file, something similar to the following is seen:

ERROR [7aac7940] java exception running circuit:
java.lang.RuntimeException: send failed
at com.vordel.dwe.http.ServerTransaction.sendResponse(Native Method)
at com.vordel.dwe.http.HTTPPlugin.invokeDispose(HTTPPlugin.java:325)
at com.vordel.dwe.http.HTTPPlugin.invoke(HTTPPlugin.java:166)

 

At the partner site, the error appears that resembles the following example:

ERROR [4b262940] IO error uploading file to FTP server:
java.io.IOException: Failed to write to 'xxx.xxx.xx.x.x.xx'
at com.vordel.fileservice.client.SFTPSession.getOutputStream(SFTPSession.java:139)
at com.vordel.circuit.net.FTPUploadProcessor.invokeIOE(FTPUploadProcessor.java:119)
at com.vordel.circuit.net.FTPUploadProcessor.invoke(FTPUploadProcessor.java:77)
at com.vordel.circuit.InvocationEngine.invokeFilter(InvocationEngine.java:160)
at com.vordel.circuit.InvocationEngine.invokeCircuit(InvocationEngine.java:52)
at com.vordel.circuit.InvocationEngine.processMessage(InvocationEngine.java:241)
at com.vordel.dwe.dirscan.DirectoryScanner$FileScannerItem.runUnsafe(DirectoryScanner.java:182)
at com.vordel.dwe.dirscan.DirectoryScanner$FileScannerItem.run(DirectoryScanner.java:109)
Caused by: 4: /xxx.xxx.xx.x.x.xx is a directory
at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:598)
at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:589)
at com.jcraft.jsch.ChannelSftp.put(ChannelSftp.java:583)
at com.vordel.fileservice.client.SFTPSession.getOutputStream(SFTPSession.java:137)
... 7 more


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