Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-737

MockExtension can't be deactivated

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.0.3
    • None
    • TestControl
    • None
    • OpenWebBeans 1.2.6

    Description

      Using an ClassDeactivator to deactivate the MockExtension (like described in http://deltaspike.apache.org/documentation/test-control.html#_liquibase) leads to a StackOverflowError:

      java.lang.StackOverflowError
      	at org.apache.webbeans.container.BeanCacheKey.getQualifierHashCode(BeanCacheKey.java:184)
      	at org.apache.webbeans.container.BeanCacheKey.computeHashCode(BeanCacheKey.java:167)
      	at org.apache.webbeans.container.BeanCacheKey.<init>(BeanCacheKey.java:67)
      	at org.apache.webbeans.container.InjectionResolver.implResolveByType(InjectionResolver.java:485)
      	at org.apache.webbeans.container.InjectionResolver.implResolveByType(InjectionResolver.java:435)
      	at org.apache.webbeans.container.BeanManagerImpl.getBeans(BeanManagerImpl.java:578)
      	at org.apache.webbeans.container.InjectableBeanManager.getBeans(InjectableBeanManager.java:117)
      	at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:141)
      	at org.apache.deltaspike.testcontrol.impl.mock.MockAwareInjectionTargetWrapper.produce(MockAwareInjectionTargetWrapper.java:54)
      	at org.apache.webbeans.component.AbstractOwbBean.create(AbstractOwbBean.java:121)
      	at org.apache.webbeans.component.ManagedBean.create(ManagedBean.java:55)
      	at org.apache.webbeans.context.creational.BeanInstanceBag.create(BeanInstanceBag.java:76)
      	at org.apache.webbeans.context.AbstractContext.getInstance(AbstractContext.java:160)
      	at org.apache.webbeans.context.AbstractContext.get(AbstractContext.java:125)
      	at org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.getContextualInstance(NormalScopedBeanInterceptorHandler.java:100)
      	at org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.get(NormalScopedBeanInterceptorHandler.java:70)
      	at org.apache.deltaspike.testcontrol.impl.mock.SimpleMockManager$$OwbNormalScopeProxy0.getMock(org/apache/deltaspike/testcontrol/impl/mock/SimpleMockManager.java)
      	at org.apache.deltaspike.testcontrol.impl.mock.MockAwareInjectionTargetWrapper.produce(MockAwareInjectionTargetWrapper.java:59)
      	at org.apache.webbeans.component.AbstractOwbBean.create(AbstractOwbBean.java:121)
      	at org.apache.webbeans.component.ManagedBean.create(ManagedBean.java:55)
      	at org.apache.webbeans.context.creational.BeanInstanceBag.create(BeanInstanceBag.java:76)
      	at org.apache.webbeans.context.AbstractContext.getInstance(AbstractContext.java:160)
      	at org.apache.webbeans.context.AbstractContext.get(AbstractContext.java:125)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rsteininger Ronald Steininger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: