Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1448

Startup error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-6
    • 1.0-RC-1
    • None
    • None
    • Windows XP
      Java JDK1.5.0_06

    Description

      Having successfully installed Groovy from as far back as the early betas, I have fallen for the following error when trying
      to run Hello world: The problem also occurs when I attempt to run groovysh and groovyConsole.

      groovy Hello.groovy
      java.lang.ClassCastException: gjdk.java.lang.Runnable_GroovyReflector
      at groovy.lang.MetaClassImpl.loadReflector(MetaClassImpl.java:1667)
      at groovy.lang.MetaClassImpl.generateReflector(MetaClassImpl.java:1615)
      at groovy.lang.MetaClassImpl.checkInitialised(MetaClassImpl.java:1532)
      at groovy.lang.MetaClassRegistry.getMetaClass(MetaClassRegistry.java:140
      )
      at groovy.lang.MetaClassImpl.addNewStaticMethodsFrom(MetaClassImpl.java:
      1300)
      at groovy.lang.MetaClassImpl.addInheritedMethods(MetaClassImpl.java:201)

      at groovy.lang.MetaClassImpl.checkInitialised(MetaClassImpl.java:1529)
      at groovy.lang.MetaClassRegistry.checkInitialised(MetaClassRegistry.java
      :201)
      at groovy.lang.MetaClassRegistry.<init>(MetaClassRegistry.java:113)
      at groovy.lang.MetaClassRegistry.<init>(MetaClassRegistry.java:89)
      at org.codehaus.groovy.runtime.Invoker.<init>(Invoker.java:102)
      at org.codehaus.groovy.runtime.InvokerHelper.<clinit>(InvokerHelper.java
      :80)
      at groovy.lang.GroovyObjectSupport.<init>(GroovyObjectSupport.java:61)
      at groovy.lang.Binding.<init>(Binding.java:62)
      at groovy.lang.GroovyShell.<init>(GroovyShell.java:93)
      at groovy.ui.GroovyMain.processOnce(GroovyMain.java:456)
      at groovy.ui.GroovyMain.run(GroovyMain.java:276)
      at groovy.ui.GroovyMain.process(GroovyMain.java:262)
      at groovy.ui.GroovyMain.main(GroovyMain.java:138)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java
      :131)
      at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:160)
      Caught: java.lang.ExceptionInInitializerError

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            kenb Kenneth Bell
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: