error : Not logged in!

Hi,

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?

Any one please helps me to fix this problem…

Thanks in advance…
Ravi

A couple of items come to mind.

  • Why login and logout for every iteration of the loop?
  • Are you checking the result of the login? Are you sure it succeeds? (Perhaps you just omitted the error checking for posting here?)

What version of IS?

Thanks for your reply reamon.

We are using IS 7.1 version.

Loop iteration on list of files names.

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
Ravi

I understand that you’re looping over a list of filenames. Why are you logging in and out for each filename? Why not do this:

login
cd
loop over filename
…get
…call custom service

logout

Are you checking the result of the login call?

Hi reamon,

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.

Thanks
Ravi

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 .

Hi rgiduthuri,

While using the pub.client:ftp service did you select the newSession input Parameter as yes?

I guess yor session key is getting expired everytime while your custom services are been executed.

I dont know whether this would work in your case.