[jira] Created: (IVY-1225) Ivy won't import atomikos-util claiming cycling dependency -parent inheritance problem?

2010-09-08 Thread Steve Loughran (JIRA)
Ivy won't import atomikos-util claiming cycling dependency -parent inheritance 
problem?
---

 Key: IVY-1225
 URL: https://issues.apache.org/jira/browse/IVY-1225
 Project: Ivy
  Issue Type: Bug
  Components: Maven Compatibility
Reporter: Steve Loughran


I have a bit of ivy.xml which goes
{noformat} 
dependency org=com.atomikos
  name=atomikos-util
  rev=3.6.4
  conf=redist-default/
{noformat} 
This is being rejected due to cyclic dependencies:
{noformat} 

impossible to resolve dependencies:
java.lang.IllegalArgumentException: a module is not authorized to 
depend on itself: com.atomikos#atomikos-util;3.6.4
at 
org.apache.ivy.core.resolve.IvyNodeCallers.addCaller(IvyNodeCallers.java:169)
at org.apache.ivy.core.resolve.IvyNode.addCaller(IvyNode.java:1026)
at org.apache.ivy.core.resolve.IvyNode.getDependencies(IvyNode.java:352)
at 
org.apache.ivy.core.resolve.VisitNode.getDependencies(VisitNode.java:301)
at 
org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:750)
at 
org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:679)
at 
org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:744)
at 
org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:679)
at 
org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:744)
at 
org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:679)
at 
org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:757)
at 
org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:679)
at 
org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:744)
at 
org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:679)
at 
org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:744)
at 
org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:679)
at 
org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:551)
at 
org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:235)
at 
org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:193)
at org.apache.ivy.Ivy.resolve(Ivy.java:502)
at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:244)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1249)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:218)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
{noformat} 

Only here is the problem: atomikos doesn't depend on itself. It has a parent 
group which then refers down -that could be the dependency.
{noformat}

?xml version=1.0 encoding=UTF-8? 
project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd; 
modelVersion4.0.0/modelVersion 
parent 
groupIdcom.atomikos/groupId 
artifactIdtransactions-essentials-all/artifactId 
version3.6.4/version 
/parent 
groupIdcom.atomikos/groupId 
artifactIdatomikos-util/artifactId 
version3.6.4/version 
nameAtomikos Util/name 
 
dependencies 
groupIdjavax.servlet/groupId 
artifactIdservlet-api/artifactId 
version2.3/version 
scopeprovided/scope 
/dependencies 
/project 
{noformat}

Does having a parent template which declares a dependency 

[jira] Resolved: (IVY-817) If DNS is playing up, Ivy takes a lot longer to sort project dependencies

2008-05-19 Thread Steve Loughran (JIRA)

 [ 
https://issues.apache.org/jira/browse/IVY-817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Loughran resolved IVY-817.


   Resolution: Fixed
Fix Version/s: 2.0-RC1

This is fixed in SVN head...there may be a delay in the first sort, but after 
that it flies. 

BUILD SUCCESSFUL - at 19/05/08 18:35
Total time: 2 minutes 30 seconds

Caching may even provide a slight speedup for everyone, if the JDK is 
recalculating the hostname every time it is asked.

 If DNS is playing up, Ivy takes a lot longer to sort project dependencies
 -

 Key: IVY-817
 URL: https://issues.apache.org/jira/browse/IVY-817
 Project: Ivy
  Issue Type: Bug
  Components: Core
Affects Versions: 2.0.0-beta-2
 Environment: Ubuntu 8.04 with messed up DNS
Reporter: Steve Loughran
 Fix For: 2.0-RC1


 I've just upgraded to Ubuntu 8.04, and for reasons I dont fully understand. 
 DNS is now very patchy; long pauses before responses coming in
 running at -d level, the pauses happen after printing all the pauses, 
 finishing when the Sort dependencies response comes in
 [ivy-projects] Module descriptor is processed : org.smartfrog#sf-tasks;[EMAIL 
 PROTECTED]
 [ivy-projects] Module descriptor is processed : 
 org.smartfrog#smartfrog;[EMAIL PROTECTED]
 //insert 30s pause here
 [ivy-projects] Sort dependencies of : org.smartfrog#sf-m32;[EMAIL PROTECTED] 
 / Number of dependencies = 9
 During resolution, the delay happens after the sort
 [ivy:resolve] Module descriptor is processed : org.apache.ant#ant;1.7.0
 [ivy:resolve] Sort done for : org.apache.ant#ant-apache-regexp;1.7.0
 [ivy:resolve] Sort dependencies of : org.apache.ant#ant-apache-resolver;1.7.0 
 / Number of dependencies = 3
 //here is where the delay is
 [ivy:resolve] Module descriptor is processed : org.apache.ant#ant;1.7.0
 [ivy:resolve] Sort done for : org.apache.ant#ant-apache-resolver;1.7.0
 [ivy:resolve] Sort dependencies of : org.apache.ant#ant-commons-logging;1.7.0 
 / Number of dependencies = 3
 -I'm not sure why dns/rdns should be needed during a sort, unless remote 
 repositories are being polled. I'm also surprised, as java caches DNS 
 responses by default. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (IVY-817) If DNS is playing up, Ivy takes a lot longer to sort project dependencies

