You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@groovy.apache.org by "KARR, DAVID" <dk...@att.com> on 2015/07/20 07:07:09 UTC

Diagnosing grapes download error?

I have a Groovy script that is failing to download its Grape dependencies.  I believe I've set my proxy correctly, and I also tried outside of our firewall, and got the same error.

This is the beginning of my script:
---------------------
#! /usr/bin/env groovy
@Grapes([
	@Grab("org.codehaus.geb:geb-core:0.7.0"),
	@Grab("org.seleniumhq.selenium:selenium-htmlunit-driver:2.23.1"),
	@Grab("org.seleniumhq.selenium:selenium-support:2.23.1")
	])
import geb.Browser;
...
------------------

When I run this (Groovy Version: 2.4.3 JVM: 1.7.0_51 Vendor: Oracle Corporation OS: Windows 7), I get the following:
---------------
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
General error during conversion: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]

java.lang.RuntimeException: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
	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)
---------------------

What might be going on here?

Re: Diagnosing grapes download error?

Posted by Russel Winder <ru...@winder.org.uk>.
On Mon, 2015-07-20 at 17:30 +0200, Guillaume Laforge wrote:
> I vaguely remember some problematic Guava poms in the past, but it 
> could
> also be a problem with Ivy too for certain poms.
> At least, with upgrading the artifacts to newer versions, you've 
> worked
> around that problem!

I guess this is what happens when transitive dependency means you
download most of the Maven repository, but some POMs are faulty.

This is Dependency Hell.

-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

Re: Diagnosing grapes download error?

Posted by Guillaume Laforge <gl...@gmail.com>.
I vaguely remember some problematic Guava poms in the past, but it could
also be a problem with Ivy too for certain poms.
At least, with upgrading the artifacts to newer versions, you've worked
around that problem!

On Mon, Jul 20, 2015 at 5:23 PM, KARR, DAVID <dk...@att.com> wrote:

> > -----Original Message-----
> > From: KARR, DAVID
> > Sent: Sunday, July 19, 2015 10:07 PM
> > To: users@groovy.incubator.apache.org
> > Subject: Diagnosing grapes download error?
> >
> > I have a Groovy script that is failing to download its Grape
> > dependencies.  I believe I've set my proxy correctly, and I also
> > tried outside of our firewall, and got the same error.
> >
> > This is the beginning of my script:
> > ---------------------
> > #! /usr/bin/env groovy
> > @Grapes([
> >       @Grab("org.codehaus.geb:geb-core:0.7.0"),
> >       @Grab("org.seleniumhq.selenium:selenium-htmlunit-
> > driver:2.23.1"),
> >       @Grab("org.seleniumhq.selenium:selenium-support:2.23.1")
> >       ])
> > import geb.Browser;
> > ...
> > ------------------
> >
> > When I run this (Groovy Version: 2.4.3 JVM: 1.7.0_51 Vendor: Oracle
> > Corporation OS: Windows 7), I get the following:
> > ---------------
> > org.codehaus.groovy.control.MultipleCompilationErrorsException:
> > startup failed:
> > General error during conversion: Error grabbing Grapes -- [download
> > failed: com.google.guava#guava;12.0!guava.jar, download failed:
> > com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed:
> > xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-
> > collections#commons-collections;3.2.1!commons-collections.jar,
> > download failed: commons-lang#commons-lang;2.6!commons-lang.jar,
> > download failed: commons-logging#commons-logging;1.1.1!commons-
> > logging.jar]
> >
> > java.lang.RuntimeException: Error grabbing Grapes -- [download
> > failed: com.google.guava#guava;12.0!guava.jar, download failed:
> > com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed:
> > xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-
> > collections#commons-collections;3.2.1!commons-collections.jar,
> > download failed: commons-lang#commons-lang;2.6!commons-lang.jar,
> > download failed: commons-logging#commons-logging;1.1.1!commons-
> > logging.jar]
> >       at
> > sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > Method)
> >       at
> > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstru
> > ctorAccessorImpl.java:57)
> >       at
> > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delegatin
> > gConstructorAccessorImpl.java:45)
> >       at
> > java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> >       at
> > org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConst
> > ructor.java:77)
> >       at
> > org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvok
> > e(CachedConstructor.java:71)
> >       at
> > org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSit
> > eNoUnwrap.callConstructor(ConstructorSite.java:81)
> >       at
> > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConst
> > ructor(CallSiteArray.java:57)
> >       at
> > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstruct
> > or(AbstractCallSite.java:232)
> >       at
> > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstruct
> > or(AbstractCallSite.java:244)
> >       at groovy.grape.GrapeIvy.getDependencies(GrapeIvy.groovy:418)
> >       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method)
> > ---------------------
> >
> > What might be going on here?
>
> Clearing the Grapes cache didn't make any difference.
>
> It appears this is all due to this script referencing "older" artifacts,
> and it appears that the transitive dependencies of those artifacts simply
> could not be found.  Once I upgraded the primary artifacts to the latest
> versions, these dependency issues went away.
>
>


-- 
Guillaume Laforge
Groovy Project Manager
Product Ninja & Advocate at Restlet <http://restlet.com>

Blog: http://glaforge.appspot.com/
Social: @glaforge <http://twitter.com/glaforge> / Google+
<https://plus.google.com/u/0/114130972232398734985/posts>

RE: Diagnosing grapes download error?

