Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error grabbing Grapes com.konghq#unirest-java;2.4.03 #940

Open
petod108 opened this issue Sep 27, 2022 · 0 comments
Open

Error grabbing Grapes com.konghq#unirest-java;2.4.03 #940

petod108 opened this issue Sep 27, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@petod108
Copy link
Contributor

Describe the bug
Jenkins fails by trying compile
@grab(group="com.konghq", module="unirest-java", version="2.4.03", classifier="standalone")

To Reproduce
Steps to reproduce the behavior:

  1. Have name space with 6 components:
    • three spock-geb
    • release manager
    • front
    • backend
  2. set up issues linked with 3 test project
  3. have 1 release
  4. run developer's preview
  5. RANDOM error because of grabbing grapes

Expected behavior
Should get no error

Screenshots
If applicable, add screenshots to help explain your problem.

Affected version (please complete the following information):

  • jenkins shared library master 59d3d7b

Log Output (ensure to remove any confidential information like tokens, project names, etc.

09:30:46      org.jenkinsci.plugins.workflow.cps.CpsCompilationErrorsException: startup failed:
09:30:46      General error during conversion: Error grabbing Grapes -- [unresolved dependency: com.konghq#unirest-java;2.4.03: several problems occurred while resolving dependency: com.konghq#unirest-java;2.4.03 {default=[default]}:
09:30:46      	java.util.NoSuchElementException at java.base/java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:721)
09:30:46      	java.util.NoSuchElementException at java.base/java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:721)
09:30:46      	java.util.NoSuchElementException at java.base/java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:721)]
09:30:46      
09:30:46      java.lang.RuntimeException: Error grabbing Grapes -- [unresolved dependency: com.konghq#unirest-java;2.4.03: several problems occurred while resolving dependency: com.konghq#unirest-java;2.4.03 {default=[default]}:
09:30:46      	java.util.NoSuchElementException at java.base/java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:721)
09:30:46      	java.util.NoSuchElementException at java.base/java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:721)
09:30:46      	java.util.NoSuchElementException at java.base/java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:721)]
09:30:46      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
09:30:46      	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
09:30:46      	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
09:30:46      	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
09:30:46      	at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)
09:30:46      	at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:77)
09:30:46      	at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
09:30:46      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:60)
09:30:46      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:235)
09:30:46      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:247)
09:30:46      	at groovy.grape.GrapeIvy.getDependencies(GrapeIvy.groovy:424)
09:30:46      	at jdk.internal.reflect.GeneratedMethodAccessor498.invoke(Unknown Source)
09:30:46      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
09:30:46      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
09:30:46      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
09:30:46      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
09:30:46      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
09:30:46      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
09:30:46      	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
09:30:46      	at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:571)
09:30:46      	at jdk.internal.reflect.GeneratedMethodAccessor1257.invoke(Unknown Source)
09:30:46      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
09:30:46      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
09:30:46      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
09:30:46      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
09:30:46      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
09:30:46      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
09:30:46      	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
09:30:46      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:190)
09:30:46      	at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:538)
09:30:46      	at jdk.internal.reflect.GeneratedMethodAccessor1255.invoke(Unknown Source)
09:30:46      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
09:30:46      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
09:30:46      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
09:30:46      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
09:30:46      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
09:30:46      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
09:30:46      	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
09:30:46      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:182)
09:30:46      	at groovy.grape.GrapeIvy.grab(GrapeIvy.groovy:256)
09:30:46      	at groovy.grape.Grape.grab(Grape.java:167)
09:30:46      	at groovy.grape.GrabAnnotationTransformation.visit(GrabAnnotationTransformation.java:378)
09:30:46      	at org.codehaus.groovy.transform.ASTTransformationVisitor$3.call(ASTTransformationVisitor.java:321)
09:30:46      	at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:943)
09:30:46      	at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:605)
09:30:46      	at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:581)
09:30:46      	at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:558)
09:30:46      	at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298)
09:30:46      	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268)
09:30:46      	at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:254)
09:30:46      	at groovy.lang.GroovyClassLoader.recompile(GroovyClassLoader.java:761)
09:30:46      	at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:718)
09:30:46      	at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:787)
09:30:46      	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:575)
09:30:46      	at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell$TimingLoader.loadClass(CpsGroovyShell.java:170)
09:30:46      	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:575)
09:30:46      	at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:677)
09:30:46      	at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:787)
09:30:46      	at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:775)
09:30:46      	at org.jenkinsci.plugins.workflow.cps.global.UserDefinedGlobalVariable.getValue(UserDefinedGlobalVariable.java:57)
09:30:46      	at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:113)
09:30:46      	at jdk.internal.reflect.GeneratedMethodAccessor361.invoke(Unknown Source)
09:30:46      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
09:30:46      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
09:30:46      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
09:30:46      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
09:30:46      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
09:30:46      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
09:30:46      	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
09:30:46      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
09:30:46      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
09:30:46      	at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:160)
09:30:46      	at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23)
09:30:46      	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:157)
09:30:46      	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:142)
09:30:46      	at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:158)
09:30:46      	at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:162)
09:30:46      	at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
09:30:46      	at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:84)
09:30:46      	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113)
09:30:46      	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83)
09:30:46      	at jdk.internal.reflect.GeneratedMethodAccessor350.invoke(Unknown Source)
09:30:46      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
09:30:46      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
09:30:46      	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
09:30:46      	at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55)
09:30:46      	at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45)
09:30:46      	at jdk.internal.reflect.GeneratedMethodAccessor352.invoke(Unknown Source)
09:30:46      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
09:30:46      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
09:30:46      	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
09:30:46      	at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
09:30:46      	at com.cloudbees.groovy.cps.Next.step(Next.java:83)
09:30:46      	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
09:30:46      	at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
09:30:46      	at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
09:30:46      	at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
09:30:46      	at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
09:30:46      	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18)
09:30:46      	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51)
09:30:46      	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:186)
09:30:46      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:370)
09:30:46      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$200(CpsThreadGroup.java:93)
09:30:46      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:282)
09:30:46      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:270)
09:30:46      	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:66)
09:30:46      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
09:30:46      	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131)
09:30:46      	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
09:30:46      	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
09:30:46      	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
09:30:46      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
09:30:46      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
09:30:46      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
09:30:46      	at java.base/java.lang.Thread.run(Thread.java:834)

Additional context
This library has many vulnerabilities
https://mvnrepository.com/artifact/com.konghq/unirest-java/2.4.03

@petod108 petod108 added the bug Something isn't working label Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant