Re: when client node connect to server node, server node throws NotSerializableException

2017-11-01 Thread Andrey Mashenkov
Hi Jeff, CacheStore class should be in classpath on all nodes including clients. 1 нояб. 2017 г. 4:52 пользователь "Jeff Jiao" написал: > Hi Andrew, > > Thanks a lot for all the replies. > > yes BoConverter implements Serializable, or Ignite will throw > NotSerializableException. > The "Class"

Re: when client node connect to server node, server node throws NotSerializableException

2017-10-31 Thread Jeff Jiao
Hi Andrew, Thanks a lot for all the replies. yes BoConverter implements Serializable, or Ignite will throw NotSerializableException. The "Class" here is actually for hibernate to get data from DB: org.hibernate.Session.get(Class clazz, Serializable id). After getting the data, BoConverter convert

Re: when client node connect to server node, server node throws NotSerializableException

2017-10-31 Thread Andrey Mashenkov
Hi Jeff, Is BoConverter object serializable and is class present on all nodes? You store configured with storeKeepBinary true, so store will receive binary objects. Why you need value class here? Binary object concept is to overcome a requirement to have all value classes on server side. On Tu

Re: when client node connect to server node, server node throws NotSerializableException

2017-10-30 Thread Jeff Jiao
my factory is very easy, just override the create method and set attributes, please see the code below. In the cache store i use hibernate to get data from Oracle and convert it to binaryObject and then put into Ignite, so I make people can config their own converter and class. Thanks. import ja

Re: when client node connect to server node, server node throws NotSerializableException

2017-10-27 Thread Andrey Mashenkov
Hi Jeff, Looks weird. Can you share a StoreFactory code and cache config? Is factory stateless? Or may be there is smth else not stateless in cache configuration that is missed in log? On Fri, Oct 27, 2017 at 10:50 AM, Jeff Jiao wrote: > hi guys, > > can anyone give some advice... > what can y

Re: when client node connect to server node, server node throws NotSerializableException

2017-10-27 Thread Jeff Jiao
hi guys, can anyone give some advice... what can you see from this exception server side log when client connect to it: Caused by: java.io.NotSerializableException: org.apache.ignite.internal.processors.cache.binary.IgniteBinaryImpl why it says IgniteBinaryImpl is not serializable? -- Sent fro

Re: when client node connect to server node, server node throws NotSerializableException

2017-10-26 Thread Jeff Jiao
just in case you don't see my replies, I will put all of these in one msg. yes, PIgniteCacheStoreFactory implements javax.cache.configuration.Factory, and this factory extends Serializable. like I said " I already created my own factory to create the cache store to avoid Serialization problem."

Re: when client node connect to server node, server node throws NotSerializableException

2017-10-25 Thread Jeff Jiao
ok I tried to comment out this part, the exception I saw on server node before doesn't appear this time... so it looks like Cache Factory/Store problem... but why...

Re: when client node connect to server node, server node throws NotSerializableException

2017-10-25 Thread Jeff Jiao
yes, PIgniteCacheStoreFactory implements javax.cache.configuration.Factory, and this factory extends Serializable. like I said " I already created my own factory to create the cache store to avoid Serialization problem." without the custom factory, it cannot start any nodes b/c my own cacheStore do

Re: when client node connect to server node, server node throws NotSerializableException

2017-10-25 Thread Andrey Mashenkov
Hi, Looks like node fails while trying to serialize cache configuration. Would you please check if com.pingan.pilot.cache.impl.ignite. PIgniteCacheStoreFactory implements Serializable? On Wed, Oct 25, 2017 at 10:12 AM, Jeff Jiao wrote: > Hi Ignite Community, > > I have a Ignite server node run

when client node connect to server node, server node throws NotSerializableException

2017-10-25 Thread Jeff Jiao
Hi Ignite Community, I have a Ignite server node running well, it has a cache store connect to Oracle, and here I already created my own factory to create the cache store to avoid Serialization problem. The server node suppose to store BinaryObject as value. I already tested all the get, put, remo