Posted by "KARR, DAVID" <dk...@att.com>.
> -----Original Message-----
> From: KARR, DAVID
> Sent: Sunday, July 19, 2015 10:07 PM
> To: users@groovy.incubator.apache.org
> Subject: Diagnosing grapes download error?
> 
> I have a Groovy script that is failing to download its Grape
> dependencies.  I believe I've set my proxy correctly, and I also
> tried outside of our firewall, and got the same error.
> 
> This is the beginning of my script:
> ---------------------
> #! /usr/bin/env groovy
> @Grapes([
> 	@Grab("org.codehaus.geb:geb-core:0.7.0"),
> 	@Grab("org.seleniumhq.selenium:selenium-htmlunit-
> driver:2.23.1"),
> 	@Grab("org.seleniumhq.selenium:selenium-support:2.23.1")
> 	])
> import geb.Browser;
> ...
> ------------------
> 
> When I run this (Groovy Version: 2.4.3 JVM: 1.7.0_51 Vendor: Oracle
> Corporation OS: Windows 7), I get the following:
> ---------------
> org.codehaus.groovy.control.MultipleCompilationErrorsException:
> startup failed:
> General error during conversion: Error grabbing Grapes -- [download
> failed: com.google.guava#guava;12.0!guava.jar, download failed:
> com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed:
> xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-
> collections#commons-collections;3.2.1!commons-collections.jar,
> download failed: commons-lang#commons-lang;2.6!commons-lang.jar,
> download failed: commons-logging#commons-logging;1.1.1!commons-
> logging.jar]
> 
> java.lang.RuntimeException: Error grabbing Grapes -- [download
> failed: com.google.guava#guava;12.0!guava.jar, download failed:
> com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed:
> xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-
> collections#commons-collections;3.2.1!commons-collections.jar,
> download failed: commons-lang#commons-lang;2.6!commons-lang.jar,
> download failed: commons-logging#commons-logging;1.1.1!commons-
> logging.jar]
> 	at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> 	at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstru
> ctorAccessorImpl.java:57)
> 	at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Delegatin
> gConstructorAccessorImpl.java:45)
> 	at
> java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> 	at
> org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConst
> ructor.java:77)
> 	at
> org.codehaus.groovy.reflection.CachedConstructor.doConstructorInvok
> e(CachedConstructor.java:71)
> 	at
> org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSit
> eNoUnwrap.callConstructor(ConstructorSite.java:81)
> 	at
> org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConst
> ructor(CallSiteArray.java:57)
> 	at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstruct
> or(AbstractCallSite.java:232)
> 	at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstruct
> or(AbstractCallSite.java:244)
> 	at groovy.grape.GrapeIvy.getDependencies(GrapeIvy.groovy:418)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
> ---------------------
> 
> What might be going on here?

Clearing the Grapes cache didn't make any difference.

It appears this is all due to this script referencing "older" artifacts, and it appears that the transitive dependencies of those artifacts simply could not be found.  Once I upgraded the primary artifacts to the latest versions, these dependency issues went away.


Re: Diagnosing grapes download error?

Posted by Keegan Witt <ke...@gmail.com>.
FYI I made a PR to document the argument I mentioned earlier:
https://github.com/apache/incubator-groovy/pull/67

-Keegan

On Mon, Jul 20, 2015 at 10:10 AM, Guillaume Laforge <gl...@gmail.com>
wrote:

