Oracle API Gateway SFTP Poller Unable To Remove Files. (Doc ID 2124829.1)

Last updated on APRIL 14, 2016

Applies to:

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

Symptoms

Using Oracle API Gateway (OAG) Version 11.1.2.3.0.
An SFTP poller has been defined on the gateway and this poller is unable to remove files, even though the flag to delete the files after processing has been set.

The following error is seen in the trace file for the gateway:

DEBUG [bf1f1700] Caught an exception, leaving main loop due to Socket closed
ERROR [bf4f4700] FTP Poller 'SFTP' - error processing file t0601261djgz_20160322030034.txt.pgp:
java.io.IOException: Failed to remove 't0601261djgz_20160322030034.txt.pgp'
  at com.vordel.fileservice.client.SFTPSession.remove(SFTPSession.java:120)
  at com.vordel.dwe.ftp.FTPScanner$FileScannerItem.run(FTPScanner.java:88)
Caused by: 1:
  at com.jcraft.jsch.ChannelSftp.throwStatusError(ChannelSftp.java:2833)
  at com.jcraft.jsch.ChannelSftp.rm(ChannelSftp.java:1945)
  at com.vordel.fileservice.client.SFTPSession.remove(SFTPSession.java:117)
  ... 1 more

As the poller does not delete files after processing them, it will pull the same file over and over.

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