Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-10215

Ivy library threadsafe bug cause dependency resolve failed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.21, 2.5.15
    • 2.5.16
    • Grape
    • None

    Description

      Ivy library fix the threadsafe issue in https://github.com/apache/ant-ivy/commit/30696f6e16b09ad3f992e409472bd2b1e97a94f1 that released in version 2.5.0.

      Recommendation to upgrade the version in Ivy Library dependency to 2.5.0.

      Sample Issue encounter in Jenkins during multiple access in grape cache, in fact the cache file is exist in the cache folder. After a Jenkins restart only can solve this issue.

      org.jenkinsci.plugins.workflow.cps.CpsCompilationErrorsException: startup failed:
      General error during conversion: Error grabbing Grapes -- [unresolved dependency: org.jodd#jodd-http;5.0.6: several problems occurred while resolving dependency: org.jodd#jodd-http;5.0.6 {default=[default]}:
      	java.util.NoSuchElementException at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:721)
      	java.util.NoSuchElementException at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:721)
      	java.util.NoSuchElementException at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:721)
      	java.util.NoSuchElementException at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:721)
      at sun.reflect.GeneratedConstructorAccessor14681.newInstance(Unknown Source)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
      	at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77)
      	at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
      	at groovy.grape.GrapeIvy.getDependencies(GrapeIvy.groovy:424)
      	at sun.reflect.GeneratedMethodAccessor833.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
      	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
      	at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:571)
      

       

      Attachments

        Activity

          People

            paulk Paul King
            phang98 Phang Khar Yeow
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1m Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 10m
                1h 10m