cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Inbound FTP/File Adapter

Former Member
0 Kudos

I´m getting a problem with Inbound FTP/File Adapter.

We need to poll a FTP Server to get text documents and submit them to XI 2.0. When the ftp server has files which match the "file.sourceFileName" parameter, no problem. In this case, the file adapter fetch the files and process them normally.

However, if don´t exist files on the server to get then it throws an error and STOP my file inbound adapter in the adapter engine.

That´s the error in the log:

(4050) ERROR: Unexpected exception "com.sap.aii.messaging.adapter.ftp.FTPEx: *.txt: No such file or directory." occurred

It seems a known bug with java ftp implementations and linux ftp servers. The ftp return code to an empty list in a LS command is not recognized by the java class calling it and so it throws an exception.

Thanks by any help,

Fabiano.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Fabiano,

I am getting the exact error too...But I am not sure if anyone fixed it..I had been running pillar to post regarding this ..Any ideas...

-Teresa

Former Member
0 Kudos

Hi Guys,

Did anybody else get this error message? I posted an OSS message but SAP also doesn't seem to be aware of this..Any help guys!!!!

-Teresa

Message was edited by: Teresa Smith

cdumont69
Contributor
0 Kudos

Hello,

I have the same problem with SP11.

I thinks the problem is with the root "/" of the ftp server.

When I put "/dir1/dir2", XI go to the real root "/" and no to the root of the ftp server that is "/var/ftp/pub".

So I put the relative path "dir1/dir2" for the directory where XI can find file and "../../archives/dir1/dir2" for the directory where it can find the archive.

It seems to works but I always have the error :

Error connecting to ftp server 'XIServer': com.sap.aii.adapter.file.ftp.FTPEx: No files found

Sorry, I can't propose you a better way !

But I haven't complete all my test.

Regards,

Chris

Former Member
0 Kudos

Hi CHristian,

Did you try putting in a file into the FTP folder without reactivating the ftp adapter?? I mean just put in the same processed file..Is it readin the file on its own?? my ftp adapter doesn't read the file without a manual activation of the FTP adapter everytime...This defeats the purpose of XI if it can't read a file on its own in an FTP location...It still gives "Last processing started 18:56:11 2005-05-05, Error: Stopped due to error: com.sap.aii.adapter.file.ftp.FTPEx: input.txt: No such file or directory: No such file or directory.

-Teresa

Message was edited by: Teresa Smith

Message was edited by: Teresa Smith

cdumont69
Contributor
0 Kudos

Yes, I don't need to restart the adapter, when I put a file, XI get it.

But there is some problem with the archive mode, so I use delete mode.

My error message is different from yours :

Error: Error connecting to ftp server 'XIServer': com.sap.aii.adapter.file.ftp.FTPEx: No files found

It not say "Stopped due to error".

Do you always have XI 2.0 as you said last month ?

I work on XI 3.0 with SP11 on RHEL.

Regards,

Christophe

Former Member
0 Kudos

Hi,

We are running XI 3.0 with SP4....But I don't think its a support pack issue..May be it could be related with FTP servers that we are pulling the file from, but its totally weird and is also weird not many people have endured this error..

-Teresa

Former Member
0 Kudos

Hey guys,

I solved this issue..As I had predicted it was an FTP adapter auth issue..

-Teresa