Sometimes our integration server giving error like : pub.client.ftp:cd com.wm.app.b2b.server.ServiceException: [ISS.0086.9194] Not logged in! [/i]
[ISS.0086.9194]
Flow looks as below:
Loop on list of files
Pub.client.ftp:login
Pub.client.ftp:cd Here calling custom service to process inbound files (this service may take time 1 to 5 min)
Pub.client.ftp:logout
In the second repetition of loop error coming like “Not logged in” at “Pub.client.ftp:cd” step.
I am confused why after login error throwing at change directory level?
Pub.client.ftp:login
Pub.client.ftp:cd Pub.client.ftp:get Here calling custom service to process inbound files (this service may take time 1 to 5 min)
Pub.client.ftp:logout
Thanks for your suggestion, let me try in that way…
But I hope that the same problem will be arise at logout step.
Because my custom service may take more time (10 min…15 min…OR more) to process all inbound files, meanwhile if ligin session will get expire then error should be thrown at logout step.
What kind of box (windows/unix) you are trying to FTP . The solution suggested by reamon is perfect , you should not see the problem with this . Also check if there is any FTP session timeout parameter is set in the target server. If you have huge number of files ( also to make your process scalable ) use multithreaded model for this purpose .