ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prem Sahoo <prem.re...@gmail.com>
Subject Re: CacheEntryEventSerializableFilter in ignite1.5
Date Wed, 06 Jan 2016 03:01:21 GMT
Here the object what u are using is wrong 

Sent from my iPhone

> On Jan 5, 2016, at 9:33 PM, wychoi <wychoi@bistel.co.kr> wrote:
> 
> HI
> 
> We're to examine ignite1.5.
> We had an error occurs while using the Continuous Query.
> Piece of code like this:
> It was applied to the CacheEntryEventSerializableFilter.setRemoteFilter of
> ContinuousQuery.
> 
> 
> query.setRemoteFilter(new CacheEntryEventSerializableFilter<AffinityKey,
> XObject>() {
>    @Override 
>    public boolean evaluate(CacheEntryEvent<? extends AffinityKey, ? extends
> XObject> e) {
>        return false;
>    }
> });
> 
> However, the error was generated as follows.
> 
> java.lang.ClassCastException:com.company.XObject$2 cannot be cast to
> org.apache.ignite.cache.CacheEntryEventSerializableFilter
>    at
> org.apache.ignite.internal.processors.cache.query.continuous.CacheContinuousQueryHandler.readExternal(CacheContinuousQueryHandler.java:1109)
>    at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1837)
>    at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
>    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
>    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
>    at
> org.apache.ignite.internal.processors.continuous.StartRequestData.readExternal(StartRequestData.java:260)
>    at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1837)
>    at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1796)
>    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
>    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)
>    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)
>    at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
>    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
>    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)
>    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1915)
>    at
> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
>    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
>    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
>    at
> org.apache.ignite.marshaller.jdk.JdkMarshaller.unmarshal(JdkMarshaller.java:102)
>    at
> org.apache.ignite.marshaller.AbstractMarshaller.unmarshal(AbstractMarshaller.java:78)
>    at
> org.apache.ignite.spi.discovery.tcp.messages.TcpDiscoveryCustomEventMessage.message(TcpDiscoveryCustomEventMessage.java:78)
>    at
> org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.notifyDiscoveryListener(ServerImpl.java:4731)
>    at
> org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processCustomMessage(ServerImpl.java:4592)
>    at
> org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.processMessage(ServerImpl.java:2276)
>    at
> org.apache.ignite.spi.discovery.tcp.ServerImpl$MessageWorkerAdapter.body(ServerImpl.java:5784)
>    at
> org.apache.ignite.spi.discovery.tcp.ServerImpl$RingMessageWorker.body(ServerImpl.java:2161)
>    at org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
> 
> What should I do to solve this problem ?
> Did I use the (AffinityKey,Object) as a parameter to
> CacheEntryEventSerializableFilter?
> 
> 
> 
> --
> View this message in context: http://apache-ignite-users.70518.x6.nabble.com/CacheEntryEventSerializableFilter-in-ignite1-5-tp2382.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message