commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From José Luis Núñez <>
Subject vfs sftp fails restablishing the connection after sftp server restart service
Date Sat, 28 Oct 2006 19:10:40 GMT
I am developing an application for monitoring a local folder, when a file
was changed or added this is transfered to another box via sftp or ftp

Monitoring routines of vfs works fine, ftp also, sftp while the other box is
alive has not problem, but if the other box is down when monitor trigger the
event after remote box is restablished all subsecuent transfers abort with

If instead of sftp we did the same process with ftp, vfs restablish the
connection succesfuly

Any idea?

            manager = VFS.getManager();

		quearchivo = fileobject.getURL().toString();

		fileobject = manager.resolveFile(fileobjectStringURL,opts);

		if (fileobject.exists()){  <--- Here throws error

	Caused by: com.jcraft.jsch.JSchException: session is down
        at com.jcraft.jsch.Session.openChannel(

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message