> David, could you wipe away the grape cache and start over?
>
> On Mon, Jul 20, 2015 at 4:09 PM, KARR, DAVID <dk...@att.com> wrote:
>
>>  Note that I haven’t run a Grapes script in a few months, and likely
>> with an older Groovy version.  Is this a problem with one of my caches?
>>
>>
>>
>> *From:* Keegan Witt [mailto:keeganwitt@gmail.com]
>> *Sent:* Monday, July 20, 2015 6:55 AM
>> *To:* users@groovy.incubator.apache.org
>> *Subject:* Re: Diagnosing grapes download error?
>>
>>
>>
>> David,
>>
>> Did you try adding -Dgroovy.grape.report.downloads=true
>> -Divy.message.logger.level=4 to JAVA_OPTS?
>>
>> -Keegan
>>
>>
>>
>> On Mon, Jul 20, 2015 at 9:49 AM, KARR, DAVID <dk...@att.com> wrote:
>>
>>   Thanks, but I was already using that.  I’ll include the additional
>> information that gave me, but it didn’t help me.
>>
>> Resolving dependency: org.seleniumhq.selenium#selenium-support;2.23.1
>> {default=[default]}
>>
>> Resolving dependency:
>> org.seleniumhq.selenium#selenium-htmlunit-driver;2.23.1 {default=[default]}
>>
>> Resolving dependency: org.codehaus.geb#geb-core;0.7.0 {default=[default]}
>>
>> Preparing to download artifact
>> org.seleniumhq.selenium#selenium-support;2.23.1!selenium-support.jar
>>
>> Preparing to download artifact
>> org.seleniumhq.selenium#selenium-htmlunit-driver;2.23.1!selenium-htmlunit-driver.jar
>>
>> Preparing to download artifact
>> org.codehaus.geb#geb-core;0.7.0!geb-core.jar
>>
>> Preparing to download artifact
>> org.seleniumhq.selenium#selenium-api;2.23.1!selenium-api.jar
>>
>> Preparing to download artifact com.google.guava#guava;12.0!guava.jar
>>
>> Preparing to download artifact
>> com.google.code.findbugs#jsr305;1.3.9!jsr305.jar
>>
>> Preparing to download artifact
>> net.sourceforge.htmlunit#htmlunit;2.9!htmlunit.jar
>>
>> Preparing to download artifact
>> org.apache.httpcomponents#httpclient;4.1.2!httpclient.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.6!commons-lang.jar
>>
>> Preparing to download artifact
>> org.apache.httpcomponents#httpmime;4.1.2!httpmime.jar
>>
>> Preparing to download artifact
>> commons-codec#commons-codec;1.6!commons-codec.jar
>>
>> Preparing to download artifact
>> net.sourceforge.htmlunit#htmlunit-core-js;2.9!htmlunit-core-js.jar
>>
>> Preparing to download artifact xerces#xercesImpl;2.9.1!xercesImpl.jar
>>
>> Preparing to download artifact
>> net.sourceforge.nekohtml#nekohtml;1.9.15!nekohtml.jar
>>
>> Preparing to download artifact
>> net.sourceforge.cssparser#cssparser;0.9.5!cssparser.jar
>>
>> Preparing to download artifact commons-io#commons-io;2.0.1!commons-io.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.apache.httpcomponents#httpcore;4.1.3!httpcore.jar
>>
>> Preparing to download artifact org.w3c.css#sac;1.3!sac.jar
>>
>> Preparing to download artifact
>> org.codehaus.geb#geb-implicit-assertions;0.7.0!geb-implicit-assertions.jar
>>
>> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
>> failed:
>>
>> General error during conversion: Error grabbing Grapes -- [download
>> failed: com.google.guava#guava;12.0!guava.jar, download failed:
>> com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed:
>> xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed:
>> commons-collections#commons-collections;3.2.1!commons-collections.jar,
>> download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download
>> failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]
>>
>> --------------------
>>
>>
>>
>> *From:* Pascal Schumacher [mailto:pascalschumacher@gmx.net]
>> *Sent:* Sunday, July 19, 2015 10:52 PM
>> *To:* users@groovy.incubator.apache.org
>> *Subject:* Re: Diagnosing grapes download error?
>>
>>
>>
>> try setting the system property groovy.grape.report.downloads to true,
>> see:
>>
>>
>> http://docs.groovy-lang.org/latest/html/documentation/grape.html#Grape-Logging
>>
>> maybe that gives you more information
>>
>> Cheers,
>> Pascal
>>
>> Am 20.07.2015 um 07:07 schrieb KARR, DAVID:
>>
>> I have a Groovy script that is failing to download its Grape dependencies.  I believe I've set my proxy correctly, and I also tried outside of our firewall, and got the same error.
>>
>>
>>
>> This is the beginning of my script:
>>
>> ---------------------
>>
>> #! /usr/bin/env groovy
>>
>> @Grapes([
>>
>>  @Grab("org.codehaus.geb:geb-core:0.7.0"),
>>
>>  @Grab("org.seleniumhq.selenium:selenium-htmlunit-driver:2.23.1"),
>>
>>  @Grab("org.seleniumhq.selenium:selenium-support:2.23.1")
>>
>>  ])
>>
>> import geb.Browser;
>>
>> ...
>>
>> ------------------
>>
>>
>>
>> When I run this (Groovy Version: 2.4.3 JVM: 1.7.0_51 Vendor: Oracle Corporation OS: Windows 7), I get the following:
>>
>> ---------------
>>
>> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
>>
>> General error during conversion: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]
>>
>>
>>
>> java.lang.RuntimeException: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]
>>
>>  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>>
>>  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>>
>>  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>>
>>  at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>>
>>  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)
>>
>> ---------------------
>>
>>
>>
>> What might be going on here?
>>
>>
>>
>>
>>
>
>
>
> --
> Guillaume Laforge
> Groovy Project Manager
> Product Ninja & Advocate at Restlet <http://restlet.com>
>
> Blog: http://glaforge.appspot.com/
> Social: @glaforge <http://twitter.com/glaforge> / Google+
> <https://plus.google.com/u/0/114130972232398734985/posts>
>

Re: Diagnosing grapes download error?

Posted by Guillaume Laforge <gl...@gmail.com>.
David, could you wipe away the grape cache and start over?

On Mon, Jul 20, 2015 at 4:09 PM, KARR, DAVID <dk...@att.com> wrote:

>  Note that I haven’t run a Grapes script in a few months, and likely with
> an older Groovy version.  Is this a problem with one of my caches?
>
>
>
> *From:* Keegan Witt [mailto:keeganwitt@gmail.com]
> *Sent:* Monday, July 20, 2015 6:55 AM
> *To:* users@groovy.incubator.apache.org
> *Subject:* Re: Diagnosing grapes download error?
>
>
>
> David,
>
> Did you try adding -Dgroovy.grape.report.downloads=true
> -Divy.message.logger.level=4 to JAVA_OPTS?
>
> -Keegan
>
>
>
> On Mon, Jul 20, 2015 at 9:49 AM, KARR, DAVID <dk...@att.com> wrote:
>
>   Thanks, but I was already using that.  I’ll include the additional
> information that gave me, but it didn’t help me.
>
> Resolving dependency: org.seleniumhq.selenium#selenium-support;2.23.1
> {default=[default]}
>
> Resolving dependency:
> org.seleniumhq.selenium#selenium-htmlunit-driver;2.23.1 {default=[default]}
>
> Resolving dependency: org.codehaus.geb#geb-core;0.7.0 {default=[default]}
>
> Preparing to download artifact
> org.seleniumhq.selenium#selenium-support;2.23.1!selenium-support.jar
>
> Preparing to download artifact
> org.seleniumhq.selenium#selenium-htmlunit-driver;2.23.1!selenium-htmlunit-driver.jar
>
> Preparing to download artifact org.codehaus.geb#geb-core;0.7.0!geb-core.jar
>
> Preparing to download artifact
> org.seleniumhq.selenium#selenium-api;2.23.1!selenium-api.jar
>
> Preparing to download artifact com.google.guava#guava;12.0!guava.jar
>
> Preparing to download artifact
> com.google.code.findbugs#jsr305;1.3.9!jsr305.jar
>
> Preparing to download artifact
> net.sourceforge.htmlunit#htmlunit;2.9!htmlunit.jar
>
> Preparing to download artifact
> org.apache.httpcomponents#httpclient;4.1.2!httpclient.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.6!commons-lang.jar
>
> Preparing to download artifact
> org.apache.httpcomponents#httpmime;4.1.2!httpmime.jar
>
> Preparing to download artifact
> commons-codec#commons-codec;1.6!commons-codec.jar
>
> Preparing to download artifact
> net.sourceforge.htmlunit#htmlunit-core-js;2.9!htmlunit-core-js.jar
>
> Preparing to download artifact xerces#xercesImpl;2.9.1!xercesImpl.jar
>
> Preparing to download artifact
> net.sourceforge.nekohtml#nekohtml;1.9.15!nekohtml.jar
>
> Preparing to download artifact
> net.sourceforge.cssparser#cssparser;0.9.5!cssparser.jar
>
> Preparing to download artifact commons-io#commons-io;2.0.1!commons-io.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.apache.httpcomponents#httpcore;4.1.3!httpcore.jar
>
> Preparing to download artifact org.w3c.css#sac;1.3!sac.jar
>
> Preparing to download artifact
> org.codehaus.geb#geb-implicit-assertions;0.7.0!geb-implicit-assertions.jar
>
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
> failed:
>
> General error during conversion: Error grabbing Grapes -- [download
> failed: com.google.guava#guava;12.0!guava.jar, download failed:
> com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed:
> xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed:
> commons-collections#commons-collections;3.2.1!commons-collections.jar,
> download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download
> failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]
>
> --------------------
>
>
>
> *From:* Pascal Schumacher [mailto:pascalschumacher@gmx.net]
> *Sent:* Sunday, July 19, 2015 10:52 PM
> *To:* users@groovy.incubator.apache.org
> *Subject:* Re: Diagnosing grapes download error?
>
>
>
> try setting the system property groovy.grape.report.downloads to true,
> see:
>
>
> http://docs.groovy-lang.org/latest/html/documentation/grape.html#Grape-Logging
>
> maybe that gives you more information
>
> Cheers,
> Pascal
>
> Am 20.07.2015 um 07:07 schrieb KARR, DAVID:
>
> I have a Groovy script that is failing to download its Grape dependencies.  I believe I've set my proxy correctly, and I also tried outside of our firewall, and got the same error.
>
>
>
> This is the beginning of my script:
>
> ---------------------
>
> #! /usr/bin/env groovy
>
> @Grapes([
>
>  @Grab("org.codehaus.geb:geb-core:0.7.0"),
>
>  @Grab("org.seleniumhq.selenium:selenium-htmlunit-driver:2.23.1"),
>
>  @Grab("org.seleniumhq.selenium:selenium-support:2.23.1")
>
>  ])
>
> import geb.Browser;
>
> ...
>
> ------------------
>
>
>
> When I run this (Groovy Version: 2.4.3 JVM: 1.7.0_51 Vendor: Oracle Corporation OS: Windows 7), I get the following:
>
> ---------------
>
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
>
> General error during conversion: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]
>
>
>
> java.lang.RuntimeException: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]
>
>  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>
>  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>
>  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>
>  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)
>
> ---------------------
>
>
>
> What might be going on here?
>
>
>
>
>



-- 
Guillaume Laforge
Groovy Project Manager
Product Ninja & Advocate at Restlet <http://restlet.com>

Blog: http://glaforge.appspot.com/
Social: @glaforge <http://twitter.com/glaforge> / Google+
<https://plus.google.com/u/0/114130972232398734985/posts>

RE: Diagnosing grapes download error?

Posted by "KARR, DAVID" <dk...@att.com>.
Note that I haven’t run a Grapes script in a few months, and likely with an older Groovy version.  Is this a problem with one of my caches?

From: Keegan Witt [mailto:keeganwitt@gmail.com]
Sent: Monday, July 20, 2015 6:55 AM
To: users@groovy.incubator.apache.org
Subject: Re: Diagnosing grapes download error?

David,
Did you try adding -Dgroovy.grape.report.downloads=true -Divy.message.logger.level=4 to JAVA_OPTS?
-Keegan

On Mon, Jul 20, 2015 at 9:49 AM, KARR, DAVID <dk...@att.com>> wrote:
Thanks, but I was already using that.  I’ll include the additional information that gave me, but it didn’t help me.
Resolving dependency: org.seleniumhq.selenium#selenium-support;2.23.1 {default=[default]}
Resolving dependency: org.seleniumhq.selenium#selenium-htmlunit-driver;2.23.1 {default=[default]}
Resolving dependency: org.codehaus.geb#geb-core;0.7.0 {default=[default]}
Preparing to download artifact org.seleniumhq.selenium#selenium-support;2.23.1!selenium-support.jar
Preparing to download artifact org.seleniumhq.selenium#selenium-htmlunit-driver;2.23.1!selenium-htmlunit-driver.jar
Preparing to download artifact org.codehaus.geb#geb-core;0.7.0!geb-core.jar
Preparing to download artifact org.seleniumhq.selenium#selenium-api;2.23.1!selenium-api.jar
Preparing to download artifact com.google.guava#guava;12.0!guava.jar
Preparing to download artifact com.google.code.findbugs#jsr305;1.3.9!jsr305.jar
Preparing to download artifact net.sourceforge.htmlunit#htmlunit;2.9!htmlunit.jar
Preparing to download artifact org.apache.httpcomponents#httpclient;4.1.2!httpclient.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.6!commons-lang.jar
Preparing to download artifact org.apache.httpcomponents#httpmime;4.1.2!httpmime.jar
Preparing to download artifact commons-codec#commons-codec;1.6!commons-codec.jar
Preparing to download artifact net.sourceforge.htmlunit#htmlunit-core-js;2.9!htmlunit-core-js.jar
Preparing to download artifact xerces#xercesImpl;2.9.1!xercesImpl.jar
Preparing to download artifact net.sourceforge.nekohtml#nekohtml;1.9.15!nekohtml.jar
Preparing to download artifact net.sourceforge.cssparser#cssparser;0.9.5!cssparser.jar
Preparing to download artifact commons-io#commons-io;2.0.1!commons-io.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.apache.httpcomponents#httpcore;4.1.3!httpcore.jar
Preparing to download artifact org.w3c.css#sac;1.3!sac.jar
Preparing to download artifact org.codehaus.geb#geb-implicit-assertions;0.7.0!geb-implicit-assertions.jar
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
General error during conversion: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]
--------------------

From: Pascal Schumacher [mailto:pascalschumacher@gmx.net<ma...@gmx.net>]
Sent: Sunday, July 19, 2015 10:52 PM
To: users@groovy.incubator.apache.org<ma...@groovy.incubator.apache.org>
Subject: Re: Diagnosing grapes download error?

try setting the system property groovy.grape.report.downloads to true, see:

http://docs.groovy-lang.org/latest/html/documentation/grape.html#Grape-Logging

maybe that gives you more information

Cheers,
Pascal

Am 20.07.2015 um 07:07 schrieb KARR, DAVID:

I have a Groovy script that is failing to download its Grape dependencies.  I believe I've set my proxy correctly, and I also tried outside of our firewall, and got the same error.



This is the beginning of my script:

---------------------

#! /usr/bin/env groovy

@Grapes([

 @Grab("org.codehaus.geb:geb-core:0.7.0"),

 @Grab("org.seleniumhq.selenium:selenium-htmlunit-driver:2.23.1"),

 @Grab("org.seleniumhq.selenium:selenium-support:2.23.1")

 ])

import geb.Browser;

...

------------------



When I run this (Groovy Version: 2.4.3 JVM: 1.7.0_51 Vendor: Oracle Corporation OS: Windows 7), I get the following:

---------------

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:

General error during conversion: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]



java.lang.RuntimeException: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]

 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

 at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

 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)

---------------------



What might be going on here?



RE: Diagnosing grapes download error?

Posted by "KARR, DAVID" <dk...@att.com>.
Ok, that additional debug level setting shows an interesting error:
loadData of com.google.guava#guava;12.0 of rootConf=default
      using downloadGrapes to resolve com.google.guava#guava;12.0
downloadGrapes: Checking cache for: dependency: com.google.guava#guava;12.0 {compile=[compile(*), master(*)], runtime=[runtime(*)]}
No entry is found in the ModuleDescriptorCache : C:\Users\dk068x\.groovy\grapes\com.google.guava\guava\ivy-12.0.xml
post 1.3 ivy file: using exact as default matcher
      found ivy file in cache for com.google.guava#guava;12.0 (resolved by cachedGrapes): C:\Users\dk068x\.groovy\grapes\com.google.guava\guava\ivy-12.0.xml
java.net.MalformedURLException: unknown protocol: c

It shows the same error several times, but for different artifacts.

From: Keegan Witt [mailto:keeganwitt@gmail.com]
Sent: Monday, July 20, 2015 6:55 AM
To: users@groovy.incubator.apache.org
Subject: Re: Diagnosing grapes download error?

David,
Did you try adding -Dgroovy.grape.report.downloads=true -Divy.message.logger.level=4 to JAVA_OPTS?
-Keegan

On Mon, Jul 20, 2015 at 9:49 AM, KARR, DAVID <dk...@att.com>> wrote:
Thanks, but I was already using that.  I’ll include the additional information that gave me, but it didn’t help me.
Resolving dependency: org.seleniumhq.selenium#selenium-support;2.23.1 {default=[default]}
Resolving dependency: org.seleniumhq.selenium#selenium-htmlunit-driver;2.23.1 {default=[default]}
Resolving dependency: org.codehaus.geb#geb-core;0.7.0 {default=[default]}
Preparing to download artifact org.seleniumhq.selenium#selenium-support;2.23.1!selenium-support.jar
Preparing to download artifact org.seleniumhq.selenium#selenium-htmlunit-driver;2.23.1!selenium-htmlunit-driver.jar
Preparing to download artifact org.codehaus.geb#geb-core;0.7.0!geb-core.jar
Preparing to download artifact org.seleniumhq.selenium#selenium-api;2.23.1!selenium-api.jar
Preparing to download artifact com.google.guava#guava;12.0!guava.jar
Preparing to download artifact com.google.code.findbugs#jsr305;1.3.9!jsr305.jar
Preparing to download artifact net.sourceforge.htmlunit#htmlunit;2.9!htmlunit.jar
Preparing to download artifact org.apache.httpcomponents#httpclient;4.1.2!httpclient.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.6!commons-lang.jar
Preparing to download artifact org.apache.httpcomponents#httpmime;4.1.2!httpmime.jar
Preparing to download artifact commons-codec#commons-codec;1.6!commons-codec.jar
Preparing to download artifact net.sourceforge.htmlunit#htmlunit-core-js;2.9!htmlunit-core-js.jar
Preparing to download artifact xerces#xercesImpl;2.9.1!xercesImpl.jar
Preparing to download artifact net.sourceforge.nekohtml#nekohtml;1.9.15!nekohtml.jar
Preparing to download artifact net.sourceforge.cssparser#cssparser;0.9.5!cssparser.jar
Preparing to download artifact commons-io#commons-io;2.0.1!commons-io.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.apache.httpcomponents#httpcore;4.1.3!httpcore.jar
Preparing to download artifact org.w3c.css#sac;1.3!sac.jar
Preparing to download artifact org.codehaus.geb#geb-implicit-assertions;0.7.0!geb-implicit-assertions.jar
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
General error during conversion: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]
--------------------

From: Pascal Schumacher [mailto:pascalschumacher@gmx.net<ma...@gmx.net>]
Sent: Sunday, July 19, 2015 10:52 PM
To: users@groovy.incubator.apache.org<ma...@groovy.incubator.apache.org>
Subject: Re: Diagnosing grapes download error?

try setting the system property groovy.grape.report.downloads to true, see:

http://docs.groovy-lang.org/latest/html/documentation/grape.html#Grape-Logging

maybe that gives you more information

Cheers,
Pascal

Am 20.07.2015 um 07:07 schrieb KARR, DAVID:

I have a Groovy script that is failing to download its Grape dependencies.  I believe I've set my proxy correctly, and I also tried outside of our firewall, and got the same error.



This is the beginning of my script:

---------------------

#! /usr/bin/env groovy

@Grapes([

 @Grab("org.codehaus.geb:geb-core:0.7.0"),

 @Grab("org.seleniumhq.selenium:selenium-htmlunit-driver:2.23.1"),

 @Grab("org.seleniumhq.selenium:selenium-support:2.23.1")

 ])

import geb.Browser;

...

------------------



When I run this (Groovy Version: 2.4.3 JVM: 1.7.0_51 Vendor: Oracle Corporation OS: Windows 7), I get the following:

---------------

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:

General error during conversion: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]



java.lang.RuntimeException: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]

 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

 at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

 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)

---------------------



What might be going on here?



Re: Diagnosing grapes download error?

Posted by Keegan Witt <ke...@gmail.com>.
David,
Did you try adding -Dgroovy.grape.report.downloads=true
-Divy.message.logger.level=4 to JAVA_OPTS?

-Keegan

On Mon, Jul 20, 2015 at 9:49 AM, KARR, DAVID <dk...@att.com> wrote:

