commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berlin Brown <berlin.br...@gmail.com>
Subject Re: VFS and SFTP, not working?
Date Thu, 06 Oct 2005 12:36:27 GMT
SSH-2.0-OpenSSH_3.8.1p1 FreeBSD-20040419

On 10/5/05, Berlin Brown <berlin.brown@gmail.com> wrote:
> To Mario:
>
> "org.apache.commons.vfs.cache.SoftRefFilesCache$SoftRefReleaseThread"
> daemon prio=5 tid=0x0ade24c8 n
> id=0x414 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$SoftRefReleaseThread.run(SoftRefFilesCache
> .java:76)
>
> "Low Memory Detector" daemon prio=5 tid=0x00a918e8 nid=0xd34 runnable
> [0x00000000..0x00000000]
>
> "CompilerThread0" daemon prio=10 tid=0x00a904c0 nid=0x3a0 waiting on
> condition [0x00000000..0x0abcf6
> c0]
>
> "Signal Dispatcher" daemon prio=10 tid=0x00a8f7f0 nid=0x930 waiting on
> condition [0x00000000..0x0000
> 0000]
>
> "Finalizer" daemon prio=9 tid=0x00a86c60 nid=0x4b4 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=10 tid=0x00a857d0 nid=0x9a8 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:116)
>         - locked <0x02fcc2c8> (a java.lang.ref.Reference$Lock)
>
> "main" prio=5 tid=0x00036748 nid=0xd50 runnable [0x0007f000..0x0007fc3c]
>         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.createConnection(SftpClientFactory
> .java:162)
>         at org.apache.commons.vfs.provider.sftp.SftpFileProvider.doCreateFileSystem(SftpFileProvider
> .java:79)
>         at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginat
> ingFileProvider.java:76)
>         - locked <0x03065180> (a
> org.apache.commons.vfs.provider.sftp.SftpFileProvider)
>         at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(AbstractOriginat
> ingFileProvider.java:61)
>         at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager
> .java:524)
>         at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager
> .java:488)
>         at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(DefaultFileSystemManager
> .java:479)
>         at org.apache.commons.vfs.tasks.VfsTask.resolveFile(VfsTask.java:55)
>         at org.apache.commons.vfs.tasks.AbstractSyncTask.handleFiles(AbstractSyncTask.java:220)
>         at org.apache.commons.vfs.tasks.AbstractSyncTask.execute(AbstractSyncTask.java:187)
>         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java: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=10 tid=0x00a82e00 nid=0x134 runnable
>
> "VM Periodic Task Thread" prio=10 tid=0x00a92ac0 nid=0xd6c waiting on condition
>
> On 10/4/05, Berlin Brown <berlin.brown@gmail.com> 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 = manager.resolveFile("C:\Berlin\Downloads4\workspace\Numbers\SPEROLOGGING\logs\\access_log")
> >     typ = 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__ == '__main__':
> >     print "## starting"
> >     fsManager = v.VFS.getManager()
> >     f = fsManager.resolveFile( SFTP_URL )
> >     typ = f.getType()
> >     print "Name: ", f.getName()
> >     print "Read: ", f.isReadable()
> >     print "HasKids: ", typ.hasChildren()
> >     print "Name: ", f.getName()
> >
> >     a = f.getContent()
> >     print "Type: ", typ.getName()
> >     print "Content: ", a
> >     print "Exists: ", f.exists()
> >     #print "Writable: ", f.isWriteable()
> >
> >     #---------------------------------------------
> >     fs = f.getFileSystem()
> >     print fs.getRootName()
> >     opts = fs.getFileSystemOptions()
> >     print "FS Options: ", opts
> >
> >     dest = 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


Mime
View raw message