-
Bug
-
Resolution: Won't Do
-
Major
-
5.3.0.Final
-
None
Exception thrown while it tries to invoke the start() in the second custom interceptor:
org.infinispan.CacheException: Unable to invoke method protected void org.infinispan.interceptors.CustomInterceptorTest$SecondCustomInterceptor.start() on object of type FirstCustomInterceptor
After some digging, I've found that both interceptor share the same MetaData class (note, I've added this print on my local branch only):
2013-05-01 12:49:37,405 FATAL (testng-CustomInterceptorTest) [org.infinispan.factories.ComponentRegistry] Component: Component{instance=org.infinispan.interceptors.CustomInterceptorTest$FirstCustomInterceptor@4aee260b, name=org.infinispan.interceptors.CustomInterceptorTest$FirstCustomInterceptor}, Metadata: ComponentMetadata{name='org.infinispan.interceptors.base.BaseCustomInterceptor', dependencies=null, injectMetadata=[org.infinispan.factories.components.ComponentMetadata$InjectMetadata@54aa2db, org.infinispan.factories.components.ComponentMetadata$InjectMetadata@6709da93], startMethods=[org.infinispan.factories.components.ComponentMetadata$PrioritizedMethodMetadata@37ed1dbe], stopMethods=[org.infinispan.factories.components.ComponentMetadata$PrioritizedMethodMetadata@303bc1a1], globalScope=false, survivesRestarts=false} 2013-05-01 12:49:37,406 FATAL (testng-CustomInterceptorTest) [org.infinispan.factories.ComponentRegistry] Component: Component{instance=org.infinispan.interceptors.CustomInterceptorTest$SecondCustomInterceptor@5903c29b, name=org.infinispan.interceptors.CustomInterceptorTest$SecondCustomInterceptor}, Metadata: ComponentMetadata{name='org.infinispan.interceptors.base.BaseCustomInterceptor', dependencies=null, injectMetadata=[org.infinispan.factories.components.ComponentMetadata$InjectMetadata@54aa2db, org.infinispan.factories.components.ComponentMetadata$InjectMetadata@6709da93], startMethods=[org.infinispan.factories.components.ComponentMetadata$PrioritizedMethodMetadata@37ed1dbe], stopMethods=[org.infinispan.factories.components.ComponentMetadata$PrioritizedMethodMetadata@303bc1a1], globalScope=false, survivesRestarts=false}
The test can be found here: https://github.com/pruivo/infinispan/blob/two_custom_interceptors/core/src/test/java/org/infinispan/interceptors/CustomInterceptorTest.java#L68
- blocks
-
ISPN-2861 Integrate the CloudTM extended statistics in Infinispan
- Closed