2008-05-16 Thread Steve Loughran (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12597399#action_12597399
 ] 

Steve Loughran commented on IVY-817:


1. it may be something just after the sort, some check of the repository list 
-just something that doesnt get printed out. For all I know, it could be the 
java5/6 proxy stuff trying reverse-dns when a URL gets created; I remember some 
bugrep on that subject once.

2. No, I havent fixed my machine yet. I will go for a thread dump and see where 
we are. I will leave the machine broken until we've got this bug fixed. 

 If DNS is playing up, Ivy takes a lot longer to sort project dependencies
 -

 Key: IVY-817
 URL: https://issues.apache.org/jira/browse/IVY-817
 Project: Ivy
  Issue Type: Bug
  Components: Core
Affects Versions: 2.0.0-beta-2
 Environment: Ubuntu 8.04 with messed up DNS
Reporter: Steve Loughran

 I've just upgraded to Ubuntu 8.04, and for reasons I dont fully understand. 
 DNS is now very patchy; long pauses before responses coming in
 running at -d level, the pauses happen after printing all the pauses, 
 finishing when the Sort dependencies response comes in
 [ivy-projects] Module descriptor is processed : org.smartfrog#sf-tasks;[EMAIL 
 PROTECTED]
 [ivy-projects] Module descriptor is processed : 
 org.smartfrog#smartfrog;[EMAIL PROTECTED]
 //insert 30s pause here
 [ivy-projects] Sort dependencies of : org.smartfrog#sf-m32;[EMAIL PROTECTED] 
 / Number of dependencies = 9
 During resolution, the delay happens after the sort
 [ivy:resolve] Module descriptor is processed : org.apache.ant#ant;1.7.0
 [ivy:resolve] Sort done for : org.apache.ant#ant-apache-regexp;1.7.0
 [ivy:resolve] Sort dependencies of : org.apache.ant#ant-apache-resolver;1.7.0 
 / Number of dependencies = 3
 //here is where the delay is
 [ivy:resolve] Module descriptor is processed : org.apache.ant#ant;1.7.0
 [ivy:resolve] Sort done for : org.apache.ant#ant-apache-resolver;1.7.0
 [ivy:resolve] Sort dependencies of : org.apache.ant#ant-commons-logging;1.7.0 
 / Number of dependencies = 3
 -I'm not sure why dns/rdns should be needed during a sort, unless remote 
 repositories are being polled. I'm also surprised, as java caches DNS 
 responses by default. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Commented: (IVY-817) If DNS is playing up, Ivy takes a lot longer to sort project dependencies

2008-05-16 Thread Steve Loughran (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-817?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12597478#action_12597478
 ] 

Steve Loughran commented on IVY-817:


I have a stack trace, I was right, it really is DNS.

[ivy:resolve] == resolving dependencies 
org.smartfrog#sf-loggingservices;latest.integration-org.smartfrog#smartfrog;latest.integration
 [runtime-services-master]
2008-05-16 14:36:23
Full thread dump Java HotSpot(TM) Client VM (10.0-b22 mixed mode, sharing):

Low Memory Detector daemon prio=10 tid=0x08097000 nid=0x1ddf runnable 
[0x..0x]
   java.lang.Thread.State: RUNNABLE

