Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 8818 invoked from network); 18 Nov 2005 14:13:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Nov 2005 14:13:56 -0000 Received: (qmail 75768 invoked by uid 500); 18 Nov 2005 14:13:50 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 75726 invoked by uid 500); 18 Nov 2005 14:13:49 -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 75715 invoked by uid 99); 18 Nov 2005 14:13:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2005 06:13:49 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [83.104.5.51] (HELO mailhost.swebtec.com) (83.104.5.51) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2005 06:15:23 -0800 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Subject: RE: FW: [VFS] Ftp copy hangs Date: Fri, 18 Nov 2005 14:12:13 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: FW: [VFS] Ftp copy hangs Thread-Index: AcXsQFzd1u+7RqBjQvqItoKvHSUljgACMBqw From: "Lance Semmens" To: "Jakarta Commons Users List" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Ok... Here's the code as it stands FileSystemManager fsManager =3D VFS.getManager(); FileSystemOptions options =3D new FileSystemOptions(); =09 FtpFileSystemConfigBuilder.getInstance().setPassiveMode(options, true); FileObject fromFile =3D fsManager.resolveFile(fromUrl, options); FileObject toFile =3D fsManager.resolveFile(toUrl, options);=20 toFile.createFolder(); toFile.copyFrom(fromFile, new AllFileSelector()); Before I was using this code FileObject fromFile =3D fsManager.resolveFile(fromUrl); FileObject toFile =3D fsManager.resolveFile(toUrl);=20 Which was resolving the FileObjects without my FileSystemOptions... As I said, I was being a stupid head. -----Original Message----- From: Berlin Brown [mailto:berlin.brown@gmail.com]=20 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 wrote: > Ok... I've solved it... I thought I was using passive mode but was=20 > 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:lance.semmens@swebtec.com] > 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=20 > 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=20 > file > > -----Original Message----- > From: Lance Semmens [mailto:lance.semmens@swebtec.com] > 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=20 > issues and it works. I'm now looking into it. > > Cheers, > Lance. > > -----Original Message----- > From: Mario Ivankovits [mailto:mario@ops.co.at] > 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=20 > > 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=20 > "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=20 > passive mode with=20 > FtpFileSystemConfigBuilder.getInstance().setPassiveMode(), > maybe there is some problem with the reverse data connection and any=20 > firewall in between. > > At last, please try to capture the transfer using tcpdump -s 2048 -w=20 > ftp.log host > > (or ethereal in windows) > > If you see a outgoing "LIST" command, but no connection back with any=20 > file-listing then its definitely a network setup problem. > > > Hope something of this helps! > > --- > Mario > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org