Error exists in the bytecode when running test on ChromeDriver/MacOSX

473 views
Skip to first unread message

Dang Viet Ha

unread,
Apr 29, 2016, 5:27:40 AM4/29/16
to Geb User Mailing List

Hello All,


I run a test on ChromeDriver and it reported below error, do you have any idea?


-- My Environment

 + Mac OSX El Capital

 + JDK 1.8_20

 + ChromeDriver, Google Chrome Version 50.0.2661.86 (64-bit)

  + Maven

<dependencies>

<dependency>

<groupId>org.codehaus.groovy</groupId>

<artifactId>groovy-all</artifactId>

<version>2.4.3</version>

</dependency>

<dependency>

<groupId>org.spockframework</groupId>

<artifactId>spock-core</artifactId>

<version>1.0-groovy-2.4</version>

</dependency>

<dependency>

<groupId>org.gebish</groupId>

<artifactId>geb-spock</artifactId>

<version>0.12.2</version>

</dependency>

<dependency>

<groupId>org.seleniumhq.selenium</groupId>

<artifactId>selenium-firefox-driver</artifactId>

<version>2.48.2</version>

</dependency>

<dependency>

<groupId>org.seleniumhq.selenium</groupId>

<artifactId>selenium-support</artifactId>

<version>2.48.2</version>

</dependency>

<dependency>

<groupId>org.seleniumhq.selenium</groupId>

<artifactId>selenium-chrome-driver</artifactId>

<version>2.48.2</version>

</dependency>

<dependency>

<groupId>org.seleniumhq.selenium</groupId>

<artifactId>selenium-ie-driver</artifactId>

<version>2.48.2</version>

</dependency>


</dependencies>


N.B: I already run JVM with -noverify argument as suggest by someone but it still not work.



Thank you

HaDV


-------


java.lang.VerifyError: Bad <init> method call from inside of a branch

Exception Details:

  Location:

    geb/navigator/SearchContextBasedBasicLocator.<init>(Lorg/openqa/selenium/SearchContext;Lgeb/navigator/factory/NavigatorFactory;)V @91: invokespecial

  Reason:

    Error exists in the bytecode

  Bytecode:

    0x0000000: b800 214e 05bd 0004 5903 04bd 0004 5903

    0x0000010: 2b53 b800 2753 5904 2c53 5910 ff12 02b8

    0x0000020: 002b 2a5f ab00 0000 0000 005e 0000 0002

    0x0000030: a8a2 5e9a 0000 001c aca6 0f60 0000 003d

    0x0000040: 5f5a 5903 3212 2db8 0031 c000 2d5f 5904

    0x0000050: 3212 33b8 0031 c000 335f 57b7 0036 a700

    0x0000060: 2e5f 5a59 0332 1238 b800 31c0 0038 5f59

    0x0000070: 0432 1233 b800 31c0 0033 5f57 b700 3aa7

    0x0000080: 000d bb00 3c59 123e b700 41bf 57b1     

  Stackmap Table:

    full_frame(@64,{UninitializedThis,Object[#56],Object[#51],Object[#71]},{Object[#73],UninitializedThis})

    full_frame(@97,{UninitializedThis,Object[#56],Object[#51],Object[#71]},{Object[#73],UninitializedThis})

    full_frame(@130,{UninitializedThis,Object[#56],Object[#51],Object[#71]},{Object[#73],UninitializedThis})

    full_frame(@140,{Object[#2],Object[#56],Object[#51],Object[#71]},{Object[#73]})


at java.lang.Class.privateGetDeclaredConstructors(Class.java:2658)

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

at org.codehaus.groovy.util.LazyReference.getLocked(LazyReference.java:46)

at org.codehaus.groovy.util.LazyReference.get(LazyReference.java:33)

at geb.navigator.factory.BrowserBackedNavigatorFactory.<init>(BrowserBackedNavigatorFactory.groovy:35)

at geb.Configuration.createNavigatorFactory(Configuration.groovy:417)

at geb.Browser.createNavigatorFactory(Browser.groovy:131)

at geb.Browser.getNavigatorFactory(Browser.groovy:119)

at geb.Page.init(Page.groovy:131)

at geb.Browser.createPage(Browser.groovy:860)

at geb.Browser.getPage(Browser.groovy:88)

at geb.Browser.propertyMissing(Browser.groovy:214)

at geb.spock.GebSpec.propertyMissing(GebSpec.groovy:60)

at test.DivisonSettingTest.Test links of divison settings(DivisonSettingTest.groovy:34)

Dang Viet Ha

unread,
Apr 29, 2016, 7:38:09 AM4/29/16
to Geb User Mailing List
hmm, I update the JDK to 1.8.0_91 then everything work fine! Pffff

Marcin Erdmann

unread,
May 4, 2016, 2:30:36 AM5/4/16
to geb-...@googlegroups.com
Yeah, there was a couple of releases of Java 8 which did not play nicely with Groovy. The rule of thumb is to have a look at the jvm version if you are having such issues.
--
You received this message because you are subscribed to the Google Groups "Geb User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To post to this group, send email to geb-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/0ee38e1e-941e-4c59-8c83-ece6e2468a21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages