commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darren Hartford" <dhartf...@ghsinc.com>
Subject RE: [VFS] SFTP and which jsch library
Date Fri, 28 Oct 2005 17:27:22 GMT
Detailed errors from commons-vfs-nightlybuild 20051028 binary:

As you can see, 0.1.16 worked the best outside of the LsEntry issue.

=========================
JSCH - 0.1.14
SftpFileSystemConfigBuilder.getInstance().setStrictHostKeyChecking(opts,
"no");
fsManager.resolvefile(filestring,opts);
java.lang.NoSuchMethodError:
com.jcraft.jsch.Session.setConfig(Ljava/util/Properties;)V

JSCH - 0.1.16
SftpFileSystemConfigBuilder.getInstance().setStrictHostKeyChecking(opts,
"no");
fsManager.resolvefile(filestring,opts);
myfileobject.getChildren();
org.apache.commons.vfs.FileSystemException: Could not list the contents
of folder "<snip>".
	at
org.apache.commons.vfs.provider.AbstractFileObject.getChildren(AbstractF
ileObject.java:553)
Caused by: java.lang.ClassCastException:
com.jcraft.jsch.ChannelSftp$LsEntry
	at
org.apache.commons.vfs.provider.sftp.SftpFileObject.doListChildren(SftpF
ileObject.java:247)
	at
org.apache.commons.vfs.provider.AbstractFileObject.getChildren(AbstractF
ileObject.java:549)


JSCH - 0.1.21, 0.1.23
SftpFileSystemConfigBuilder.getInstance().setStrictHostKeyChecking(opts,
"no");
fsManager.resolvefile(filestring,opts);
Could not connect to SFTP server at "<snip>".
	at
org.apache.commons.vfs.provider.sftp.SftpFileProvider.doCreateFileSystem
(SftpFileProvider.java:87)
	at
org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile
(AbstractOriginatingFileProvider.java:76)
	at
org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile
(AbstractOriginatingFileProvider.java:61)
	at
org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(Default
FileSystemManager.java:524)
	at
org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(Default
FileSystemManager.java:488)
	at
org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(Default
FileSystemManager.java:458)
Caused by: org.apache.commons.vfs.FileSystemException: Could not connect
to SFTP server at "<snip>".
	at
org.apache.commons.vfs.provider.sftp.SftpClientFactory.createConnection(
SftpClientFactory.java:172)
	at
org.apache.commons.vfs.provider.sftp.SftpFileProvider.doCreateFileSystem
(SftpFileProvider.java:79)
	... 6 more
Caused by: com.jcraft.jsch.JSchException: UnknownHostKey: <snip>
	at com.jcraft.jsch.Session.checkHost(Unknown Source)
	at com.jcraft.jsch.Session.connect(Unknown Source)
	at com.jcraft.jsch.Session.connect(Unknown Source)
	at
org.apache.commons.vfs.provider.sftp.SftpClientFactory.createConnection(
SftpClientFactory.java:168)

=========================




---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message