>   Thanks, but I was already using that.  I’ll include the additional
> information that gave me, but it didn’t help me.
>
> Resolving dependency: org.seleniumhq.selenium#selenium-support;2.23.1
> {default=[default]}
>
> Resolving dependency:
> org.seleniumhq.selenium#selenium-htmlunit-driver;2.23.1 {default=[default]}
>
> Resolving dependency: org.codehaus.geb#geb-core;0.7.0 {default=[default]}
>
> Preparing to download artifact
> org.seleniumhq.selenium#selenium-support;2.23.1!selenium-support.jar
>
> Preparing to download artifact
> org.seleniumhq.selenium#selenium-htmlunit-driver;2.23.1!selenium-htmlunit-driver.jar
>
> Preparing to download artifact org.codehaus.geb#geb-core;0.7.0!geb-core.jar
>
> Preparing to download artifact
> org.seleniumhq.selenium#selenium-api;2.23.1!selenium-api.jar
>
> Preparing to download artifact com.google.guava#guava;12.0!guava.jar
>
> Preparing to download artifact
> com.google.code.findbugs#jsr305;1.3.9!jsr305.jar
>
> Preparing to download artifact
> net.sourceforge.htmlunit#htmlunit;2.9!htmlunit.jar
>
> Preparing to download artifact
> org.apache.httpcomponents#httpclient;4.1.2!httpclient.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.6!commons-lang.jar
>
> Preparing to download artifact
> org.apache.httpcomponents#httpmime;4.1.2!httpmime.jar
>
> Preparing to download artifact
> commons-codec#commons-codec;1.6!commons-codec.jar
>
> Preparing to download artifact
> net.sourceforge.htmlunit#htmlunit-core-js;2.9!htmlunit-core-js.jar
>
> Preparing to download artifact xerces#xercesImpl;2.9.1!xercesImpl.jar
>
> Preparing to download artifact
> net.sourceforge.nekohtml#nekohtml;1.9.15!nekohtml.jar
>
> Preparing to download artifact
> net.sourceforge.cssparser#cssparser;0.9.5!cssparser.jar
>
> Preparing to download artifact commons-io#commons-io;2.0.1!commons-io.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.apache.httpcomponents#httpcore;4.1.3!httpcore.jar
>
> Preparing to download artifact org.w3c.css#sac;1.3!sac.jar
>
> Preparing to download artifact
> org.codehaus.geb#geb-implicit-assertions;0.7.0!geb-implicit-assertions.jar
>
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
> failed:
>
> General error during conversion: Error grabbing Grapes -- [download
> failed: com.google.guava#guava;12.0!guava.jar, download failed:
> com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed:
> xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed:
> commons-collections#commons-collections;3.2.1!commons-collections.jar,
> download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download
> failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]
>
> --------------------
>
>
>
> *From:* Pascal Schumacher [mailto:pascalschumacher@gmx.net]
> *Sent:* Sunday, July 19, 2015 10:52 PM
> *To:* users@groovy.incubator.apache.org
> *Subject:* Re: Diagnosing grapes download error?
>
>
>
> try setting the system property groovy.grape.report.downloads to true,
> see:
>
>
> http://docs.groovy-lang.org/latest/html/documentation/grape.html#Grape-Logging
>
> maybe that gives you more information
>
> Cheers,
> Pascal
>
> Am 20.07.2015 um 07:07 schrieb KARR, DAVID:
>
> I have a Groovy script that is failing to download its Grape dependencies.  I believe I've set my proxy correctly, and I also tried outside of our firewall, and got the same error.
>
>
>
> This is the beginning of my script:
>
> ---------------------
>
> #! /usr/bin/env groovy
>
> @Grapes([
>
>  @Grab("org.codehaus.geb:geb-core:0.7.0"),
>
>  @Grab("org.seleniumhq.selenium:selenium-htmlunit-driver:2.23.1"),
>
>  @Grab("org.seleniumhq.selenium:selenium-support:2.23.1")
>
>  ])
>
> import geb.Browser;
>
> ...
>
> ------------------
>
>
>
> When I run this (Groovy Version: 2.4.3 JVM: 1.7.0_51 Vendor: Oracle Corporation OS: Windows 7), I get the following:
>
> ---------------
>
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
>
> General error during conversion: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]
>
>
>
> java.lang.RuntimeException: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]
>
>  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>
>  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
>
>  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
>
>  at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
>
>  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)
>
> ---------------------
>
>
>
> What might be going on here?
>
>
>

RE: Diagnosing grapes download error?

Posted by "KARR, DAVID" <dk...@att.com>.
Thanks, but I was already using that.  I'll include the additional information that gave me, but it didn't help me.
Resolving dependency: org.seleniumhq.selenium#selenium-support;2.23.1 {default=[default]}
Resolving dependency: org.seleniumhq.selenium#selenium-htmlunit-driver;2.23.1 {default=[default]}
Resolving dependency: org.codehaus.geb#geb-core;0.7.0 {default=[default]}
Preparing to download artifact org.seleniumhq.selenium#selenium-support;2.23.1!selenium-support.jar
Preparing to download artifact org.seleniumhq.selenium#selenium-htmlunit-driver;2.23.1!selenium-htmlunit-driver.jar
Preparing to download artifact org.codehaus.geb#geb-core;0.7.0!geb-core.jar
Preparing to download artifact org.seleniumhq.selenium#selenium-api;2.23.1!selenium-api.jar
Preparing to download artifact com.google.guava#guava;12.0!guava.jar
Preparing to download artifact com.google.code.findbugs#jsr305;1.3.9!jsr305.jar
Preparing to download artifact net.sourceforge.htmlunit#htmlunit;2.9!htmlunit.jar
Preparing to download artifact org.apache.httpcomponents#httpclient;4.1.2!httpclient.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.6!commons-lang.jar
Preparing to download artifact org.apache.httpcomponents#httpmime;4.1.2!httpmime.jar
Preparing to download artifact commons-codec#commons-codec;1.6!commons-codec.jar
Preparing to download artifact net.sourceforge.htmlunit#htmlunit-core-js;2.9!htmlunit-core-js.jar
Preparing to download artifact xerces#xercesImpl;2.9.1!xercesImpl.jar
Preparing to download artifact net.sourceforge.nekohtml#nekohtml;1.9.15!nekohtml.jar
Preparing to download artifact net.sourceforge.cssparser#cssparser;0.9.5!cssparser.jar
Preparing to download artifact commons-io#commons-io;2.0.1!commons-io.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.apache.httpcomponents#httpcore;4.1.3!httpcore.jar
Preparing to download artifact org.w3c.css#sac;1.3!sac.jar
Preparing to download artifact org.codehaus.geb#geb-implicit-assertions;0.7.0!geb-implicit-assertions.jar
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
General error during conversion: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]
--------------------

From: Pascal Schumacher [mailto:pascalschumacher@gmx.net]
Sent: Sunday, July 19, 2015 10:52 PM
To: users@groovy.incubator.apache.org
Subject: Re: Diagnosing grapes download error?

try setting the system property groovy.grape.report.downloads to true, see:

http://docs.groovy-lang.org/latest/html/documentation/grape.html#Grape-Logging

maybe that gives you more information

Cheers,
Pascal

Am 20.07.2015 um 07:07 schrieb KARR, DAVID:

