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

Can't start groovysh on java 1.7.0_67

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.3.6
    • Fix Version/s: None
    • Component/s: Groovy Console
    • Labels:
    • Environment:
      MacOS 10.9.4
      Groovy Version: 2.3.6 JVM: 1.7.0_67 Vendor: Oracle Corporation OS: Mac OS X

      Description

      When I start groovysh I get the following verifier error:

      stefano@dieci:~$ groovysh
      Groovy Shell (2.3.6, JVM: 1.7.0_67)
      Type ':help' or ':h' for help.
      ------------------------------------------------------------------------------------------------------------------------------------------------------------
      FATAL: java.lang.VerifyError: Bad <init> method call from inside of a branch
      Exception Details:
      Location:
      org/codehaus/groovy/tools/shell/util/SimpleCompletor.<init>()V @59: invokespecial
      Reason:
      Error exists in the bytecode
      Bytecode:
      0000000: 04bd 0004 5903 03c5 0033 0153 5910 ff12
      0000010: 02b8 0039 2a5f ab00 0000 004f 0000 0003
      0000020: 0000 9b75 0000 0022 3231 c38a 0000 002b
      0000030: 64df 9bb1 0000 003d 5f5a 57b7 003c a700
      0000040: 315f 5a59 0332 ba00 4300 005f 57b7 0045
      0000050: a700 1f5f 5a59 0332 ba00 4800 005f 57b7
      0000060: 004b a700 0dbb 004d 5912 4fb7 0052 bf57
      0000070: b1
      Stackmap Table:
      full_frame(@56,

      {UninitializedThis},{Object[#59],UninitializedThis})
      full_frame(@65,{UninitializedThis}

      ,

      {Object[#59],UninitializedThis})
      full_frame(@83,{UninitializedThis},{Object[#59],UninitializedThis}

      )
      full_frame(@101,

      {UninitializedThis},{Object[#59],UninitializedThis})
      full_frame(@111,{Object[#2]},{Object[#59]})

      java.lang.VerifyError: Bad <init> method call from inside of a branch
      Exception Details:
      Location:
      org/codehaus/groovy/tools/shell/util/SimpleCompletor.<init>()V @59: invokespecial
      Reason:
      Error exists in the bytecode
      Bytecode:
      0000000: 04bd 0004 5903 03c5 0033 0153 5910 ff12
      0000010: 02b8 0039 2a5f ab00 0000 004f 0000 0003
      0000020: 0000 9b75 0000 0022 3231 c38a 0000 002b
      0000030: 64df 9bb1 0000 003d 5f5a 57b7 003c a700
      0000040: 315f 5a59 0332 ba00 4300 005f 57b7 0045
      0000050: a700 1f5f 5a59 0332 ba00 4800 005f 57b7
      0000060: 004b a700 0dbb 004d 5912 4fb7 0052 bf57
      0000070: b1
      Stackmap Table:
      full_frame(@56,{UninitializedThis}

      ,

      {Object[#59],UninitializedThis})
      full_frame(@65,{UninitializedThis},{Object[#59],UninitializedThis}

      )
      full_frame(@83,

      {UninitializedThis},{Object[#59],UninitializedThis})
      full_frame(@101,{UninitializedThis}

      ,

      {Object[#59],UninitializedThis}

      )
      full_frame(@111,

      {Object[#2]}

      ,

      {Object[#59]}

      )

      at java.lang.Class.getDeclaredConstructors0(Native Method)
      at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
      at java.lang.Class.getDeclaredConstructors(Class.java:1901)
      at org.codehaus.groovy.reflection.CachedClass$2$1.run(CachedClass.java:69)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.codehaus.groovy.reflection.CachedClass$2.initValue(CachedClass.java:66)
      at org.codehaus.groovy.reflection.CachedClass$2.initValue(CachedClass.java:64)
      at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)
      at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)
      at org.codehaus.groovy.reflection.CachedClass.getConstructors(CachedClass.java:258)
      at groovy.lang.MetaClassImpl.<init>(MetaClassImpl.java:213)
      at groovy.lang.MetaClassImpl.<init>(MetaClassImpl.java:223)
      at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.createNormalMetaClass(MetaClassRegistry.java:168)
      at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.createWithCustomLookup(MetaClassRegistry.java:158)
      at groovy.lang.MetaClassRegistry$MetaClassCreationHandle.create(MetaClassRegistry.java:141)
      at org.codehaus.groovy.reflection.ClassInfo.getMetaClassUnderLock(ClassInfo.java:209)
      at org.codehaus.groovy.reflection.ClassInfo.getMetaClass(ClassInfo.java:241)
      at org.codehaus.groovy.runtime.metaclass.MetaClassRegistryImpl.getMetaClass(MetaClassRegistryImpl.java:255)
      at org.codehaus.groovy.vmplugin.v7.Selector$InitSelector.getMetaClass(Selector.java:360)
      at org.codehaus.groovy.vmplugin.v7.Selector$MethodSelector.setCallSiteTarget(Selector.java:942)
      at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:211)
      at org.codehaus.groovy.tools.shell.commands.HelpCommand.createCompleters(HelpCommand.groovy:46)
      at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
      at org.codehaus.groovy.tools.shell.CommandSupport.getCompleter(CommandSupport.groovy:111)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)
      at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1844)
      at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:3690)
      at org.codehaus.groovy.tools.shell.CommandSupport.getProperty(CommandSupport.groovy)
      at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
      at org.codehaus.groovy.tools.shell.CommandsMultiCompleter.add(InteractiveShellRunner.groovy:167)
      at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
      at org.codehaus.groovy.tools.shell.InteractiveShellRunner.run(InteractiveShellRunner.groovy:75)
      at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
      at org.codehaus.groovy.tools.shell.Groovysh.run(Groovysh.groovy:523)
      at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
      at org.codehaus.groovy.tools.shell.Groovysh.run(Groovysh.groovy:458)
      at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
      at org.codehaus.groovy.tools.shell.Main.main(Main.groovy:132)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:106)

        Attachments

          Activity

            People

            • Assignee:
              blackdrag Jochen Theodorou
              Reporter:
              vtkstef Stefano Santoro
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: