From commons-dev-return-72198-apmail-jakarta-commons-dev-archive=jakarta.apache.org@jakarta.apache.org Thu Jun 02 12:41:38 2005 Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 22812 invoked from network); 2 Jun 2005 12:41:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Jun 2005 12:41:38 -0000 Received: (qmail 36846 invoked by uid 500); 2 Jun 2005 12:41:33 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 36755 invoked by uid 500); 2 Jun 2005 12:41:32 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 36665 invoked by uid 99); 2 Jun 2005 12:41:32 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from ajax-1.apache.org (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 02 Jun 2005 05:41:29 -0700 Received: by ajax.apache.org (Postfix, from userid 99) id 8569618A; Thu, 2 Jun 2005 14:41:09 +0200 (CEST) From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Subject: DO NOT REPLY [Bug 35185] New: - [net] NullpointerException on FTPClient.disconnect() if an Exception occured while FTPClient.connect X-Bugzilla-Reason: AssignedTo Message-Id: <20050602124109.8569618A@ajax.apache.org> Date: Thu, 2 Jun 2005 14:41:09 +0200 (CEST) X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35185 Summary: [net] NullpointerException on FTPClient.disconnect() if an Exception occured while FTPClient.connect Product: Commons Version: 1.2 Final Platform: Other OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Net AssignedTo: commons-dev@jakarta.apache.org ReportedBy: christian.hufgard@gmx.de Hello, think this bug is the same (or at least similiar) to the following one: http://issues.apache.org/bugzilla/show_bug.cgi?id=26296 but since I was not sure, I opened it as a seperate report. Versions affected: commons-net-1.2.2, think also commons-net-1.4.0 Problem: If an exception occures while FTPClient.connect() is running, a call to FTPClient.disconnect() in a finally-block might throw a NullPointerException. I am pretty shure, that this might cause some Threads so keep alive, also they cannot be interrupted anymore. Reason: This happens since TelnetClient.disconnect() does not check whether the Streams (__input and __ouput) it tries to close are NULL or not. Normally it is sufficent to check FTPClient.isConnected(), but if a exceptions is thrown after SocketClient.__connectAction_ has been excecuted, SocketClient. _isConnected_ is set to true, so the check will indicate that the connection is alive. Christian -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org