[ 
https://issues.apache.org/jira/browse/GROOVY-10215?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17411737#comment-17411737
 ] 

Paul King edited comment on GROOVY-10215 at 9/8/21, 7:19 AM:
-------------------------------------------------------------

Proposed PR merged. Thanks!
The Ivy vs Groovy JDK requirements don't make the suggestion suitable for 
GROOVY_2_4_X.
If we do another 2.5 release, it will appear in that version.

Note: a workaround if you have access to the Jenkins server, and aren't running 
that server on JDK 6, is to replace the Ivy 2.4 jar with the Ivy 2.5 jar on the 
Jenkins classpath. (Untested)


was (Author: paulk):
Proposed PR merged. Thanks!
The Ivy vs Groovy JDK requirements don't make the suggestion suitable for 
GROOVY_2_4_X.
If we do another 2.5 release, it will appear in that version.

Note: a workaround if you have access to the Jenkins server, and aren't running 
that server on JDK 6, is to replace the Ivy 2.4 jar with the Ivy 2.5 jar on the 
Jenkins classpath.

> Ivy library threadsafe bug cause dependency resolve failed
> ----------------------------------------------------------
>
>                 Key: GROOVY-10215
>                 URL: https://issues.apache.org/jira/browse/GROOVY-10215
>             Project: Groovy
>          Issue Type: Bug
>          Components: Grape
>    Affects Versions: 2.4.21, 2.5.15
>            Reporter: Phang Khar Yeow
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 2.5.16
>
>   Original Estimate: 1m
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> 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.
> {code:java}
> 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)
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to