[infinispan-issues] [JBoss JIRA] (ISPN-3066) Unable to add two custom interceptors
Pedro Ruivo (JIRA)
jira-events at lists.jboss.org
Wed May 1 07:54:53 EDT 2013
Pedro Ruivo created ISPN-3066:
---------------------------------
Summary: Unable to add two custom interceptors
Key: ISPN-3066
URL: https://issues.jboss.org/browse/ISPN-3066
Project: Infinispan
Issue Type: Bug
Components: Configuration
Affects Versions: 5.3.0.Alpha1
Reporter: Pedro Ruivo
Assignee: Mircea Markus
Exception thrown while it tries to invoke the start() in the second custom interceptor:
{code}
org.infinispan.CacheException: Unable to invoke method protected void org.infinispan.interceptors.CustomInterceptorTest$SecondCustomInterceptor.start() on object of type FirstCustomInterceptor
{code}
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):
{code}
2013-05-01 12:49:37,405 FATAL (testng-CustomInterceptorTest) [org.infinispan.factories.ComponentRegistry] Component: Component{instance=org.infinispan.interceptors.CustomInterceptorTest$FirstCustomInterceptor at 4aee260b, name=org.infinispan.interceptors.CustomInterceptorTest$FirstCustomInterceptor}, Metadata: ComponentMetadata{name='org.infinispan.interceptors.base.BaseCustomInterceptor', dependencies=null, injectMetadata=[org.infinispan.factories.components.ComponentMetadata$InjectMetadata at 54aa2db, org.infinispan.factories.components.ComponentMetadata$InjectMetadata at 6709da93], startMethods=[org.infinispan.factories.components.ComponentMetadata$PrioritizedMethodMetadata at 37ed1dbe], stopMethods=[org.infinispan.factories.components.ComponentMetadata$PrioritizedMethodMetadata at 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 at 5903c29b, name=org.infinispan.interceptors.CustomInterceptorTest$SecondCustomInterceptor}, Metadata: ComponentMetadata{name='org.infinispan.interceptors.base.BaseCustomInterceptor', dependencies=null, injectMetadata=[org.infinispan.factories.components.ComponentMetadata$InjectMetadata at 54aa2db, org.infinispan.factories.components.ComponentMetadata$InjectMetadata at 6709da93], startMethods=[org.infinispan.factories.components.ComponentMetadata$PrioritizedMethodMetadata at 37ed1dbe], stopMethods=[org.infinispan.factories.components.ComponentMetadata$PrioritizedMethodMetadata at 303bc1a1], globalScope=false, survivesRestarts=false}
{code}
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
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list