CompilerThread0 daemon prio=10 tid=0x0808c400 nid=0x1dde waiting on condition 
[0x..0xb5a29a78]
   java.lang.Thread.State: RUNNABLE

Signal Dispatcher daemon prio=10 tid=0x0808b000 nid=0x1ddd waiting on 
condition [0x..0x]
   java.lang.Thread.State: RUNNABLE

Finalizer daemon prio=10 tid=0x08081c00 nid=0x1ddc in Object.wait() 
[0xb5b11000..0xb5b11ec0]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on 0x8c4d2e60 (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116)
- locked 0x8c4d2e60 (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159)

Reference Handler daemon prio=10 tid=0x08080c00 nid=0x1ddb in Object.wait() 
[0xb5b62000..0xb5b62e40]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on 0x8c4d2ee8 (a java.lang.ref.Reference$Lock)
at java.lang.Object.wait(Object.java:485)
at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116)
- locked 0x8c4d2ee8 (a java.lang.ref.Reference$Lock)

main prio=10 tid=0x08058c00 nid=0x1dd9 runnable [0xb7dc1000..0xb7dc2218]
   java.lang.Thread.State: RUNNABLE
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:849)
at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1200)
at java.net.InetAddress.getLocalHost(InetAddress.java:1350)
at org.apache.ivy.util.HostUtil.getLocalHostName(HostUtil.java:42)
at org.apache.ivy.Ivy.getWorkingRevision(Ivy.java:808)
at org.apache.ivy.core.sort.ModuleInSort.match(ModuleInSort.java:180)
at 
org.apache.ivy.core.sort.CollectionOfModulesToSort.getModuleDescriptorDependency(CollectionOfModulesToSort.java:103)
at 
org.apache.ivy.core.sort.ModuleDescriptorSorter.sortModuleDescriptorsHelp(ModuleDescriptorSorter.java:97)
at 
org.apache.ivy.core.sort.ModuleDescriptorSorter.sortModuleDescriptors(ModuleDescriptorSorter.java:66)
at 
org.apache.ivy.core.sort.SortEngine.sortModuleDescriptors(SortEngine.java:106)
at org.apache.ivy.core.sort.SortEngine.sortNodes(SortEngine.java:69)
at 
org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:522)
at 
org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:233)
at 
org.apache.ivy.core.resolve.ResolveEngine.resolve(ResolveEngine.java:191)
at org.apache.ivy.Ivy.resolve(Ivy.java:506)
at org.apache.ivy.ant.IvyResolve.doExecute(IvyResolve.java:230)
at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:275)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:354)
at org.apache.tools.ant.Target.performTasks(Target.java:379)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1324)
at org.apache.tools.ant.Project.executeTarget(Project.java:1293)
at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1176)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

VM Thread prio=10 tid=0x0807f400 nid=0x1dda runnable 

VM Periodic Task Thread prio=10 tid=0x080aa800 nid=0x1de0 waiting on 
condition 

JNI global references: 991

Heap
 def new generation   total 960K, used 793K [0x8bfd, 

[jira] Commented: (IVY-775) Provide webservice as dependency

2008-03-18 Thread Steve Loughran (JIRA)

[ 
https://issues.apache.org/jira/browse/IVY-775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=12579796#action_12579796
 ] 

Steve Loughran commented on IVY-775:


-I'm not sure it should be ivy's job to do this. 
-there are many other stacks than Axis, including axis2 and apache CXF, to name 
but two in our own codebase
-I'm not sure that going from XML to Java works long term, see Rethinking the 
Java SOAP stack...

 Provide webservice as dependency
 

 Key: IVY-775
 URL: https://issues.apache.org/jira/browse/IVY-775
 Project: Ivy
  Issue Type: New Feature
  Components: Core
Reporter: Jan Matèrne
Priority: Minor

 Just an idea: 
 Could it be use to define an URL to a WSDL as dependency and Ivy would 
 download 
 - download the document
 - create the java code (e.g. using Axis)
 - compile the code (using Ant's compile)
 - create the jar (using Ant's jar)
 - provide that JAR as library
 - provide webservice jars (Axis) as transitive dependency
 I havent any idea about versioning of the wsdl ...
 As said - only an idea.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.