java.lang.RuntimeException: Error grabbing Grapes -- [download failed: org.kohsuke.stapler#json-lib;2.1-rev3!json-lib.jar, download failed: args4j#args4j;2.0.19!args4j.jar, download failed: org.apache.maven#maven-model;3.0-alpha-2!maven-model.jar]

Jenkins JIRA | Arnaud Héritier | 2 years ago
  1. 0

    By default with an empty local Grapes repository some dependencies are failing to be downloaded and nothing is documented if a specific configuration (http://docs.groovy-lang.org/latest/html/documentation/grape.html#Grape-Advancedconfiguration) is required {code} arnaud@mbp-arnaud:~/Code/Jenkins/backend-crawler (git:master)$ JAVA_OPTS="-Dgroovy.grape.report.downloads=true" ./lib/runner.groovy ant_maven.groovy loading dependencies...Resolving dependency: org.jenkins-ci#update-center2;1.20 {default=[default]} Resolving dependency: org.jenkins-ci#htmlunit;2.6-jenkins-4 {default=[default]} Resolving dependency: net.sourceforge.nekohtml#nekohtml;1.9.13 {default=[default]} Preparing to download artifact org.jenkins-ci#update-center2;1.20!update-center2.jar Preparing to download artifact org.jenkins-ci#htmlunit;2.6-jenkins-4!htmlunit.jar Preparing to download artifact net.sourceforge.nekohtml#nekohtml;1.9.13!nekohtml.jar Preparing to download artifact org.jvnet.hudson#crypto-util;1.0!crypto-util.jar Preparing to download artifact dom4j#dom4j;1.6.1!dom4j.jar Preparing to download artifact jaxen#jaxen;1.1.1!jaxen.jar Preparing to download artifact com.sun.xml.bind#jaxb-impl;2.1.6!jaxb-impl.jar Preparing to download artifact org.jvnet.hudson#confluence-api;1.0!confluence-api.jar Preparing to download artifact org.kohsuke.stapler#json-lib;2.1-rev3!json-lib.jar Preparing to download artifact commons-io#commons-io;1.3.2!commons-io.jar Preparing to download artifact args4j#args4j;2.0.19!args4j.jar Preparing to download artifact org.sonatype.nexus#nexus-indexer;2.0.0!nexus-indexer.jar Preparing to download artifact org.codehaus.plexus#plexus-container-default;1.5.5!plexus-container-default.jar Preparing to download artifact org.apache.maven.wagon#wagon-http;1.0-beta-5!wagon-http.jar Preparing to download artifact org.apache.maven#maven-compat;3.0-alpha-2!maven-compat.jar Preparing to download artifact org.jenkins-ci#version-number;1.1!version-number.jar Preparing to download artifact bouncycastle#bcprov-jdk15;140!bcprov-jdk15.jar Preparing to download artifact org.apache.ant#ant;1.8.1!ant.jar Preparing to download artifact jetty#jetty-util;6.0.0rc1!jetty-util.jar Preparing to download artifact jdom#jdom;1.0!jdom.jar Preparing to download artifact xom#xom;1.0!xom.jar Preparing to download artifact xerces#xmlParserAPIs;2.6.2!xmlParserAPIs.jar Preparing to download artifact com.ibm.icu#icu4j;2.6.1!icu4j.jar Preparing to download artifact javax.xml.bind#jaxb-api;2.1!jaxb-api.jar Preparing to download artifact javax.xml.stream#stax-api;1.0-2!stax-api.jar Preparing to download artifact javax.activation#activation;1.1!activation.jar Preparing to download artifact org.apache.axis#axis;1.4!axis.jar Preparing to download artifact javax.xml#jaxrpc-api;1.1!jaxrpc-api.jar Preparing to download artifact javax.xml.soap#saaj-api;1.3!saaj-api.jar Preparing to download artifact wsdl4j#wsdl4j;1.6.1!wsdl4j.jar Preparing to download artifact commons-discovery#commons-discovery;0.4!commons-discovery.jar Preparing to download artifact commons-beanutils#commons-beanutils;1.7.0!commons-beanutils.jar Preparing to download artifact net.sf.ezmorph#ezmorph;1.0.3!ezmorph.jar Preparing to download artifact log4j#log4j;1.2.12!log4j.jar Preparing to download artifact org.codehaus.plexus#plexus-component-annotations;1.0-beta-3.0.5!plexus-component-annotations.jar Preparing to download artifact org.codehaus.plexus#plexus-cli;1.2!plexus-cli.jar Preparing to download artifact org.apache.lucene#lucene-core;2.3.2!lucene-core.jar Preparing to download artifact commons-cli#commons-cli;1.0!commons-cli.jar Preparing to download artifact org.apache.maven.archetype#archetype-common;2.0-alpha-1!archetype-common.jar Preparing to download artifact org.apache.maven.wagon#wagon-provider-api;1.0-beta-5!wagon-provider-api.jar Preparing to download artifact junit#junit;3.8.2!junit.jar Preparing to download artifact net.sourceforge.jchardet#jchardet;1.0!jchardet.jar Preparing to download artifact org.codehaus.plexus#plexus-velocity;1.1.3!plexus-velocity.jar Preparing to download artifact org.codehaus.plexus#plexus-classworlds;2.2.2!plexus-classworlds.jar Preparing to download artifact org.apache.xbean#xbean-reflect;3.4!xbean-reflect.jar(bundle) Preparing to download artifact com.google.collections#google-collections;1.0!google-collections.jar Preparing to download artifact commons-logging#commons-logging-api;1.1!commons-logging-api.jar Preparing to download artifact org.apache.maven.wagon#wagon-http-shared;1.0-beta-5!wagon-http-shared.jar Preparing to download artifact nekohtml#xercesMinimal;1.9.6.2!xercesMinimal.jar Preparing to download artifact commons-httpclient#commons-httpclient;3.1!commons-httpclient.jar Preparing to download artifact org.apache.maven#maven-model;3.0-alpha-2!maven-model.jar Preparing to download artifact org.codehaus.plexus#plexus-utils;1.5.6!plexus-utils.jar Preparing to download artifact org.apache.ant#ant-launcher;1.8.1!ant-launcher.jar Preparing to download artifact xalan#xalan;2.7.1!xalan.jar Preparing to download artifact commons-collections#commons-collections;3.2.1!commons-collections.jar Preparing to download artifact commons-lang#commons-lang;2.4!commons-lang.jar Preparing to download artifact commons-codec#commons-codec;1.4!commons-codec.jar Preparing to download artifact org.jvnet.hudson#htmlunit-core-js;2.6-hudson-1!htmlunit-core-js.jar Preparing to download artifact xerces#xercesImpl;2.9.1!xercesImpl.jar Preparing to download artifact net.sourceforge.cssparser#cssparser;0.9.5!cssparser.jar Preparing to download artifact commons-logging#commons-logging;1.1.1!commons-logging.jar Preparing to download artifact xalan#serializer;2.7.1!serializer.jar Preparing to download artifact xml-apis#xml-apis;1.3.04!xml-apis.jar Preparing to download artifact org.w3c.css#sac;1.3!sac.jar org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: General error during conversion: Error grabbing Grapes -- [download failed: org.kohsuke.stapler#json-lib;2.1-rev3!json-lib.jar, download failed: args4j#args4j;2.0.19!args4j.jar, download failed: org.apache.maven#maven-model;3.0-alpha-2!maven-model.jar] java.lang.RuntimeException: Error grabbing Grapes -- [download failed: org.kohsuke.stapler#json-lib;2.1-rev3!json-lib.jar, download failed: args4j#args4j;2.0.19!args4j.jar, download failed: org.apache.maven#maven-model;3.0-alpha-2!maven-model.jar] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77) at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:71) at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:81) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:232) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:244) at groovy.grape.GrapeIvy.getDependencies(GrapeIvy.groovy:418) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:166) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:56) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151) at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:563) at groovy.grape.GrapeIvy$resolve$1.callCurrent(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:187) at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:532) at groovy.grape.GrapeIvy$resolve$0.callCurrent(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:179) at groovy.grape.GrapeIvy.grab(GrapeIvy.groovy:254) at groovy.grape.Grape.grab(Grape.java:163) at groovy.grape.GrabAnnotationTransformation.visit(GrabAnnotationTransformation.java:358) at org.codehaus.groovy.transform.ASTTransformationVisitor$3.call(ASTTransformationVisitor.java:319) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:928) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:590) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:566) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:543) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:297) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:267) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:253) at groovy.lang.GroovyClassLoader.recompile(GroovyClassLoader.java:760) at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:717) at groovy.lang.GroovyClassLoader$InnerLoader.loadClass(GroovyClassLoader.java:424) at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:786) at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:774) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at java_lang_Class$forName.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:138) at runner.run(runner.groovy:4) at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:261) at groovy.lang.GroovyShell.run(GroovyShell.java:522) at groovy.lang.GroovyShell.run(GroovyShell.java:511) at groovy.ui.GroovyMain.processOnce(GroovyMain.java:650) at groovy.ui.GroovyMain.run(GroovyMain.java:381) at groovy.ui.GroovyMain.process(GroovyMain.java:367) at groovy.ui.GroovyMain.processArgs(GroovyMain.java:126) at groovy.ui.GroovyMain.main(GroovyMain.java:106) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:106) at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:128) 1 error {code} Strangely these libraries should be available : * http://repo.jenkins-ci.org/public/org/kohsuke/stapler/json-lib/2.1-rev3/ * http://repo.jenkins-ci.org/public/args4j/args4j/2.0.19/ * http://repo.jenkins-ci.org/public/org/apache/maven/maven-model/3.0-alpha-2/ I always reproduce the problem and the stack trace doesn't give any clue about the error

    Jenkins JIRA | 2 years ago | Arnaud Héritier
    java.lang.RuntimeException: Error grabbing Grapes -- [download failed: org.kohsuke.stapler#json-lib;2.1-rev3!json-lib.jar, download failed: args4j#args4j;2.0.19!args4j.jar, download failed: org.apache.maven#maven-model;3.0-alpha-2!maven-model.jar]
  2. 0

    By default with an empty local Grapes repository some dependencies are failing to be downloaded and nothing is documented if a specific configuration (http://docs.groovy-lang.org/latest/html/documentation/grape.html#Grape-Advancedconfiguration) is required {code} arnaud@mbp-arnaud:~/Code/Jenkins/backend-crawler (git:master)$ JAVA_OPTS="-Dgroovy.grape.report.downloads=true" ./lib/runner.groovy ant_maven.groovy loading dependencies...Resolving dependency: org.jenkins-ci#update-center2;1.20 {default=[default]} Resolving dependency: org.jenkins-ci#htmlunit;2.6-jenkins-4 {default=[default]} Resolving dependency: net.sourceforge.nekohtml#nekohtml;1.9.13 {default=[default]} Preparing to download artifact org.jenkins-ci#update-center2;1.20!update-center2.jar Preparing to download artifact org.jenkins-ci#htmlunit;2.6-jenkins-4!htmlunit.jar Preparing to download artifact net.sourceforge.nekohtml#nekohtml;1.9.13!nekohtml.jar Preparing to download artifact org.jvnet.hudson#crypto-util;1.0!crypto-util.jar Preparing to download artifact dom4j#dom4j;1.6.1!dom4j.jar Preparing to download artifact jaxen#jaxen;1.1.1!jaxen.jar Preparing to download artifact com.sun.xml.bind#jaxb-impl;2.1.6!jaxb-impl.jar Preparing to download artifact org.jvnet.hudson#confluence-api;1.0!confluence-api.jar Preparing to download artifact org.kohsuke.stapler#json-lib;2.1-rev3!json-lib.jar Preparing to download artifact commons-io#commons-io;1.3.2!commons-io.jar Preparing to download artifact args4j#args4j;2.0.19!args4j.jar Preparing to download artifact org.sonatype.nexus#nexus-indexer;2.0.0!nexus-indexer.jar Preparing to download artifact org.codehaus.plexus#plexus-container-default;1.5.5!plexus-container-default.jar Preparing to download artifact org.apache.maven.wagon#wagon-http;1.0-beta-5!wagon-http.jar Preparing to download artifact org.apache.maven#maven-compat;3.0-alpha-2!maven-compat.jar Preparing to download artifact org.jenkins-ci#version-number;1.1!version-number.jar Preparing to download artifact bouncycastle#bcprov-jdk15;140!bcprov-jdk15.jar Preparing to download artifact org.apache.ant#ant;1.8.1!ant.jar Preparing to download artifact jetty#jetty-util;6.0.0rc1!jetty-util.jar Preparing to download artifact jdom#jdom;1.0!jdom.jar Preparing to download artifact xom#xom;1.0!xom.jar Preparing to download artifact xerces#xmlParserAPIs;2.6.2!xmlParserAPIs.jar Preparing to download artifact com.ibm.icu#icu4j;2.6.1!icu4j.jar Preparing to download artifact javax.xml.bind#jaxb-api;2.1!jaxb-api.jar Preparing to download artifact javax.xml.stream#stax-api;1.0-2!stax-api.jar Preparing to download artifact javax.activation#activation;1.1!activation.jar Preparing to download artifact org.apache.axis#axis;1.4!axis.jar Preparing to download artifact javax.xml#jaxrpc-api;1.1!jaxrpc-api.jar Preparing to download artifact javax.xml.soap#saaj-api;1.3!saaj-api.jar Preparing to download artifact wsdl4j#wsdl4j;1.6.1!wsdl4j.jar Preparing to download artifact commons-discovery#commons-discovery;0.4!commons-discovery.jar Preparing to download artifact commons-beanutils#commons-beanutils;1.7.0!commons-beanutils.jar Preparing to download artifact net.sf.ezmorph#ezmorph;1.0.3!ezmorph.jar Preparing to download artifact log4j#log4j;1.2.12!log4j.jar Preparing to download artifact org.codehaus.plexus#plexus-component-annotations;1.0-beta-3.0.5!plexus-component-annotations.jar Preparing to download artifact org.codehaus.plexus#plexus-cli;1.2!plexus-cli.jar Preparing to download artifact org.apache.lucene#lucene-core;2.3.2!lucene-core.jar Preparing to download artifact commons-cli#commons-cli;1.0!commons-cli.jar Preparing to download artifact org.apache.maven.archetype#archetype-common;2.0-alpha-1!archetype-common.jar Preparing to download artifact org.apache.maven.wagon#wagon-provider-api;1.0-beta-5!wagon-provider-api.jar Preparing to download artifact junit#junit;3.8.2!junit.jar Preparing to download artifact net.sourceforge.jchardet#jchardet;1.0!jchardet.jar Preparing to download artifact org.codehaus.plexus#plexus-velocity;1.1.3!plexus-velocity.jar Preparing to download artifact org.codehaus.plexus#plexus-classworlds;2.2.2!plexus-classworlds.jar Preparing to download artifact org.apache.xbean#xbean-reflect;3.4!xbean-reflect.jar(bundle) Preparing to download artifact com.google.collections#google-collections;1.0!google-collections.jar Preparing to download artifact commons-logging#commons-logging-api;1.1!commons-logging-api.jar Preparing to download artifact org.apache.maven.wagon#wagon-http-shared;1.0-beta-5!wagon-http-shared.jar Preparing to download artifact nekohtml#xercesMinimal;1.9.6.2!xercesMinimal.jar Preparing to download artifact commons-httpclient#commons-httpclient;3.1!commons-httpclient.jar Preparing to download artifact org.apache.maven#maven-model;3.0-alpha-2!maven-model.jar Preparing to download artifact org.codehaus.plexus#plexus-utils;1.5.6!plexus-utils.jar Preparing to download artifact org.apache.ant#ant-launcher;1.8.1!ant-launcher.jar Preparing to download artifact xalan#xalan;2.7.1!xalan.jar Preparing to download artifact commons-collections#commons-collections;3.2.1!commons-collections.jar Preparing to download artifact commons-lang#commons-lang;2.4!commons-lang.jar Preparing to download artifact commons-codec#commons-codec;1.4!commons-codec.jar Preparing to download artifact org.jvnet.hudson#htmlunit-core-js;2.6-hudson-1!htmlunit-core-js.jar Preparing to download artifact xerces#xercesImpl;2.9.1!xercesImpl.jar Preparing to download artifact net.sourceforge.cssparser#cssparser;0.9.5!cssparser.jar Preparing to download artifact commons-logging#commons-logging;1.1.1!commons-logging.jar Preparing to download artifact xalan#serializer;2.7.1!serializer.jar Preparing to download artifact xml-apis#xml-apis;1.3.04!xml-apis.jar Preparing to download artifact org.w3c.css#sac;1.3!sac.jar org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: General error during conversion: Error grabbing Grapes -- [download failed: org.kohsuke.stapler#json-lib;2.1-rev3!json-lib.jar, download failed: args4j#args4j;2.0.19!args4j.jar, download failed: org.apache.maven#maven-model;3.0-alpha-2!maven-model.jar] java.lang.RuntimeException: Error grabbing Grapes -- [download failed: org.kohsuke.stapler#json-lib;2.1-rev3!json-lib.jar, download failed: args4j#args4j;2.0.19!args4j.jar, download failed: org.apache.maven#maven-model;3.0-alpha-2!maven-model.jar] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:422) at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77) at org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:71) at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:81) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:232) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:244) at groovy.grape.GrapeIvy.getDependencies(GrapeIvy.groovy:418) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:166) at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:56) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151) at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:563) at groovy.grape.GrapeIvy$resolve$1.callCurrent(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:187) at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:532) at groovy.grape.GrapeIvy$resolve$0.callCurrent(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:179) at groovy.grape.GrapeIvy.grab(GrapeIvy.groovy:254) at groovy.grape.Grape.grab(Grape.java:163) at groovy.grape.GrabAnnotationTransformation.visit(GrabAnnotationTransformation.java:358) at org.codehaus.groovy.transform.ASTTransformationVisitor$3.call(ASTTransformationVisitor.java:319) at org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:928) at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:590) at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:566) at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:543) at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:297) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:267) at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:253) at groovy.lang.GroovyClassLoader.recompile(GroovyClassLoader.java:760) at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:717) at groovy.lang.GroovyClassLoader$InnerLoader.loadClass(GroovyClassLoader.java:424) at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:786) at groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:774) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:348) at java_lang_Class$forName.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:138) at runner.run(runner.groovy:4) at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:261) at groovy.lang.GroovyShell.run(GroovyShell.java:522) at groovy.lang.GroovyShell.run(GroovyShell.java:511) at groovy.ui.GroovyMain.processOnce(GroovyMain.java:650) at groovy.ui.GroovyMain.run(GroovyMain.java:381) at groovy.ui.GroovyMain.process(GroovyMain.java:367) at groovy.ui.GroovyMain.processArgs(GroovyMain.java:126) at groovy.ui.GroovyMain.main(GroovyMain.java:106) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:106) at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:128) 1 error {code} Strangely these libraries should be available : * http://repo.jenkins-ci.org/public/org/kohsuke/stapler/json-lib/2.1-rev3/ * http://repo.jenkins-ci.org/public/args4j/args4j/2.0.19/ * http://repo.jenkins-ci.org/public/org/apache/maven/maven-model/3.0-alpha-2/ I always reproduce the problem and the stack trace doesn't give any clue about the error

    Jenkins JIRA | 2 years ago | Arnaud Héritier
    java.lang.RuntimeException: Error grabbing Grapes -- [download failed: org.kohsuke.stapler#json-lib;2.1-rev3!json-lib.jar, download failed: args4j#args4j;2.0.19!args4j.jar, download failed: org.apache.maven#maven-model;3.0-alpha-2!maven-model.jar]
  3. 0

    General error during conversion: Error grabbing Grapes download failed net.java.dev.jna

    Stack Overflow | 2 years ago | bigoldrock
    java.lang.RuntimeException: Error grabbing Grapes -- [download failed: net.java.dev.jna#jna;3.4.0!jna.jar]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    problem with starting from gradle

    GitHub | 2 years ago | lwiechec
    java.lang.RuntimeException: Error grabbing Grapes -- [download failed: org.slf4j#slf4j-api;1.7.5!slf4j-api.jar, download failed: org.apache.httpcomponents#httpcore;4.1!httpcore.jar]
  6. 0

    LocalFirstDependencyResolver | Unable to find dependency

    GitHub | 2 years ago | ogavrisevs
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'batchStubRunner' defined in class path resource [com/ofg/stub/config/StubRunnerConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.ofg.stub.StubRunning]: Factory method 'batchStubRunner' threw exception; nested exception is java.lang.RuntimeException: Error grabbing Grapes -- [unresolved dependency: com.ofg#stub-runner-examples;latest.default: not found]

  1. abrazeneb 3 times, last 4 months ago
  2. mortalman7 1 times, last 4 months ago
5 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.RuntimeException

    Error grabbing Grapes -- [download failed: org.kohsuke.stapler#json-lib;2.1-rev3!json-lib.jar, download failed: args4j#args4j;2.0.19!args4j.jar, download failed: org.apache.maven#maven-model;3.0-alpha-2!maven-model.jar]

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    4 frames
  3. Groovy
    GrapeIvy.getDependencies
    1. org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)
    2. org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:71)
    3. org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:81)
    4. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
    5. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:232)
    6. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:244)
    7. groovy.grape.GrapeIvy.getDependencies(GrapeIvy.groovy:418)
    7 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  5. Groovy
    GroovyClassLoader.loadClass
    1. org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:166)
    2. org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:56)
    3. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
    4. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151)
    5. groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:563)
    6. groovy.grape.GrapeIvy$resolve$1.callCurrent(Unknown Source)
    7. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
    8. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151)
    9. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:187)
    10. groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:532)
    11. groovy.grape.GrapeIvy$resolve$0.callCurrent(Unknown Source)
    12. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49)
    13. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151)
    14. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:179)
    15. groovy.grape.GrapeIvy.grab(GrapeIvy.groovy:254)
    16. groovy.grape.Grape.grab(Grape.java:163)
    17. groovy.grape.GrabAnnotationTransformation.visit(GrabAnnotationTransformation.java:358)
    18. org.codehaus.groovy.transform.ASTTransformationVisitor$3.call(ASTTransformationVisitor.java:319)
    19. org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:928)
    20. org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:590)
    21. org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:566)
    22. org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:543)
    23. groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:297)
    24. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:267)
    25. groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:253)
    26. groovy.lang.GroovyClassLoader.recompile(GroovyClassLoader.java:760)
    27. groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:717)
    28. groovy.lang.GroovyClassLoader$InnerLoader.loadClass(GroovyClassLoader.java:424)
    29. groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:786)
    30. groovy.lang.GroovyClassLoader.loadClass(GroovyClassLoader.java:774)
    30 frames
  6. Java RT
    Class.forName
    1. java.lang.Class.forName0(Native Method)
    2. java.lang.Class.forName(Class.java:348)
    2 frames
  7. Unknown
    java_lang_Class$forName.call
    1. java_lang_Class$forName.call(Unknown Source)
    1 frame
  8. Groovy
    AbstractCallSite.call
    1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
    2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110)
    3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:138)
    3 frames
  9. Unknown
    runner.run
    1. runner.run(runner.groovy:4)
    1 frame
  10. Groovy
    GroovyMain.main
    1. groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:261)
    2. groovy.lang.GroovyShell.run(GroovyShell.java:522)
    3. groovy.lang.GroovyShell.run(GroovyShell.java:511)
    4. groovy.ui.GroovyMain.processOnce(GroovyMain.java:650)
    5. groovy.ui.GroovyMain.run(GroovyMain.java:381)
    6. groovy.ui.GroovyMain.process(GroovyMain.java:367)
    7. groovy.ui.GroovyMain.processArgs(GroovyMain.java:126)
    8. groovy.ui.GroovyMain.main(GroovyMain.java:106)
    8 frames
  11. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  12. Groovy
    GroovyStarter.main
    1. org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:106)
    2. org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:128)
    2 frames