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@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}
{code}
The test can be found here:
https://github.com/pruivo/infinispan/blob/two_custom_interceptors/core/sr...
--
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