Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

J2SSH or SSHTools -- control does not return

 
Ramaswamy Srinivasan
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I have the following scenario

1. A main class

2. From a method in this class, I invoke a static method that downloads a file from a FTP location using the J2SSH API.



3. The file downloads fine, I can see it in the specified path.



4. Following the download call, I have the code to parse the file and pick up some information in the main class, from where I invoked the static method to get the file.

5. This does not work. Basically, the control does not return to the invoking point.

6. Same code works fine, if I remove the FTP part and test for a local server

Any idea, what could be the problem? Any help is much appreciated.

Thanks!
 
Ramaswamy Srinivasan
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Figured out that it is a problem with the wait time for the session and client to close.
Rest of the code works fine, but after 4 minutes, in the last trial.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic