Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 1493 invoked from network); 29 Oct 2005 05:07:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Oct 2005 05:07:52 -0000 Received: (qmail 59163 invoked by uid 500); 29 Oct 2005 05:07:49 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 58371 invoked by uid 500); 29 Oct 2005 05:07:46 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 58358 invoked by uid 99); 29 Oct 2005 05:07:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2005 22:07:46 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 216.148.227.85 is neither permitted nor denied by domain of hoju@visi.com) Received: from [216.148.227.85] (HELO rwcrmhc12.comcast.net) (216.148.227.85) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2005 22:07:42 -0700 Received: from nicki.visi.com (c-66-41-141-26.hsd1.mn.comcast.net[66.41.141.26]) by comcast.net (rwcrmhc12) with SMTP id <20051029050723014001lgube>; Sat, 29 Oct 2005 05:07:23 +0000 Message-Id: <5.2.1.1.0.20051028235235.03665a90@127.0.0.1> X-Sender: hoju@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.2.1 Date: Sat, 29 Oct 2005 00:07:18 -0500 To: "Jakarta Commons Users List" From: Jacob Kjome Subject: RE: [VFS] SFTP and which jsch library In-Reply-To: <3ADC9031BA80EB49812A36BBC564D5A2F0C12A@GHSEXCH.ghsinc.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Relayed-By: GPGrelay Version 0.959 (Win32) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N the project.xml for VFS defines a dependency on version 0.1.17. Try that and see if it works better for you. However, it seems to me that VFS should just bite the bullet and move to support newer versions of dependencies. No one wants to be dependent on old buggy versions of libraries. For those already using snapshots of VFS who don't want to update dependencies, then they can keep using the snapshot. 1.0 shouldn't be bothered with worrying about backward compatibility with unreleased versions. That just means that future releases will have to be (unfortunately, legitimately) burdened by backward compatibility to 1.0, which, if not previously burdened with backward compatibility to snapshots using extremely out-of-date libraries, would be much easier to keep up with forward compatibility. Yes, be liberal and release early and often, but make sure to take the same liberal stance in keeping up with dependencies. Being conservative just leads to indictments (whoops, where did that come from?). Jake At 01:27 PM 10/28/2005 -0400, you wrote: >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 "". > 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 "". > 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 "". > 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: > 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 --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org