cancel
Showing results for 
Search instead for 
Did you mean: 

SFTP to SFTP scenario error

Former Member
0 Kudos

Hi All,

I have scenario file to file scenario with sender and receiver advantco SFTP adapter in production. We are not doing the any mapping for this scenario.Transfered the zip files.This scenario  was successfully processed in yesterday and i got issue on today .I got the below error in PROD server.

Error:java.lang.Exception: Cannot write content to remote file /global-content/content/airDistribution/incomingInvoices/pdf_associate_weekly.zip: Possible causes: SFTP connection is broken or remote file/directory is in use: 4: java.lang.ArrayIndexOutOfBoundsException: java.lang.ArrayIndexOutOfBoundsException (Software version: 3.0.17)

15.08.2012 17:12:01.727

Error:Message could not be forwarded to the JCA adapter. Reason: java.lang.Exception: Cannot write content to remote file '/global-content/content/airDistribution/incomingInvoices/pdf_associate_weekly.zip': Possible causes: SFTP connection is broken or remote file/directory is in use

15.08.2012 17:12:01.727

Error:MP: exception caught with cause javax.resource.ResourceException: java.lang.Exception: Cannot write content to remote file '/global-content/content/airDistribution/incomingInvoices/pdf_associate_weekly.zip': Possible causes: SFTP connection is broken or remote file/directory is in use

15.08.2012 17:12:01.727

Error:Adapter Framework caught exception: java.lang.Exception: Cannot write content to remote file '/global-content/content/airDistribution/incomingInvoices/pdf_associate_weekly.zip': Possible causes: SFTP connection is broken or remote file/directory is in use

15.08.2012 17:12:01.727

Error:Transmitting the message to endpoint <local> using connection SFTP_http://advantco.com/xi/XI/SFTP failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: javax.resource.ResourceException: java.lang.Exception: Cannot write content to remote file '/global-content/content/airDistribution/incomingInvoices/pdf_associate_weekly.zip': Possible causes: SFTP connection is broken or remote file/directory is in use.

Please provide the your inputs on this issue.

Regards,

Ramesh

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Murthy,

Please check below options,it may be helpfull for you

1) Make sure SFTP connection is working fine,ping the server in command prompt.

2) Make sure that folder you mentioned is existing,acess to the folder is proper and also all sufficient permissions are given.

3) Make sure that the file is not locked by some other process.

Also please follow below links

http://scn.sap.com/thread/2000990

http://scn.sap.com/thread/1981860

Regards,

$HRI

Former Member
0 Kudos

Hi Hari,

Thanks for your reply!!

I have checked first 2 option are fine.there is no issues with connection and permissions.

Can you tell me how i check the 3 rd option (file is not locked by some other process).

Regards,

Ravi.

Former Member
0 Kudos

Hi Murthy,

For that you need to talk to UNIX or Basis Team.Please go through below link there are few inputs for the same problem

http://scn.sap.com/thread/2000990

Regards,

$HRI