groovy
  1. groovy
  2. GROOVY-5382

Grape API fails to load certain modules from script

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Not A Bug
    • Affects Version/s: 1.8.5, 1.8.6
    • Fix Version/s: None
    • Component/s: Grape
    • Labels:
      None
    • Environment:
      Mac OS X, Groovy 1.8.5 or 1.8.6, Java 1.6.0_29
    • Number of attachments :
      0

      Description

      I'm attempting to use the Geb tool interactively from groovysh.

       
      import groovy.grape.Grape
      Grape.grab([group:'org.codehaus.geb', module:'geb-core', version:'0.6.3'])
      Grape.grab([group:'org.seleniumhq.selenium', module:'selenium-firefox-driver', version:'2.15.0'])
      Grape.grab([group:'org.seleniumhq.selenium', module:'selenium-support', version:'2.15.0'])
      import geb.*
      

      The first grab works correctly. The second grab fails:

       
      java.lang.RuntimeException: Error grabbing Grapes -- [download failed: cglib#cglib-nodep;2.1_3!cglib-nodep.jar]
      	at groovysh_evaluate.run(groovysh_evaluate:3)
      	at groovysh_evaluate$run.call(Unknown Source)
      	at groovysh_evaluate$run.call(Unknown Source)
      	at java_lang_Runnable$run.call(Unknown Source)
      

      I've removed by ~/.groovy/grapes folder and retried with the same result.

      I packaged the command into a script, geb.groovy, and attempted to execute it with the same result:

      $ rm -rf ~/.groovy/grapes/
      ~
      $ groovysh -d 
      GREENDEBUG [org.codehaus.groovy.tools.shell.BufferManager] Created new buffer with index: 0
      GREENDEBUG [org.codehaus.groovy.tools.shell.BufferManager] Buffers reset
      GREENDEBUG [org.codehaus.groovy.tools.shell.Parser] Using parser flavor: rigid
      GREENDEBUG [org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar] Registering commands from: jar:file:/usr/local/Cellar/groovy/1.8.6/libexec/lib/groovy-1.8.6.jar!/org/codehaus/groovy/tools/shell/commands.xml
      GREENDEBUG [org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar] Created command 'help': org.codehaus.groovy.tools.shell.commands.HelpCommand@b07108e
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: ?
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: help
      GREENDEBUG [org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar] Created command 'exit': org.codehaus.groovy.tools.shell.commands.ExitCommand@5289e2f1
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: quit
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: exit
      GREENDEBUG [org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar] Created command 'import': org.codehaus.groovy.tools.shell.commands.ImportCommand@6d66f9b9
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: import
      GREENDEBUG [org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar] Created command 'display': org.codehaus.groovy.tools.shell.commands.DisplayCommand@7db5391b
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: display
      GREENDEBUG [org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar] Created command 'clear': org.codehaus.groovy.tools.shell.commands.ClearCommand@6e5dfaf1
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: clear
      GREENDEBUG [org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar] Created command 'show': org.codehaus.groovy.tools.shell.commands.ShowCommand@4513e9fd
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: show
      GREENDEBUG [org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar] Created command 'inspect': org.codehaus.groovy.tools.shell.commands.InspectCommand@79fcf790
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: inspect
      GREENDEBUG [org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar] Created command 'purge': org.codehaus.groovy.tools.shell.commands.PurgeCommand@3a0b53e
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: purge
      GREENDEBUG [org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar] Created command 'edit': org.codehaus.groovy.tools.shell.commands.EditCommand@3823bdd1
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: edit
      GREENDEBUG [org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar] Created command 'load': org.codehaus.groovy.tools.shell.commands.LoadCommand@26c1186f
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: .
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: load
      GREENDEBUG [org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar] Created command 'save': org.codehaus.groovy.tools.shell.commands.SaveCommand@74bfed5a
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: save
      GREENDEBUG [org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar] Created command 'record': org.codehaus.groovy.tools.shell.commands.RecordCommand@831fb31
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: record
      GREENDEBUG [org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar] Created command 'history': org.codehaus.groovy.tools.shell.commands.HistoryCommand@4b4c28db
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: history
      GREENDEBUG [org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar] Created command 'alias': org.codehaus.groovy.tools.shell.commands.AliasCommand@1638fff7
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: alias
      GREENDEBUG [org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar] Created command 'set': org.codehaus.groovy.tools.shell.commands.SetCommand@6f27f79d
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: set
      GREENDEBUG [org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar] Created command 'shadow': org.codehaus.groovy.tools.shell.commands.ShadowCommand@785e8d7d
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: shadow
      GREENDEBUG [org.codehaus.groovy.tools.shell.util.XmlCommandRegistrar] Created command 'register': org.codehaus.groovy.tools.shell.commands.RegisterCommand@5e3ca754
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandRegistry] Registered command: register
      GREENDEBUG [org.codehaus.groovy.tools.shell.Groovysh] Terminal (jline.UnixTerminal@7857ae58)
      GREENDEBUG [org.codehaus.groovy.tools.shell.Groovysh]     Supported:  true
      GREENDEBUG [org.codehaus.groovy.tools.shell.Groovysh]     ECHO:       false (enabled: false)
      GREENDEBUG [org.codehaus.groovy.tools.shell.Groovysh]     H x W:      51 x 148
      GREENDEBUG [org.codehaus.groovy.tools.shell.Groovysh]     ANSI:       true
      GREENDEBUG [org.codehaus.groovy.tools.shell.InteractiveShellRunner] Using history file: /Users/hlship/.groovy/groovysh.history
      Groovy Shell (1.8.6, JVM: 1.6.0_29)
      Type 'help' or '\h' for help.
      ---------------------------------------------------------------------------------------------------------------------------------------------------
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[1] for command: help
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[2] for command: ?
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[3] for command: exit
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[4] for command: quit
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[5] for command: import
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[6] for command: display
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[7] for command: clear
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[8] for command: show
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[9] for command: inspect
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[10] for command: purge
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[11] for command: edit
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[12] for command: load
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[13] for command: .
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[14] for command: save
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[15] for command: record
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[16] for command: history
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[17] for command: alias
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[18] for command: set
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Added completor[19] for command: register
      GREENDEBUG [org.codehaus.groovy.tools.shell.CommandsMultiCompletor] Refreshing the completor list
      GREENDEBUG [org.codehaus.groovy.tools.shell.InteractiveShellRunner] Running
      groovy:000> . geb.groovy
      GREENDEBUG [org.codehaus.groovy.tools.shell.InteractiveShellRunner] Read line: . geb.groovy
      GREENDEBUG [org.codehaus.groovy.tools.shell.Groovysh] Executing command(.): org.codehaus.groovy.tools.shell.CommandAlias@239cd5f5; w/args: [geb.groovy]
      GREENDEBUG [org.codehaus.groovy.tools.shell.commands.LoadCommand.load] Attempting to load: null
      GREENDEBUG [org.codehaus.groovy.tools.shell.Groovysh] Executing command(import): org.codehaus.groovy.tools.shell.commands.ImportCommand@6d66f9b9; w/args: [groovy.grape.Grape]
      GREENDEBUG [org.codehaus.groovy.tools.shell.commands.ImportCommand.import] Adding import: import groovy.grape.Grape
      GREENDEBUG [org.codehaus.groovy.tools.shell.Groovysh] Result: [import groovy.grape.Grape]
      ===> [import groovy.grape.Grape]
      GREENDEBUG [org.codehaus.groovy.tools.shell.RigidParser] Parsing: import groovy.grape.Grape
      Grape.grab([group:'org.codehaus.geb', module:'geb-core', version:'0.6.3'])
      GREENDEBUG [org.codehaus.groovy.tools.shell.RigidParser] Parse complete
      GREENDEBUG [org.codehaus.groovy.tools.shell.Groovysh] Evaluating buffer...
      GREENDEBUG [org.codehaus.groovy.tools.shell.Interpreter] Compiled script: groovysh_evaluate@464d28c7
      GREENDEBUG [org.codehaus.groovy.tools.shell.Interpreter] Evaluation result: null (null)
      GREENDEBUG [org.codehaus.groovy.tools.shell.Interpreter] Saving method definition: public static void groovysh_evaluate.__$swapInit()
      GREENDEBUG [org.codehaus.groovy.tools.shell.Interpreter] Saving method definition: public java.lang.Object groovysh_evaluate.this$dist$invoke$3(java.lang.String,java.lang.Object)
      GREENDEBUG [org.codehaus.groovy.tools.shell.Interpreter] Saving method definition: public void groovysh_evaluate.this$dist$set$3(java.lang.String,java.lang.Object)
      GREENDEBUG [org.codehaus.groovy.tools.shell.Interpreter] Saving method definition: public java.lang.Object groovysh_evaluate.this$dist$get$3(java.lang.String)
      ===> null
      GREENDEBUG [org.codehaus.groovy.tools.shell.RigidParser] Parsing: import groovy.grape.Grape
      Grape.grab([group:'org.seleniumhq.selenium', module:'selenium-firefox-driver', version:'2.15.0'])
      GREENDEBUG [org.codehaus.groovy.tools.shell.RigidParser] Parse complete
      GREENDEBUG [org.codehaus.groovy.tools.shell.Groovysh] Evaluating buffer...
      GREENDEBUG [org.codehaus.groovy.tools.shell.Interpreter] Compiled script: groovysh_evaluate@3e93f13f
      GREENDEBUG [org.codehaus.groovy.tools.shell.InteractiveShellRunner] Work failed: java.lang.RuntimeException: Error grabbing Grapes -- [download failed: cglib#cglib-nodep;2.1_3!cglib-nodep.jar]
      java.lang.RuntimeException: Error grabbing Grapes -- [download failed: cglib#cglib-nodep;2.1_3!cglib-nodep.jar]
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      	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:54)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190)
      	at groovy.grape.GrapeIvy.getDependencies(GrapeIvy.groovy:336)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:226)
      	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52)
      	at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:463)
      	at groovy.grape.GrapeIvy$resolve$0.callCurrent(Unknown Source)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
      	at groovy.grape.GrapeIvy$resolve$0.callCurrent(Unknown Source)
      	at groovy.grape.GrapeIvy.resolve(GrapeIvy.groovy:432)
      	at groovy.grape.GrapeIvy$resolve.callCurrent(Unknown Source)
      	at groovy.grape.GrapeIvy.grab(GrapeIvy.groovy:248)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:226)
      	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:145)
      	at groovy.grape.GrapeIvy.grab(GrapeIvy.groovy:230)
      	at groovy.grape.Grape.grab(Grape.java:129)
      	at groovy.grape.Grape$grab.call(Unknown Source)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      	at groovysh_evaluate.run(groovysh_evaluate:3)
      	at groovysh_evaluate$run.call(Unknown Source)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
      	at groovysh_evaluate$run.call(Unknown Source)
      	at org.codehaus.groovy.tools.shell.Interpreter.evaluate(Interpreter.groovy:67)
      	at org.codehaus.groovy.tools.shell.Interpreter$evaluate.call(Unknown Source)
      	at org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:152)
      	at org.codehaus.groovy.tools.shell.Shell.leftShift(Shell.groovy:114)
      	at org.codehaus.groovy.tools.shell.Shell$leftShift$0.call(Unknown Source)
      	at org.codehaus.groovy.tools.shell.commands.LoadCommand$_load_closure1.doCall(LoadCommand.groovy:80)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
      	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:877)
      	at groovy.lang.Closure.call(Closure.java:412)
      	at groovy.lang.Closure.call(Closure.java:425)
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.callClosureForLine(DefaultGroovyMethods.java:3588)
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.eachLine(DefaultGroovyMethods.java:14291)
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.eachLine(DefaultGroovyMethods.java:14180)
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.eachLine(DefaultGroovyMethods.java:14211)
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.eachLine(DefaultGroovyMethods.java:14195)
      	at org.codehaus.groovy.runtime.dgm$186.invoke(Unknown Source)
      	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:271)
      	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      	at org.codehaus.groovy.tools.shell.commands.LoadCommand.load(LoadCommand.groovy:79)
      	at org.codehaus.groovy.tools.shell.commands.LoadCommand$load.callCurrent(Unknown Source)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
      	at org.codehaus.groovy.tools.shell.commands.LoadCommand.execute(LoadCommand.groovy:68)
      	at org.codehaus.groovy.tools.shell.Command$execute.call(Unknown Source)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      	at org.codehaus.groovy.tools.shell.CommandAlias.execute(CommandAlias.groovy:67)
      	at org.codehaus.groovy.tools.shell.Command$execute.call(Unknown Source)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      	at org.codehaus.groovy.tools.shell.Shell.execute(Shell.groovy:101)
      	at org.codehaus.groovy.tools.shell.Groovysh.super$2$execute(Groovysh.groovy)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
      	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128)
      	at org.codehaus.groovy.tools.shell.Groovysh.executeCommand(Groovysh.groovy:173)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:267)
      	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141)
      	at org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:121)
      	at org.codehaus.groovy.tools.shell.Shell.leftShift(Shell.groovy:114)
      	at org.codehaus.groovy.tools.shell.Shell$leftShift$0.call(Unknown Source)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      	at org.codehaus.groovy.tools.shell.ShellRunner.work(ShellRunner.groovy:88)
      	at org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$work(InteractiveShellRunner.groovy)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
      	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128)
      	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:148)
      	at org.codehaus.groovy.tools.shell.InteractiveShellRunner.work(InteractiveShellRunner.groovy:100)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:267)
      	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:52)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:46)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:137)
      	at org.codehaus.groovy.tools.shell.ShellRunner.run(ShellRunner.groovy:57)
      	at org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$run(InteractiveShellRunner.groovy)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1047)
      	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:128)
      	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:148)
      	at org.codehaus.groovy.tools.shell.InteractiveShellRunner.run(InteractiveShellRunner.groovy:66)
      	at java_lang_Runnable$run.call(Unknown Source)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)
      	at org.codehaus.groovy.tools.shell.Groovysh.run(Groovysh.groovy:463)
      	at org.codehaus.groovy.tools.shell.Groovysh.run(Groovysh.groovy:402)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSite.invoke(PogoMetaMethodSite.java:226)
      	at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.call(PogoMetaMethodSite.java:64)
      	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      	at org.codehaus.groovy.tools.shell.Main.main(Main.groovy:131)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      	at java.lang.reflect.Method.invoke(Method.java:597)
      	at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:108)
      	at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:130)
      ERROR java.lang.RuntimeException:
      Error grabbing Grapes -- [download failed: cglib#cglib-nodep;2.1_3!cglib-nodep.jar]
      GREENDEBUG [org.codehaus.groovy.tools.shell.Groovysh] Error grabbing Grapes -- [download failed: cglib#cglib-nodep;2.1_3!cglib-nodep.jar]
      java.lang.RuntimeException: Error grabbing Grapes -- [download failed: cglib#cglib-nodep;2.1_3!cglib-nodep.jar]
      	at groovysh_evaluate.run(groovysh_evaluate:3)
      	at groovysh_evaluate$run.call(Unknown Source)
      	at groovysh_evaluate$run.call(Unknown Source)
      	at java_lang_Runnable$run.call(Unknown Source)
      groovy:000> 
      

      The module in question is available from the central Maven repository: http://repo1.maven.org/maven2/cglib/cglib-nodep/2.1_3/

        Activity

        Hide
        Howard M. Lewis Ship added a comment -

        I eventually discovered that Grape uses ~/.m2/repository ... deleting that folder made things work properly.

        Show
        Howard M. Lewis Ship added a comment - I eventually discovered that Grape uses ~/.m2/repository ... deleting that folder made things work properly.
        Hide
        lajos papp added a comment -

        Just for the record I run into the same issue, and the cause is that the version 2.1_3 version of cglib-nodep was removed from central repo. But fortunately its still in the ibiblio mirror. I was able to fixx this issue by creating a custom `~/.groovy/grapeConfig.xml` which can be fund in this gist:

        https://gist.github.com/lalyos/9366690

        Show
        lajos papp added a comment - Just for the record I run into the same issue, and the cause is that the version 2.1_3 version of cglib-nodep was removed from central repo. But fortunately its still in the ibiblio mirror. I was able to fixx this issue by creating a custom `~/.groovy/grapeConfig.xml` which can be fund in this gist: https://gist.github.com/lalyos/9366690

          People

          • Assignee:
            Unassigned
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: