groovy-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keegan Witt <keeganw...@gmail.com>
Subject Re: Diagnosing grapes download error?
Date Mon, 20 Jul 2015 14:31:53 GMT
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 <glaforge@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 <dk068x@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 <dk068x@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>
>

Mime
View raw message