1 Reply Latest reply on Oct 4, 2011 4:32 AM by Kevin Pollet

    Using JCache interceptors in passivating bean

    Scott Guilbeaux Newbie

      I'm evaluating the use of the infinispan cdi module for an upcoming project and ran into problem attempting to use the JCache interceptors in a conversation scoped bean.

       

      I have a method in the bean annotated with @CacheResult(cacheName = "policyInquiryCache"), but during deployment I get the following error.

       

      Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001402 The bean Session bean [class com.hochheim.hponline.inquiry.PolicyView with qualifiers [@Any @Default @Named]; local interfaces are [PolicyView] declared a passivating scope but has a non-serializable interceptor Interceptor [class org.infinispan.cdi.interceptor.CacheResultInterceptor intercepts @CacheResult]

       

      Is there something I'm missing, or does the interceptors need to be made passivation capable?

       

      I'm using cdi module version 5.0.1.Final and deploying into AS 7.0.2.