From user-return-25183-apmail-commons-user-archive=commons.apache.org@commons.apache.org Mon Oct 18 21:35:11 2010 Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 31756 invoked from network); 18 Oct 2010 21:35:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Oct 2010 21:35:10 -0000 Received: (qmail 42431 invoked by uid 500); 18 Oct 2010 21:35:08 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 42331 invoked by uid 500); 18 Oct 2010 21:35:08 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 42323 invoked by uid 99); 18 Oct 2010 21:35:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Oct 2010 21:35:08 +0000 X-ASF-Spam-Status: No, hits=4.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,URIBL_SBL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.82.49] (HELO mail-ww0-f49.google.com) (74.125.82.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Oct 2010 21:35:03 +0000 Received: by wwb24 with SMTP id 24so757387wwb.6 for ; Mon, 18 Oct 2010 14:34:41 -0700 (PDT) Received: by 10.227.135.16 with SMTP id l16mr5192931wbt.158.1287437681573; Mon, 18 Oct 2010 14:34:41 -0700 (PDT) MIME-Version: 1.0 Sender: jcarman@carmanconsulting.com Received: by 10.227.144.139 with HTTP; Mon, 18 Oct 2010 14:34:21 -0700 (PDT) In-Reply-To: <4CBCBCDE.5080601@gmail.com> References: <4CBC9047.4050704@gmail.com> <4CBCBCDE.5080601@gmail.com> From: James Carman Date: Mon, 18 Oct 2010 17:34:21 -0400 X-Google-Sender-Auth: ojIov29eqYs00GEYnh6rIbRSLPA Message-ID: Subject: Re: [VFS][SOLVED] Connecting to a FTP server hungs up (sample included) To: Commons Users List , jpro.swt@gmail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable No problem! Glad you figured it out and more glad that I didn't mess things up with that FTPS patch! :) On Mon, Oct 18, 2010 at 5:32 PM, J-Pro wrote: > =A0I'm sorry, the problem is solved. It's not VFS problem, it's our offic= e > problem. > The thing is that our IPs are not "seen from outside", but active FTP mod= e > needs that to be. > > Sorry for disturbing you guys, the problem is solved. > > On 18.10.2010 22:02, James Carman wrote: >> >> It works for me. =A0Are you behind a firewall/proxy? >> >> On Mon, Oct 18, 2010 at 2:21 PM, J-Pro =A0wrote: >>> >>> =A0Good afternoon. >>> >>> Please help me solve my problem. >>> I'm trying to download a file "CBCP.TXT" from >>> "ftp://ftp.microsoft.com:21/MISC", but VFS hangs up after this log: >>> >>> =A0 10-18 20:22:42.787 EEST [main] INFO >>> org.apache.commons.vfs.impl.DefaultFileReplicator =A0- Using >>> =A0 "C:\Temp\vfs_cache" as temporary files store. >>> =A0 10-18 20:22:42.857 EEST [main] DEBUG >>> =A0 org.apache.commons.vfs.impl.StandardFileSystemManager =A0- Skipping >>> =A0 provider "org.apache.commons.vfs.provider.http.HttpFileProvider" >>> =A0 because required class "org.apache.commons.httpclient.HttpClient" i= s >>> =A0 not available. >>> =A0 10-18 20:22:42.858 EEST [main] DEBUG >>> =A0 org.apache.commons.vfs.impl.StandardFileSystemManager =A0- Skipping >>> =A0 provider "org.apache.commons.vfs.provider.https.HttpsFileProvider" >>> =A0 because required class "org.apache.commons.httpclient.HttpClient" i= s >>> =A0 not available. >>> =A0 10-18 20:22:44.403 EEST [main] DEBUG >>> =A0 org.apache.commons.vfs.cache.SoftRefFilesCache =A0- putFile: >>> =A0 ftp://ftp.microsoft.com/MISC >>> =A0 10-18 20:22:44.404 EEST [main] DEBUG >>> =A0 org.apache.commons.vfs.cache.SoftRefFilesCache =A0- putFile: >>> =A0 ftp://ftp.microsoft.com/ >>> >>> I'm using this code inside my main method(for sure surrounded by >>> try/catch >>> block): >>> >>> =A0 String fileName =3D "CBCP.TXT"; >>> =A0 FileSystemManager fsManager; >>> =A0 fsManager =3D VFS.getManager(); >>> =A0 UserAuthenticator auth =3D new StaticUserAuthenticator(null, >>> =A0 "anonymous", ""); >>> =A0 FileSystemOptions srcOpts =3D new FileSystemOptions(); >>> =A0 String sourceDirAsString =3D "ftp://ftp.microsoft.com:21/MISC"; >>> >>> DefaultFileSystemConfigBuilder.getInstance().setUserAuthenticator(srcOp= ts, >>> =A0 auth); >>> =A0 FileObject sourceDir =3D fsManager.resolveFile(sourceDirAsString, >>> =A0 srcOpts); // HERE IS A HANG UP >>> =A0 FileObject neededFile =3D sourceDir.resolveFile(fileName); >>> >>> In the marked the line where hang up happens, i.e. application freezes >>> and >>> waits. >>> I've run it in debug mode and made a screenshot of suspended main stack= : >>> http://img690.imageshack.us/img690/1412/mainm.png >>> >>> I've successfully opened this FTP using both firefox and internet >>> explorer. >>> Why I can't open it using VFS? >>> >>> Thanks in advance! >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org >>> For additional commands, e-mail: user-help@commons.apache.org >>> >>> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@commons.apache.org > For additional commands, e-mail: user-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org