Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 49396 invoked from network); 21 Dec 2009 23:11:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Dec 2009 23:11:45 -0000 Received: (qmail 91453 invoked by uid 500); 21 Dec 2009 23:11:45 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 91382 invoked by uid 500); 21 Dec 2009 23:11:44 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 91373 invoked by uid 99); 21 Dec 2009 23:11:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Dec 2009 23:11:44 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Dec 2009 23:11:38 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1F626234C04C for ; Mon, 21 Dec 2009 15:11:18 -0800 (PST) Message-ID: <1024915824.1261437078127.JavaMail.jira@brutus> Date: Mon, 21 Dec 2009 23:11:18 +0000 (UTC) From: "Maarten Coene (JIRA)" To: notifications@ant.apache.org Subject: [jira] Resolved: (IVY-1152) Ivy does not close URL connection to ivy-report.xsl properly In-Reply-To: <1730580561.1261406418153.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IVY-1152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maarten Coene resolved IVY-1152. -------------------------------- Resolution: Fixed Fix Version/s: trunk Assignee: Maarten Coene Thanks for the report! I've removed the extra check for "sun.net.www.protocol.file.FileURLConnection" and always close the InputStream now. Could you verify if this change solved your problem? thanks, Maarten > Ivy does not close URL connection to ivy-report.xsl properly > ------------------------------------------------------------ > > Key: IVY-1152 > URL: https://issues.apache.org/jira/browse/IVY-1152 > Project: Ivy > Issue Type: Bug > Components: Core > Affects Versions: 2.0, 2.1.0 > Reporter: Pavel Sher > Assignee: Maarten Coene > Fix For: trunk > > > It seems BasicURLHanlder.disconnect() does not properly close URL connection to ivy-report.xsl file. In my case URL looks like: > jar:file://ivy-2.0.jar!/org/apache/ivy/plugins/report/ivy-report.xsl > In disconnect() method there is a check for URL connection class: > "sun.net.www.protocol.file.FileURLConnection".equals(con.getClass().getName()) > However in runtime this check does not work because instead of FileURLConnection there is JarURLConnection: > sun.net.www.protocol.jar.JarURLConnection > This leads to leaked input streams if Ivy is used programmatically within the same JVM. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.