Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 75730 invoked from network); 23 Dec 2010 19:24:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Dec 2010 19:24:03 -0000 Received: (qmail 41499 invoked by uid 500); 23 Dec 2010 19:24:03 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 41438 invoked by uid 500); 23 Dec 2010 19:24:03 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 41430 invoked by uid 99); 23 Dec 2010 19:24:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Dec 2010 19:24:03 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of archie.cobbs@gmail.com designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-ew0-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Dec 2010 19:23:56 +0000 Received: by ewy10 with SMTP id 10so3201976ewy.4 for ; Thu, 23 Dec 2010 11:23:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=v3U07t/wLRmM4OqPdIS7u0/DHPmgbFRUtIWvwE26X9I=; b=i+owlZnRLi+e9atVP2np3o5nBg0lH+o/5oonXpFmFnVELdS8xfvyjj8tKjFgR29n/U WIp9V6Y6IKGqC1j5iQBpDhbaF/w9vLIVcFZ5uvDcPGpPQK5CClL2ILvsTUjyfLEdIYjL 7XpM5Nf6DsZuAVnGqNKy6dxJ0IkygOnA8qvzw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; b=YrUAel63rAGNIQ9R8fr5c9U32W0V3EadmeA2Y2OYaptrEiMJChuZaLWM88HV0lTCgc eGYpDExXMJfB1ZzyTL2MfTQH4mD5Ss5oGfeNziDEsoGg/XwEPEP1JEp3hditQXqYmfco FZG5PU8sW3jtWrtjKk6cpWG36ERWZTe1oYY1o= Received: by 10.213.8.146 with SMTP id h18mr3408861ebh.42.1293132215350; Thu, 23 Dec 2010 11:23:35 -0800 (PST) MIME-Version: 1.0 Sender: archie.cobbs@gmail.com Received: by 10.213.32.135 with HTTP; Thu, 23 Dec 2010 11:23:15 -0800 (PST) In-Reply-To: References: From: Archie Cobbs Date: Thu, 23 Dec 2010 13:23:15 -0600 X-Google-Sender-Auth: Q3OmDbRildQ3ZJe1gPva2fCBBmc Message-ID: Subject: Re: Exception when using package resolver To: ivy-user@ant.apache.org Content-Type: multipart/mixed; boundary=0015174be18257f653049818cefc --0015174be18257f653049818cefc Content-Type: multipart/alternative; boundary=0015174be18257f647049818cefa --0015174be18257f647049818cefa Content-Type: text/plain; charset=ISO-8859-1 It's a bug, but you can safely ignore it. This is occurring while the packager resolver is attempting to delete the temporary build directory it uses. However, the bug can only occur (according to the Javadocs) if an I/O error has occurred while attempting to delete some file(s). This probably includes problems like wrong permissions, etc., so you might investigate what might prevent ivy from being allowed to delete files. The attached patch should fix the exception (but not the underlying problem). If you have a chance please file a bug and reference this patch. -Archie On Thu, Dec 23, 2010 at 12:10 PM, Jonathan Williams < spamhammer1234@gmail.com> wrote: > I recently started using a package resolver for some of my project's > dependencies. It appears to work well for the most part except that at the > end of the build, I occasionally see the following exceptions output to my > console. It is of note that when I see this error output, the build has > still reported as completing successfully. > > Exception in thread "Thread-16" java.lang.NullPointerException > at org.apache.ivy.util.FileUtil.forceDelete(FileUtil.java:303) > at org.apache.ivy.util.FileUtil.forceDelete(FileUtil.java:304) > -- Archie L. Cobbs --0015174be18257f647049818cefa Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable It's a bug, but you can safely ignore it. This is occurring while the p= ackager resolver is attempting to delete the temporary build directory it u= ses.

However, the bug can only occur (according to the Javadocs) if = an I/O error has occurred while attempting to delete some file(s). This pro= bably includes problems like wrong permissions, etc., so you might investig= ate what might prevent ivy from being allowed to delete files.

The attached patch should fix the exception (but not the underlying problem= ). If you have a chance please file a bug and reference this patch.

-Archie

On Thu, Dec 23, 2010 at 12:10= PM, Jonathan Williams <spamhammer1234@gmail.com> wrote:
I recently started using a package resolver for some of my project's dependencies. It appears to work well for the most part except that at the<= br> end of the build, I occasionally see the following exceptions output to my<= br> console. It is of note that when I see this error output, the build has
still reported as completing successfully.

Exception in thread "Thread-16" java.lang.NullPointerException =A0 =A0 =A0 =A0at org.apache.ivy.util.FileUtil.forceDelete(FileUtil.java:3= 03)
=A0 =A0 =A0 =A0at org.apache.ivy.util.FileUtil.forceDelete(FileUtil.java:3= 04)
--
Archie L. Cobbs

--0015174be18257f647049818cefa-- --0015174be18257f653049818cefc Content-Type: text/plain; charset=US-ASCII; name="npebug.txt" Content-Disposition: attachment; filename="npebug.txt" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gi21hyaf0 SW5kZXg6IHNyYy9qYXZhL29yZy9hcGFjaGUvaXZ5L3V0aWwvRmlsZVV0aWwuamF2YQo9PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09Ci0tLSBzcmMvamF2YS9vcmcvYXBhY2hlL2l2eS91dGlsL0ZpbGVVdGlsLmphdmEJKHJldmlz aW9uIDEwNTIzNjApCisrKyBzcmMvamF2YS9vcmcvYXBhY2hlL2l2eS91dGlsL0ZpbGVVdGlsLmph dmEJKHdvcmtpbmcgY29weSkKQEAgLTMwOSw2ICszMDksOCBAQAogICAgICAgICB9CiAgICAgICAg IGlmIChmaWxlLmlzRGlyZWN0b3J5KCkpIHsKICAgICAgICAgICAgIEZpbGVbXSBmaWxlcyA9IGZp bGUubGlzdEZpbGVzKCk7CisgICAgICAgICAgICBpZiAoZmlsZXMgPT0gbnVsbCkKKyAgICAgICAg ICAgICAgICBjb250aW51ZTsKICAgICAgICAgICAgIGZvciAoaW50IGkgPSAwOyBpIDwgZmlsZXMu bGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgICAgICBpZiAoIWZvcmNlRGVsZXRlKGZpbGVzW2ld KSkgewogICAgICAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7Cg== --0015174be18257f653049818cefc--