0 Replies Latest reply: Oct 25, 2012 6:28 PM by 887796 RSS

    Problem using coherence cache - events are not deleted

    887796
      Hi,

      We have a HA application using precise recovery with jms.

      We also use coherence for creating a cache. The cache is a replicated cache and is part of the cep jvm (not a separated installation of coherence) This cache receives the events from jms adapter and distributes them to both ceps to an event bean that implements MapListener and StreamSource.

      Events are published to both ceps and it works fine and events are published to the cep but they are not deleted from the the cache.

      In the META-INF/wlevs/coherence/Coherence-cache-config.xml we setup the cache config.

      In the EPN component XML file:
      +<wlevs:caching-system id="Store" provider="coherence"></wlevs:caching-system>+
      +<wlevs:cache id="EventsCache" caching-system="Store" value-type="InboundEvent" key-properties="EventID"></wlevs:cache>+

      In order to delete events from the cache we have tried to add in the meta-inf/wlevs/config.xml :

      +<caching-system>+
      +<name>caching-system-id</name>+
      +<cache>+
      +<name>cache-id</name>+
      +<max-size>100000</max-size>+
      +<eviction-policy>LRU</eviction-policy+
      +<time-to-live>3600</time-to-live>+
      +</cache>+
      +</caching-system>+

      But when we deploy the application we get an error:

      Caused by: java.lang.RuntimeException: Error while invoking method com.bea.wlevs.cache.coherence.CoherenceCachingSystem.prepare() during configuration update. A configuration object of type com.bea.wlevs.configuration.application.CachingSystemConfig could not be passed to the method parameter of type com.bea.wlevs.configuration.application.CoherenceCachingSystemConfig.
           at com.bea.wlevs.configuration.internal.ConfigurationListener.registrationConfirmed(ConfigurationListener.java:712)
           at com.bea.core.configuration.manager.internal.CMServiceImpl.reallyRegisterConfigurationListener(CMServiceImpl.java:204)
           at com.bea.core.configuration.manager.internal.CMServiceImpl.staticRegisterConfigurationListener(CMServiceImpl.java:171)
           at com.bea.core.configuration.manager.internal.CMServiceImpl.registerConfigurationListener(CMServiceImpl.java:154)
           at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
           at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
           at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
           at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
           at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
           at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
           at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
           at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
           at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
           at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
           at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
           at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
           at $Proxy43.registerConfigurationListener(Unknown Source)
      ........


      Any idea why?

      Thanks