Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5267610265 for ; Thu, 19 Dec 2013 12:59:34 +0000 (UTC) Received: (qmail 96170 invoked by uid 500); 19 Dec 2013 12:58:15 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 96057 invoked by uid 500); 19 Dec 2013 12:58:11 -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 95969 invoked by uid 99); 19 Dec 2013 12:58:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Dec 2013 12:58:07 +0000 Date: Thu, 19 Dec 2013 12:58:07 +0000 (UTC) From: "Carsten Pfeiffer (JIRA)" To: notifications@ant.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (IVY-1454) OverlappingFileLockException when using artifact-lock-nio 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-1454?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carsten Pfeiffer updated IVY-1454: ---------------------------------- Attachment: test--IVY-1454.zip This is a testproject that reproduces the error. It's just a {{<parallel>}} task with multiple {{<ivy:resolve>}} tasks being called. Just run the supplied build.xml. > OverlappingFileLockException when using artifact-lock-nio > --------------------------------------------------------- > > Key: IVY-1454 > URL: https://issues.apache.org/jira/browse/IVY-1454 > Project: Ivy > Issue Type: Bug > Components: Core > Affects Versions: 2.4.0 > Environment: Debian Linux (Wheezy) > Oracle Java 1.7.0+update45, > ivy_2.4.0.alpha_20131214174343.jar downloaded from https://builds.apache.org/job/Ivy/446/ > Reporter: Carsten Pfeiffer > Assignee: Charles Duffy > Priority: Minor > Attachments: test--IVY-1454.zip > > > When trying to use {{artifact-lock-nio}} as the lock strategy, I get resolve errors due to {{OverlappingFileLockException}} being thrown: > {code} > [ivy:resolve] WARN: :: org.hamcrest#hamcrest-core;1.1: java.nio.channels.OverlappingFileLockException at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255) > [ivy:resolve] WARN: :: org.glassfish#javax.ejb;3.1: java.nio.channels.OverlappingFileLockException at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255) > [ivy:resolve] WARN: :: org.jboss.weld.se#weld-se-core;1.1.10.Final: java.nio.channels.OverlappingFileLockException at sun.nio.ch.SharedFileLockTable.checkList(FileLockTable.java:255) > {code} > The reason is probably related to our use of the {{<parallel>}} and {{<antcallback>}} tasks. The documentation of the {{antcallback}} task is here: http://ant-contrib.sourceforge.net/tasks/tasks/antcallback_task.html > {code} > > > > > > {code} > All the testxxx targets perform a resolve before running some junit tests in a separate vm. These resolve calls appear to cause the {{OverlappingFileLockException}}. -- This message was sent by Atlassian JIRA (v6.1.4#6159)