Return-Path: Delivered-To: apmail-ant-notifications-archive@locus.apache.org Received: (qmail 28623 invoked from network); 3 Sep 2008 14:24:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Sep 2008 14:24:42 -0000 Received: (qmail 53777 invoked by uid 500); 3 Sep 2008 14:24:40 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 53752 invoked by uid 500); 3 Sep 2008 14:24:40 -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 53743 invoked by uid 99); 3 Sep 2008 14:24:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Sep 2008 07:24:40 -0700 X-ASF-Spam-Status: No, hits=-1999.8 required=10.0 tests=ALL_TRUSTED,WHOIS_MYPRIVREG 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; Wed, 03 Sep 2008 14:23:43 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 296B0234C1C3 for ; Wed, 3 Sep 2008 07:23:44 -0700 (PDT) Message-ID: <132344639.1220451824164.JavaMail.jira@brutus> Date: Wed, 3 Sep 2008 07:23:44 -0700 (PDT) From: "Xavier Hanin (JIRA)" To: notifications@ant.apache.org Subject: [jira] Resolved: (IVY-874) can't use gotoNode with a node which has not been visited yet In-Reply-To: <2099210954.1218044924323.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IVY-874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Xavier Hanin resolved IVY-874. ------------------------------ Resolution: Fixed Well, actually this is not a bug, at least from what I reproduce on my own. The point is that Ivy does dependency resolution per configuration. Each configuration is isolated from the others. So in the runtime conf, you only have hibernate 3.2.6.ga, and thus end up with commons-collections 2.1.1. In default conf, with both hibernate and commons-collections 3.2.1, commons-collections 2.1.1 is evicted and not part of the conf. If you really want to always evict commons-collections 2.1.1, I suggest to put your commons-collections 3.2.1 dependency in your runtime conf. And if I've misinterpreted the bug, do not hesitate to reopen once again. > can't use gotoNode with a node which has not been visited yet > ------------------------------------------------------------- > > Key: IVY-874 > URL: https://issues.apache.org/jira/browse/IVY-874 > Project: Ivy > Issue Type: Bug > Components: Core > Affects Versions: 2.0-RC1 > Environment: 2.0.0-rc1-local-20080805174033 (built from trunk); checked using Eclipse 3.3 under Windows XP; Ant 1.7.0; jdk1.5.0_05 > Reporter: rednix > Assignee: Xavier Hanin > Fix For: 2.0-RC1 > > Attachments: hibernate-3.2.6.ga.and.commons-collections-3.2.1_trunk-2008-09-03.log, ivy-bug-log-2008-08-06.txt, Test-test-default.png > > > While using the latest version of Ivy built from the trunk (2.0.0-rc1-local-20080805174033) I can't resolve hibernate 3.2.6 GA and commons-collection 3.2.1 together. Hibernate 3.2.6ga has a dependency on commons-collection 2.1.1 - but I want to include the latest revision 3.2.1 in my project. Using the fairly old ivy-2.0.0-alpha2-incubating.jar there is not such a problem. > The configuration and error logs are as follows: > ivy.xml: > > > > > > > > > > > > > > > > > > ivysettings.xml: > > > > > > > > > > > > > Error-Log: > ... > [ivy:retrieve] == resolving dependencies org.hibernate#hibernate;3.2.6.ga->commons-collections#commons-collections;2.1.1 [compile->compile(*)] > [ivy:retrieve] ERROR: You can't use gotoNode with a node which has not been visited yet. > [ivy:retrieve] Given node id=commons-collections#commons-collections;3.2.1 > [ivy:retrieve] :: problems summary :: > [ivy:retrieve] :::: WARNINGS > [ivy:retrieve] Error while parsing configuration resolve report C:\Documents and Settings\[removed]\.ivy2\cache\Test-test-default.xml > [ivy:retrieve] :::: ERRORS > [ivy:retrieve] You can't use gotoNode with a node which has not been visited yet. > [ivy:retrieve] Given node id=commons-collections#commons-collections;3.2.1 > [ivy:retrieve] > [ivy:retrieve] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS > BUILD FAILED > C:\workspaces\eclipseEuropa\Test\build.xml:433: impossible to resolve dependencies: > java.lang.IllegalArgumentException: You can't use gotoNode with a node which has not been visited yet. > Given node id=commons-collections#commons-collections;3.2.1 > at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:319) > at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277) > at org.apache.ivy.ant.IvyPostResolveTask.ensureResolved(IvyPostResolveTask.java:206) > at org.apache.ivy.ant.IvyPostResolveTask.prepareAndCheck(IvyPostResolveTask.java:153) > at org.apache.ivy.ant.IvyRetrieve.doExecute(IvyRetrieve.java:49) > at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277) > at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:585) > at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) > at org.apache.tools.ant.Task.perform(Task.java:348) > at org.apache.tools.ant.Target.execute(Target.java:357) > at org.apache.tools.ant.Target.performTasks(Target.java:385) > at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) > at org.apache.tools.ant.Project.executeTarget(Project.java:1298) > at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) > at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) > at org.apache.tools.ant.Project.executeTargets(Project.java:1181) > at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) > at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137) > > > The other error/warning concerning the report is not that critical but annoying. > The log prints out: > [ivy:retrieve] resolving dependencies for configuration 'default' > [ivy:retrieve] WARN: Error while parsing configuration resolve report C:\Documents and Settings\[removed]\.ivy2\cache\Test-test-default.xml > [ivy:retrieve] java.text.ParseException: failed to parse report: C:\Documents and Settings\[removed]\.ivy2\cache\Test-test-default.xml: null > [ivy:retrieve] at org.apache.ivy.plugins.report.XmlReportParser.parse(XmlReportParser.java:299) > [ivy:retrieve] at org.apache.ivy.core.report.ConfigurationResolveReport.(ConfigurationResolveReport.java:82) > [ivy:retrieve] at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:483) > [ivy:retrieve] at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:232) > [ivy:retrieve] at org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:190) > [ivy:retrieve] at org.apache.ivy.Ivy.resolve(Ivy.java:502) > [ivy:retrieve] at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:232) > [ivy:retrieve] at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277) > [ivy:retrieve] at org.apache.ivy.ant.IvyPostResolveTask.ensureResolved(IvyPostResolveTask.java:206) > [ivy:retrieve] at org.apache.ivy.ant.IvyPostResolveTask.prepareAndCheck(IvyPostResolveTask.java:153) > [ivy:retrieve] at org.apache.ivy.ant.IvyRetrieve.doExecute(IvyRetrieve.java:49) > [ivy:retrieve] at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277) > [ivy:retrieve] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) > [ivy:retrieve] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > [ivy:retrieve] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > [ivy:retrieve] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > [ivy:retrieve] at java.lang.reflect.Method.invoke(Method.java:585) > [ivy:retrieve] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105) > [ivy:retrieve] at org.apache.tools.ant.Task.perform(Task.java:348) > [ivy:retrieve] at org.apache.tools.ant.Target.execute(Target.java:357) > [ivy:retrieve] at org.apache.tools.ant.Target.performTasks(Target.java:385) > [ivy:retrieve] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329) > [ivy:retrieve] at org.apache.tools.ant.Project.executeTarget(Project.java:1298) > [ivy:retrieve] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) > [ivy:retrieve] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) > [ivy:retrieve] at org.apache.tools.ant.Project.executeTargets(Project.java:1181) > [ivy:retrieve] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) > [ivy:retrieve] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137) > [ivy:retrieve] Caused by: java.lang.NumberFormatException: null > initially posted on the mailing list: http://www.nabble.com/can%27t-use-gotoNode-with-a-node-which-has-not-been-visited-yet-td18850903.html > I've already tried to change the order of the dependency definition but with no luck (same result). > The resolve using the ivy-2.0.0-alpha2-incubating.jar works perfectly. I will attach the console log for that to the issue as a textfile. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.