Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 30355 invoked from network); 6 Oct 2005 12:36:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Oct 2005 12:36:55 -0000 Received: (qmail 42323 invoked by uid 500); 6 Oct 2005 12:36:50 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 42304 invoked by uid 500); 6 Oct 2005 12:36:50 -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 42292 invoked by uid 99); 6 Oct 2005 12:36:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2005 05:36:49 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of berlin.brown@gmail.com designates 64.233.162.205 as permitted sender) Received: from [64.233.162.205] (HELO zproxy.gmail.com) (64.233.162.205) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2005 05:36:52 -0700 Received: by zproxy.gmail.com with SMTP id x3so204710nzd for ; Thu, 06 Oct 2005 05:36:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=D0xm+4wtiqLP8BHZAgDtmh5lhiGA0R4jzk7r9l9xbdtnlwBvuCbEMuw0jGZ0+pWhswmZh4f1j311mbdiA0Z4LoCcVqCOYizIaIxOcrrXFyib5XzQ0SqixSY24d0/ifb8mpbqIhERVWMjcEpLAkQQOFSOW0RZXrVbNh2X/BQtpAg= Received: by 10.37.15.28 with SMTP id s28mr331720nzi; Thu, 06 Oct 2005 05:36:27 -0700 (PDT) Received: by 10.36.61.12 with HTTP; Thu, 6 Oct 2005 05:36:27 -0700 (PDT) Message-ID: Date: Thu, 6 Oct 2005 08:36:27 -0400 From: Berlin Brown Reply-To: Berlin Brown To: commons-user@jakarta.apache.org Subject: Re: VFS and SFTP, not working? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N SSH-2.0-OpenSSH_3.8.1p1 FreeBSD-20040419 On 10/5/05, Berlin Brown wrote: > To Mario: > > "org.apache.commons.vfs.cache.SoftRefFilesCache$SoftRefReleaseThread" > daemon prio=3D5 tid=3D0x0ade24c8 n > id=3D0x414 in Object.wait() [0x0b28f000..0x0b28fbe8] > at java.lang.Object.wait(Native Method) > - waiting on <0x03065140> (a java.lang.ref.ReferenceQueue$Lock) > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) > - locked <0x03065140> (a java.lang.ref.ReferenceQueue$Lock) > at org.apache.commons.vfs.cache.SoftRefFilesCache$SoftRefReleaseT= hread.run(SoftRefFilesCache > .java:76) > > "Low Memory Detector" daemon prio=3D5 tid=3D0x00a918e8 nid=3D0xd34 runnab= le > [0x00000000..0x00000000] > > "CompilerThread0" daemon prio=3D10 tid=3D0x00a904c0 nid=3D0x3a0 waiting o= n > condition [0x00000000..0x0abcf6 > c0] > > "Signal Dispatcher" daemon prio=3D10 tid=3D0x00a8f7f0 nid=3D0x930 waiting= on > condition [0x00000000..0x0000 > 0000] > > "Finalizer" daemon prio=3D9 tid=3D0x00a86c60 nid=3D0x4b4 in Object.wait() > [0x0ab4f000..0x0ab4fa68] > at java.lang.Object.wait(Native Method) > - waiting on <0x02fcc248> (a java.lang.ref.ReferenceQueue$Lock) > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) > - locked <0x02fcc248> (a java.lang.ref.ReferenceQueue$Lock) > at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132) > at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159= ) > > "Reference Handler" daemon prio=3D10 tid=3D0x00a857d0 nid=3D0x9a8 in > Object.wait() [0x0ab0f000..0x0ab0fae8 > ] > at java.lang.Object.wait(Native Method) > - waiting on <0x02fcc2c8> (a java.lang.ref.Reference$Lock) > at java.lang.Object.wait(Object.java:474) > at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:11= 6) > - locked <0x02fcc2c8> (a java.lang.ref.Reference$Lock) > > "main" prio=3D5 tid=3D0x00036748 nid=3D0xd50 runnable [0x0007f000..0x0007= fc3c] > at com.jcraft.jsch.Session.write(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.createC= onnection(SftpClientFactory > .java:162) > at org.apache.commons.vfs.provider.sftp.SftpFileProvider.doCreate= FileSystem(SftpFileProvider > .java:79) > at org.apache.commons.vfs.provider.AbstractOriginatingFileProvide= r.findFile(AbstractOriginat > ingFileProvider.java:76) > - locked <0x03065180> (a > org.apache.commons.vfs.provider.sftp.SftpFileProvider) > at org.apache.commons.vfs.provider.AbstractOriginatingFileProvide= r.findFile(AbstractOriginat > ingFileProvider.java:61) > at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFi= le(DefaultFileSystemManager > .java:524) > at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFi= le(DefaultFileSystemManager > .java:488) > at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFi= le(DefaultFileSystemManager > .java:479) > at org.apache.commons.vfs.tasks.VfsTask.resolveFile(VfsTask.java:= 55) > at org.apache.commons.vfs.tasks.AbstractSyncTask.handleFiles(Abst= ractSyncTask.java:220) > at org.apache.commons.vfs.tasks.AbstractSyncTask.execute(Abstract= SyncTask.java:187) > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.jav= a:275) > at org.apache.tools.ant.Task.perform(Task.java:364) > at org.apache.tools.ant.Target.execute(Target.java:341) > at org.apache.tools.ant.Target.performTasks(Target.java:369) > at org.apache.tools.ant.Project.executeTarget(Project.java:1214) > at org.apache.tools.ant.Project.executeTargets(Project.java:1062) > at org.apache.tools.ant.Main.runBuild(Main.java:673) > at org.apache.tools.ant.Main.startAnt(Main.java:188) > at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) > at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55) > > "VM Thread" prio=3D10 tid=3D0x00a82e00 nid=3D0x134 runnable > > "VM Periodic Task Thread" prio=3D10 tid=3D0x00a92ac0 nid=3D0xd6c waiting = on condition > > On 10/4/05, Berlin Brown wrote: > > I think the SFTP side of VFS is not working. I tried with a > > development machine with the same drive setup and it worked fine, a > > little slow but fine. The SFTP just locks up. I would give you the > > output, but it doesnt do anything. Here is my code using JYTHON. > > > > def getLocalDir(manager): > > f =3D manager.resolveFile("C:\Berlin\Downloads4\workspace\Numbers\S= PEROLOGGING\logs\\access_log") > > typ =3D f.getType() > > print "-" * 50 > > print "Name: ", f.getName() > > print "Read: ", f.isReadable() > > print "HasKids: ", typ.hasChildren() > > print "Name: ", f.getName() > > f.createFile() > > return f > > > > if __name__ =3D=3D '__main__': > > print "## starting" > > fsManager =3D v.VFS.getManager() > > f =3D fsManager.resolveFile( SFTP_URL ) > > typ =3D f.getType() > > print "Name: ", f.getName() > > print "Read: ", f.isReadable() > > print "HasKids: ", typ.hasChildren() > > print "Name: ", f.getName() > > > > a =3D f.getContent() > > print "Type: ", typ.getName() > > print "Content: ", a > > print "Exists: ", f.exists() > > #print "Writable: ", f.isWriteable() > > > > #--------------------------------------------- > > fs =3D f.getFileSystem() > > print fs.getRootName() > > opts =3D fs.getFileSystemOptions() > > print "FS Options: ", opts > > > > dest =3D getLocalDir(fsManager) > > dest.copyFrom(f, v.Selectors.SELECT_SELF) > > > > print "## done" > > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org