Thanks for the quick patch. I'm testing the patched FTPClientWrapper with the sourcecode of commons-VFS-RC2 and it seems to work fine.

With the newest svn checkout i have a new issue. VFS can't create a new connection to the ftp server, i get an error:

Caused by: org.apache.commons.vfs.org.apache.commons.vfs.FileSystemException: Could not connect to FTP server on "10.1.1.42". at org.apache.commons.vfs.provider.ftp.FtpClientFactory.createConnection(Ljava.lang.String;ILjava.lang.String;Ljava.lang.String;Ljava.lang.String;Lorg.apache.commons.vfs.FileSystemOptions;)Lorg.apache.commons.net.ftp.FTPClient;(FtpClientFactory.java:120) at org.apache.commons.vfs.provider.ftp.FTPClientWrapper.createClient()Lorg.apache.commons.net.ftp.FTPClient;(FTPClientWrapper.java:60) at org.apache.commons.vfs.provider.ftp.FTPClientWrapper.getFtpClient()Lorg.apache.commons.net.ftp.FTPClient;(FTPClientWrapper.java:72) at org.apache.commons.vfs.provider.ftp.FTPClientWrapper.<init>(Lorg.apache.commons.vfs.provider.GenericFileName;Lorg.apache.commons.vfs.FileSystemOptions;)V(FTPClientWrapper.java:43) at org.apache.commons.vfs.provider.ftp.FtpFileProvider.doCreateFileSystem(Lorg.apache.commons.vfs.FileName;Lorg.apache.commons.vfs.FileSystemOptions;)Lorg.apache.commons.vfs.FileSystem;(FtpFileProvider.java:74) at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(Lorg.apache.commons.vfs.FileName;Lorg.apache.commons.vfs.FileSystemOptions;)Lorg.apache.commons.vfs.FileObject;(AbstractOriginatingFileProvider.java:76) at org.apache.commons.vfs.provider.AbstractOriginatingFileProvider.findFile(Lorg.apache.commons.vfs.FileObject;Ljava.lang.String;Lorg.apache.commons.vfs.FileSystemOptions;)Lorg.apache.commons.vfs.FileObject;(AbstractOriginatingFileProvider.java:61) at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(Lorg.apache.commons.vfs.FileObject;Ljava.lang.String;Lorg.apache.commons.vfs.FileSystemOptions;)Lorg.apache.commons.vfs.FileObject;(DefaultFileSystemManager.java:524) at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(Lorg.apache.commons.vfs.FileObject;Ljava.lang.String;)Lorg.apache.commons.vfs.FileObject;(DefaultFileSystemManager.java:488) at org.apache.commons.vfs.impl.DefaultFileSystemManager.resolveFile(Ljava.lang.String;)Lorg.apache.commons.vfs.FileObject;(DefaultFileSystemManager.java:458) at com.como.commonwatchfolder.CommonWatchfolderService.run()V(Unknown Source)
       at java.lang.Thread.run()V(Unknown Source)
at java.lang.Thread.startThreadFromVM(Ljava.lang.Thread;)V(Unknown Source) Caused by: org.apache.commons.vfs.FileSystemException: Could not change to work directory "/". at org.apache.commons.vfs.provider.ftp.FtpClientFactory.createConnection(Ljava.lang.String;ILjava.lang.String;Ljava.lang.String;Ljava.lang.String;Lorg.apache.commons.vfs.FileSystemOptions;)Lorg.apache.commons.net.ftp.FTPClient;(FtpClientFactory.java:97)

On my ftp server log it seems that the client sends an CWD command without a directory path, which causes the server to send a syntax error

Regards
Jens Viebig

----- Original Message ----- From: "Mario Ivankovits" <[EMAIL PROTECTED]>
To: "Jakarta Commons Users List" <[email protected]>
Sent: Friday, September 02, 2005 7:52 AM
Subject: Re: [VFS] FTPClientWrapper Broken Pipe


Jens Viebig wrote:
Hope this will be fixed in official future releases of commons-VFS
I've changed it now, maybe you can check it.


Thanks!
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to