Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-3066

Unable to add two custom interceptors

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Rejected
    • 5.3.0.Alpha1
    • 6.0.0.CR1
    • Configuration
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              pruivo@redhat.com Pedro Ruivo
              pruivo@redhat.com Pedro Ruivo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: