Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 99564 invoked from network); 27 Oct 2005 03:21:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Oct 2005 03:21:50 -0000 Received: (qmail 15555 invoked by uid 500); 27 Oct 2005 03:21:44 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 15507 invoked by uid 500); 27 Oct 2005 03:21:44 -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 35023 invoked by uid 99); 26 Oct 2005 15:10:02 -0000 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=HTML_MESSAGE,NO_REAL_NAME,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ameet@bci.co.mz designates 212.96.25.12 as permitted sender) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5DA3F.728598EE" X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 Subject: VFS SFTP Date: Wed, 26 Oct 2005 17:10:48 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: VFS SFTP Thread-Index: AcXaP3J2M9V8cloISIehVvvPJDAJqQ== From: To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C5DA3F.728598EE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I have a problem when I run this: =20 FileSystemManager fsm =3D VFS.getManager(); FileSystemOptions opts =3D new FileSystemOptions(); SftpFileSystemConfigBuilder.getInstance().setStrictHostKeyChecking(opts, "no"); FileObject dir =3D fsm.resolveFile("sftp://user:password@host:port/parentdir/childdir/", opts);=20 FileObject[] fich =3D dir.getChildren(); =20 This last line throws the following error: org.apache.commons.vfs.FileSystemException: Could not list the contents of folder " sftp://user:password@host:port/parentdir/childdir" at org.apache.commons.vfs.provider.AbstractFileObject.getChildren(AbstractF ileObject.java:553) ... Caused by: java.lang.ClassCastException 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) =20 I am using 2005-10-24 build and I cannot figure out what is wrong. =20 When I point to a ftp it works fine. =20 Any idea? ------_=_NextPart_001_01C5DA3F.728598EE--