[
https://issues.apache.org/jira/browse/IVY-1556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Philipp Stevermann updated IVY-1556:
------------------------------------
Attachment: IVY-1556.zip
Minimum failing example
> IllegalStateException / "impossible to get artifacts when data has not been
> loaded." with LatestCompatibleConflictManager
> -------------------------------------------------------------------------------------------------------------------------
>
> Key: IVY-1556
> URL: https://issues.apache.org/jira/browse/IVY-1556
> Project: Ivy
> Issue Type: Bug
> Affects Versions: 2.4.0
> Environment: Ubuntu 14.04.5 LTS
> Oracle JDK 1.6.0_45
> Oracle JDK 1.7.0_80
> Oracle JDK 1.8.0_121
> (optionally Apache Ant 1.9.3)
> Reporter: Philipp Stevermann
> Attachments: IVY-1556.zip
>
>
> Under certain circumstances, Ivy's resolve using the
> LatestCompatibleConflictManager does abort with a message describing the
> conflict it encountered, but leaves sone IvyNodes without ModuleDescriptors,
> causing an IllegalStateException (at
> org.apache.ivy.core.resolve.IvyNode.getArtifacts(IvyNode.java:811)). (I have
> not been able to figure out exactly which circumstances are necessary.) This
> makes finding the conflict more difficult than necessary.
> h3. Steps to reproduce the problem
> # Unpack the attached example
> # Open a shell in the example's top folder
> # Execute ant (tested with Ant 1.9.3) or (if you Ivy cache is clean) java
> -jar ivy-2.4.0.jar -settings ivysettings.xml
> h3. Expected output
> {code}test-org#target-module;1.8.8 (needed by
> [test-org#intermediate-module;1.0.0]) conflicts with
> test-org#target-module;1.3.+ (needed by [test-org#source-module;1.0.0]){code}
> or similar
> h3. Actual output
> {code}impossible to get artifacts when data has not been loaded. IvyNode =
> test-org#other-module;1.0.0{code}
> Please note that the example might not work/fail on all Ivy installations and
> is sensitive to changes in most ivy.xml files of the example (the bug is
> surprisingly fickle).
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)