I have a Groovy script that is failing to download its Grape dependencies.  I believe I've set my proxy correctly, and I also tried outside of our firewall, and got the same error.



This is the beginning of my script:

---------------------

#! /usr/bin/env groovy

@Grapes([

 @Grab("org.codehaus.geb:geb-core:0.7.0"),

 @Grab("org.seleniumhq.selenium:selenium-htmlunit-driver:2.23.1"),

 @Grab("org.seleniumhq.selenium:selenium-support:2.23.1")

 ])

import geb.Browser;

...

------------------



When I run this (Groovy Version: 2.4.3 JVM: 1.7.0_51 Vendor: Oracle Corporation OS: Windows 7), I get the following:

---------------

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:

General error during conversion: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]



java.lang.RuntimeException: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]

 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

 at java.lang.reflect.Constructor.newInstance(Constructor.java:526)

 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)

---------------------



What might be going on here?


Re: Diagnosing grapes download error?

Posted by Pascal Schumacher <pa...@gmx.net>.
try setting the system property |groovy.grape.report.downloads| to 
|true||, see:

http://docs.groovy-lang.org/latest/html/documentation/grape.html#Grape-Logging

||maybe that gives you more information

Cheers,
Pascal
|
Am 20.07.2015 um 07:07 schrieb KARR, DAVID:
> I have a Groovy script that is failing to download its Grape dependencies.  I believe I've set my proxy correctly, and I also tried outside of our firewall, and got the same error.
>
> This is the beginning of my script:
> ---------------------
> #! /usr/bin/env groovy
> @Grapes([
> 	@Grab("org.codehaus.geb:geb-core:0.7.0"),
> 	@Grab("org.seleniumhq.selenium:selenium-htmlunit-driver:2.23.1"),
> 	@Grab("org.seleniumhq.selenium:selenium-support:2.23.1")
> 	])
> import geb.Browser;
> ...
> ------------------
>
> When I run this (Groovy Version: 2.4.3 JVM: 1.7.0_51 Vendor: Oracle Corporation OS: Windows 7), I get the following:
> ---------------
> org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
> General error during conversion: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]
>
> java.lang.RuntimeException: Error grabbing Grapes -- [download failed: com.google.guava#guava;12.0!guava.jar, download failed: com.google.code.findbugs#jsr305;1.3.9!jsr305.jar, download failed: xml-apis#xml-apis;1.3.04!xml-apis.jar, download failed: commons-collections#commons-collections;3.2.1!commons-collections.jar, download failed: commons-lang#commons-lang;2.6!commons-lang.jar, download failed: commons-logging#commons-logging;1.1.1!commons-logging.jar]
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> 	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)
> ---------------------
>
> What might be going on here?


RE: Diagnosing grapes download error?

Posted by "KARR, DAVID" <dk...@att.com>.
> -----Original Message-----
> From: Russel Winder [mailto:russel@winder.org.uk]
> Sent: Monday, July 20, 2015 9:12 AM
> To: users@groovy.incubator.apache.org
> Subject: Re: Diagnosing grapes download error?
> 
> On Mon, 2015-07-20 at 05:07 +0000, KARR, DAVID wrote:
> > […]
> > ---------------------
> > #! /usr/bin/env groovy
> > @Grapes([
> > 	@Grab("org.codehaus.geb:geb-core:0.7.0"),
> > 	@Grab("org.seleniumhq.selenium:selenium-htmlunit
> > -driver:2.23.1"),
> > 	@Grab("org.seleniumhq.selenium:selenium-support:2.23.1")
> > 	])
> > import geb.Browser;
> > ...
> > ------------------
> 
> Is the @Grapes needed? Shouldn't:
> 
> @Grab("org.codehaus.geb:geb-core:0.7.0")
> @Grab("org.seleniumhq.selenium:selenium-htmlunit-driver:2.23.1")
> @Grab("org.seleniumhq.selenium:selenium-support:2.23.1")
> import geb.Browser;
> 
> work?

It appears that the wrapper is needed in some cases, but not others.  It works without it in this script, but the following doesn't specify exceptions to this rule: http://docs.groovy-lang.org/latest/html/documentation/grape.html#Grape-MultipleGrapeAnnotations .

> --
> Russel.
> ===================================================================
> ==========
> Dr Russel Winder      t: +44 20 7585 2200   voip:
> sip:russel.winder@ekiga.net
> 41 Buckmaster Road    m: +44 7770 465 077   xmpp:
> russel@winder.org.uk
> London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder

Re: Diagnosing grapes download error?

Posted by Russel Winder <ru...@winder.org.uk>.
On Mon, 2015-07-20 at 05:07 +0000, KARR, DAVID wrote:
> […]
> ---------------------
> #! /usr/bin/env groovy
> @Grapes([
> 	@Grab("org.codehaus.geb:geb-core:0.7.0"),
> 	@Grab("org.seleniumhq.selenium:selenium-htmlunit
> -driver:2.23.1"),
> 	@Grab("org.seleniumhq.selenium:selenium-support:2.23.1")
> 	])
> import geb.Browser;
> ...
> ------------------

Is the @Grapes needed? Shouldn't:

@Grab("org.codehaus.geb:geb-core:0.7.0")
@Grab("org.seleniumhq.selenium:selenium-htmlunit-driver:2.23.1")
@Grab("org.seleniumhq.selenium:selenium-support:2.23.1")
import geb.Browser;

work?
-- 
Russel.
=============================================================================
Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder@ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel@winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder