This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes J2SSH or SSHTools -- control does not return Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "J2SSH or SSHTools -- control does not return" Watch "J2SSH or SSHTools -- control does not return" New topic
Author

J2SSH or SSHTools -- control does not return

Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
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

Joined: Aug 31, 2004
Posts: 295
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: J2SSH or SSHTools -- control does not return
 
Similar Threads
getReplyString() equivalent method for j2ssh
jar error
Using J2SSH
J2SSH - SFTPFile
Using J2SSH With MDBs