• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

J2SSH or SSHTools -- control does not return

 
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic