commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Puneet Singh Lamba" <psla...@gmail.com>
Subject Re: [vfs] Re: unknown protocol: sftp
Date Tue, 22 Aug 2006 14:17:57 GMT
Mario - thank you for your responsiveness.

First I got the following.

org.apache.commons.vfs.FileSystemException: Invalid absolute URI
"sftp://domain\
user:password@10.10.10.5
<mailto:sftp://domain/user:password@10.10.10.5<sftp://domain/user:password@10.10.10.5>
>".
        at
org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findF
ile(AbstractOriginatingFileProvider.java:57)
        at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile
(Defa
ultFileSystemManager.java:640)
        at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile
(Defa
ultFileSystemManager.java:601)
        at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile
(Defa
ultFileSystemManager.java:569)
        at com.ibm.kms.decentralization.SFTPVFSClient.run(SFTPVFSClient.java
:16)
        at com.ibm.kms.decentralization.SFTPVFSClient.main(
SFTPVFSClient.java:27
)
Caused by: org.apache.commons.vfs.FileSystemException: Port number is
missing fr
om URI "sftp://domain\user:password@10.10.10.5 <
mailto:sftp://domain/user:password@10.10.10.5<sftp://domain/user:password@10.10.10.5>
>".
        at org.apache.commons.vfs.provider.HostFileNameParser.extractPort
(HostFi
leNameParser.java:228)
        at org.apache.commons.vfs.provider.HostFileNameParser.extractToPath
(Host
FileNameParser.java:133)
        at org.apache.commons.vfs.provider.URLFileNameParser.parseUri
(URLFileNam
eParser.java:47)
        at org.apache.commons.vfs.provider.AbstractFileProvider.parseUri
(Abstrac
tFileProvider.java:166)
        at
org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findF
ile(AbstractOriginatingFileProvider.java:53)

After adding the port, I get the following.

org.apache.commons.vfs.FileSystemException: Invalid absolute URI "
sftp://domain\user:password@10.10.10.5:22 <
mailto:sftp://domain/user:password@10.10.10.5<sftp://domain/user:password@10.10.10.5>
>"
.
        at
org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findF
ile(AbstractOriginatingFileProvider.java:57)
        at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile
(Defa
ultFileSystemManager.java:640)
        at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile
(Defa
ultFileSystemManager.java:601)
        at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile
(Defa
ultFileSystemManager.java:569)
        at com.ibm.kms.decentralization.SFTPVFSClient.run(SFTPVFSClient.java
:16)
        at com.ibm.kms.decentralization.SFTPVFSClient.main(
SFTPVFSClient.java:27
)
Caused by: org.apache.commons.vfs.FileSystemException: Expecting / to follow
the
 hostname in URI "sftp://domain\user:password@10.10.10.5:22 <
mailto:sftp://domain/user:password@10.10.10.5<sftp://domain/user:password@10.10.10.5>
>".
        at org.apache.commons.vfs.provider.HostFileNameParser.extractToPath
(Host
FileNameParser.java:138)
        at org.apache.commons.vfs.provider.URLFileNameParser.parseUri
(URLFileNam
eParser.java:47)
        at org.apache.commons.vfs.provider.AbstractFileProvider.parseUri
(Abstrac
tFileProvider.java:166)
        at
org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findF
ile(AbstractOriginatingFileProvider.java:53)

Finally, the program seems to hang when I use the following URI with or
without the port:

FileObject fo = fsm.resolveFile("sftp://domain\\user:password@10.10.10.5
:22");

Thanks,

Puneet



On 8/22/06, Mario Ivankovits <mario@ops.co.at> wrote:
>
> Hi!
> > FileObject fo =
> > fsm.resolveFile("sftp://domain/user:password@10.10.10.5
> > <mailto:sftp://domain/user:password@10.10.10.5>");
> Please try:
>
> FileObject fo = fsm.resolveFile("sftp://domain\\user:password@10.10.10.5
> <mailto:sftp://domain/user:password@10.10.10.5>");
>
>
> Ciao,
> Mario
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message