java.lang.IncompatibleClassChangeError: the number of constructors during runtime and compile time for groovy.lang.DelegatingMetaClass do not match. Expected -1 but got 2

Google Groups | Kenneth Kalmer | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Could not initialize class geb.navigator.NonEmptyNavigator

    Google Groups | 2 years ago | Kenneth Kalmer
    java.lang.IncompatibleClassChangeError: the number of constructors during runtime and compile time for groovy.lang.DelegatingMetaClass do not match. Expected -1 but got 2

    Root Cause Analysis

    1. java.lang.IncompatibleClassChangeError

      the number of constructors during runtime and compile time for groovy.lang.DelegatingMetaClass do not match. Expected -1 but got 2

      at geb.navigator.AttributeAccessingMetaClass.<init>()
    2. Geb Core
      AttributeAccessingMetaClass.<init>
      1. geb.navigator.AttributeAccessingMetaClass.<init>(AttributeAccessingMetaClass.groovy:24)
      1 frame
    3. Geb AST
      AttributeAccessingMetaClassRegistrar.registerFor
      1. geb.transform.AttributeAccessingMetaClassRegistrar.registerFor(AttributeAccessingMetaClassRegistrar.groovy:22)
      1 frame
    4. Geb Core
      PageContentTemplateFactoryDelegate.$
      1. geb.navigator.NonEmptyNavigator.<clinit>(NonEmptyNavigator.groovy:42)
      2. geb.navigator.factory.DefaultInnerNavigatorFactory.createNavigator(DefaultInnerNavigatorFactory.groovy:39)
      3. geb.navigator.factory.AbstractNavigatorFactory.createFromWebElements(AbstractNavigatorFactory.groovy:43)
      4. geb.navigator.factory.BrowserBackedNavigatorFactory.createBase(BrowserBackedNavigatorFactory.groovy:33)
      5. geb.navigator.factory.BrowserBackedNavigatorFactory.getBase(BrowserBackedNavigatorFactory.groovy:39)
      6. geb.content.NavigableSupport.getBase(NavigableSupport.groovy:31)
      7. geb.content.NavigableSupport.$(NavigableSupport.groovy:111)
      8. geb.content.PageContentTemplateFactoryDelegate.$(PageContentTemplateFactoryDelegate.groovy:142)
      8 frames
    5. pages
      LoginPage$__clinit__closure2_closure3.doCall
      1. pages.LoginPage$__clinit__closure2_closure3.doCall(LoginPage.groovy:10)
      1 frame
    6. Geb Core
      Page.propertyMissing
      1. geb.content.PageContentTemplate.invokeFactory(PageContentTemplate.groovy:97)
      2. geb.content.PageContentTemplate$_create_closure1.doCall(PageContentTemplate.groovy:59)
      3. geb.content.PageContentTemplate.create(PageContentTemplate.groovy:82)
      4. geb.content.PageContentTemplate.get(PageContentTemplate.groovy:54)
      5. geb.content.PageContentSupport.getContent(PageContentSupport.groovy:43)
      6. geb.content.PageContentSupport.propertyMissing(PageContentSupport.groovy:59)
      7. geb.Page.propertyMissing(Page.groovy:77)
      7 frames
    7. pages
      LoginPage.login
      1. pages.LoginPage.login(LoginPage.groovy:18)
      1 frame
    8. Unknown
      LoginTest.testLoginFailure
      1. LoginTest.testLoginFailure(LoginTest.groovy:11)
      1 frame