Error when running Gremlin on latest release

160 views
Skip to first unread message

Johannes Mauerer

unread,
Oct 5, 2014, 8:41:38 AM10/5/14
to gremli...@googlegroups.com
Hi,

first post in Gremlin-users :). Hope everybody is having a great Sunday!

I've switched Laptops and installed the latest release from Github. mvn clean install runs fine, but when trying to run bin/gremlin.sh I get the following error (see below).

Any chance anyone knows of the error? I'm on Mac OS X 10.9.5 with Java jdk1.8.0_20.jdk.

Thanks!

Johannes

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:


    0x0000000: 04bd 0004 5903 03c5 0033 0153 5910 ff12


    0x0000010: 02b8 0039 2a5f ab00 0000 004f 0000 0003


    0x0000020: 0000 9b75 0000 0022 3231 c38a 0000 002b


    0x0000030: 64df 9bb1 0000 003d 5f5a 57b7 003c a700


    0x0000040: 315f 5a59 0332 ba00 4300 005f 57b7 0045


    0x0000050: a700 1f5f 5a59 0332 ba00 4800 005f 57b7


    0x0000060: 004b a700 0dbb 004d 5912 4fb7 0052 bf57


    0x0000070: 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:2658)


        at java.lang.Class.getDeclaredConstructors(Class.java:2007)


        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:365)


        at org.codehaus.groovy.vmplugin.v7.Selector$MethodSelector.setCallSiteTarget(Selector.java:947)


        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:62)


        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)


        at java.lang.reflect.Method.invoke(Method.java:483)


        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 java_lang_Runnable$run.call(Unknown Source)


        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)


        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)


        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:112)


        at com.tinkerpop.gremlin.console.Console.<init>(Console.groovy:99)


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


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


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


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


        at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)


        at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:102)


        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)


        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:182)


        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:190)


        at com.tinkerpop.gremlin.console.Console.main(Console.groovy:230)



Bob B

unread,
Oct 5, 2014, 5:31:24 PM10/5/14
to gremlin-users
This is not your fault. I get the same error.

If you just want to get rollin' then you can 'git checkout 3.0.0.M2' to grab the latest tag. If you really want to use master then you'll have to wait for someone (probably Stephen) to fix this.

Bob

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/5552abc8-58b7-4126-afbc-087fe2c49816%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stephen Mallette

unread,
Oct 6, 2014, 7:20:43 AM10/6/14
to gremli...@googlegroups.com
You guys get this error on startup of gremlin.sh?  seems to work ok for me, though my java version is at:

$ java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)


Bob B

unread,
Oct 6, 2014, 7:27:45 AM10/6/14
to gremlin-users
Yes, and just in case you care:

$ java -version
java version "1.8.0_20"
Java(TM) SE Runtime Environment (build 1.8.0_20-b26)
Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode)


Stephen Mallette

unread,
Oct 6, 2014, 9:17:14 AM10/6/14
to gremli...@googlegroups.com
Seems that this is a known issue for Groovy given newer version of the JDK:


Stephen

Bob B

unread,
Oct 6, 2014, 12:58:30 PM10/6/14
to gremli...@googlegroups.com
The failure can be avoided by adding '-noverify' to your JAVA_OPTOINS when running gremlin console. Looks like we'll see a fix for this in java 8 build 40.

Bob

        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.</spa

...

Johannes Mauerer

unread,
Oct 8, 2014, 5:54:43 PM10/8/14
to gremli...@googlegroups.com
Thanks Bob!

While in M2 this actually still failed, e.g. when trying to createClassic() in M3 for me it works with -noverify. Without it I still get the error!

Bob B

unread,
Oct 22, 2014, 10:49:45 AM10/22/14
to gremli...@googlegroups.com
I updated to Java 1.8.0_25 and the -noverify parameter is no longer needed. Gremlin starts as expected.

Bob

Marko Rodriguez

unread,
Oct 22, 2014, 10:53:30 AM10/22/14
to gremli...@googlegroups.com
Hey Bob,

Are you on a Mac? If so, how do you "update" Java? Every time I update Java it seems to just update browser Java.

Thanks,
Marko.
--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.

Bob B

unread,
Oct 22, 2014, 11:03:13 AM10/22/14
to gremlin-users
I'm on ubuntu. When I was forced to work on a mac, I installed the JDK using the oracle .dmg like usual. Perhaps you have done something that is preventing this from taking effect, like installed java w/ one of the wacky Mac package managers. Either way, I can attempt to help you get it straightened out.

Bob

Reply all
Reply to author
Forward
0 new messages