OSB Business service is failed to place the file in SFTP server with error “No Such File”

Issue –> My requirement is to place the files to SFTP target server, so i have created a business service with SFTP target and provided the location in business service. But BS is throwing the below error while placing the file to SFTP server.

Error –> com.bea.wli.sb.transports.TransportException: com.maverick.sftp.SftpStatusException: No such file.: No such file

Cause –> URI of my business service is “sftp://localhost:22/testuser/mytargetfolder” causing the issue. As the service is not able to find the directory in SFTP server.

Solution –>

Issue is Oracle OSB Business service is not able to find the location in SFTP server , to fix this we have to give the absolute path of the directory.

For example , if i login with user testuser in sftp server , it will take you to the home directory of the user testuser.

login in your target sftp server.

login as: testuser

Using keyboard-interactive authentication.

Password:

#######################################

testuser @localhost:~$ pwd

/export/home/testuser

So i have to provide URI in my business service as “sftp://localhost:22//mytargetfolder”

Internally it will take location as /export/home/testuser/mytargetfolder

After specifying the above value in my OSB Business service URI issue got resolved.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s