Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
1.0.3
-
None
-
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)