m-yassine1 opened a new issue, #11303: URL: https://github.com/apache/ignite/issues/11303
Hello,
I am trying to listen on some events, but I keep on getting NoSerilization
Exception, and if I implement Serializable, I get a ClassNotFoundException.
I added the following property inside the XML file:
`
<property name="includeEventTypes">
<list>
<util:constant
static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_EXPIRED"/>
<util:constant
static-field="org.apache.ignite.events.EventType.EVT_CLUSTER_ACTIVATED"/>
<util:constant
static-field="org.apache.ignite.events.EventType.EVT_CLUSTER_DEACTIVATED"/>
</list>
</property>
`
In my Java class, I added the following method:
`
node.events().remoteListen(addExpiredQuote(), null,
EventType.EVT_CACHE_OBJECT_EXPIRED);
`
Every time, it reaches this point, it throws the exceptions above.
I am creating a client node, that creates a cache in the cluster, and wants
to listen on this event.
I had the following:
`
node.cluster().forClientNodes(GRID_GAIN_QUOTE_CACHE)
`
Unfortunately, it starts up and I have a break point inside the function
that should be called, but it never goes there when the object is evicted.
This is the cache configuration:
`
<bean
class="org.apache.ignite.configuration.CacheConfiguration">
<property name="name" value="RFQ_REST_QUOTE_CACHE"/>
<property name="cacheMode" value="REPLICATED"/>
<property name="rebalanceMode" value="SYNC"/>
<property name="partitionLossPolicy" value="READ_ONLY_SAFE"/>
<property name="eagerTtl" value="true"/>
<property name="expiryPolicyFactory">
<bean class="javax.cache.expiry.CreatedExpiryPolicy"
factory-method="factoryOf">
<constructor-arg>
<bean
class="javax.cache.expiry.Duration">
<constructor-arg value="SECONDS"/>
<constructor-arg value="30"/>
</bean>
</constructor-arg>
</bean>
</property>
</bean>
`
Can you please help?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
