Ok... Here's the code as it stands
FileSystemManager fsManager = VFS.getManager();
FileSystemOptions options = new FileSystemOptions();
FtpFileSystemConfigBuilder.getInstance().setPassiveMode(options, true);
FileObject fromFile = fsManager.resolveFile(fromUrl,
options);
FileObject toFile = fsManager.resolveFile(toUrl,
options);
toFile.createFolder();
toFile.copyFrom(fromFile, new AllFileSelector());
Before I was using this code
FileObject fromFile = fsManager.resolveFile(fromUrl);
FileObject toFile = fsManager.resolveFile(toUrl);
Which was resolving the FileObjects without my FileSystemOptions... As I
said, I was being a stupid head.
-----Original Message-----
From: Berlin Brown [mailto:[EMAIL PROTECTED]
Sent: 18 November 2005 13:03
To: Jakarta Commons Users List
Subject: Re: FW: [VFS] Ftp copy hangs
I have seen this before too. Can you describe more about the solution.
On 11/18/05, Lance Semmens <[EMAIL PROTECTED]> wrote:
> Ok... I've solved it... I thought I was using passive mode but was
> not... I'm now using passive mode and all is well.
> I was being a stupid head and not passing my FileSystemOptions to
> FileSystemManager.resolveFile()
>
> -----Original Message-----
> From: Lance Semmens [mailto:[EMAIL PROTECTED]
> Sent: 17 November 2005 16:56
> To: Jakarta Commons Users List
> Subject: FW: [VFS] Ftp copy hangs
>
>
> I've been looking into this and can't seem to find a solution.
> I have run "netstat" during the copy and there thousands of ftp
> connections. Is there any way of setting a max number of connections??
> FYI I'm using the IIS FTP server
> There are incoming and outgoing firewalls It always hangs on the same
> file
>
> -----Original Message-----
> From: Lance Semmens [mailto:[EMAIL PROTECTED]
> Sent: 17 November 2005 10:36
> To: Jakarta Commons Users List
> Subject: RE: [VFS] Ftp copy hangs
>
> Thanks for your help mario...
> I ran the FTP service on my local machine to eliminate any network
> issues and it works. I'm now looking into it.
>
> Cheers,
> Lance.
>
> -----Original Message-----
> From: Mario Ivankovits [mailto:[EMAIL PROTECTED]
> Sent: 08 November 2005 22:22
> To: Jakarta Commons Users List
> Subject: Re: [VFS] Ftp copy hangs
>
> Lance Semmens wrote:
> > From the logging I can see that a whole lot of putFiles are
> > successful
>
> > up until a certain point.
> >
> Did I ask you already which ftp server you use?
> How are you connected to the ftp server?
> Is there any firewall in between?
> Might this firewall take your heavy access to the ftp server as
> "denial-of-service" attack?
> If its a unix/linux ftp server, do you use the xinetd daemon?
> Maybe you can tweak the "cps" and "max_load" settings?
> Is it always at the same file when it hangs?
> For what I see, you use the ftp active mode, please try to switch to
> passive mode with
> FtpFileSystemConfigBuilder.getInstance().setPassiveMode(),
> maybe there is some problem with the reverse data connection and any
> firewall in between.
>
> At last, please try to capture the transfer using tcpdump -s 2048 -w
> ftp.log host <your ftp host ip>
>
> (or ethereal in windows)
>
> If you see a outgoing "LIST" command, but no connection back with any
> file-listing then its definitely a network setup problem.
>
>
> Hope something of this helps!
>
> ---
> 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]
>
>
> ---------------------------------------------------------------------
> 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]
>
>
---------------------------------------------------------------------
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]