Exception Caught In SFTP Subsystem: Java.lang.StringIndexOutOfBoundsException

(Doc ID 2311320.1)

Last updated on OCTOBER 03, 2017

Applies to:

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

Symptoms

Having problems with the SFTP / FTP part of OAG.  The following error is being seen in the trace log:

java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:658)
at org.apache.sshd.server.filesystem.NativeSshFile.getPhysicalName(NativeSshFile.java:457)
at com.vordel.fileservice.sftp.CustomFileSystemView.getFile(CustomFileSystemFactory.java:112)
at com.vordel.fileservice.sftp.CustomFileSystemView.getFile(CustomFileSystemFactory.java:99)
at org.apache.sshd.server.sftp.SftpSubsystem.resolveFile(SftpSubsystem.java:1001)
at org.apache.sshd.server.sftp.SftpSubsystem.process(SftpSubsystem.java:608)
at org.apache.sshd.server.sftp.SftpSubsystem.run(SftpSubsystem.java:370)
at java.lang.Thread.run(Thread.java:745)

Restarting or deploying any change seems to fix the problem for some time but the problem eventually returns.

 

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