exception during starting client

classic Classic list List threaded Threaded
5 messages Options
tomk tomk
Reply | Threaded
Open this post in threaded view
|

exception during starting client

Hello,  
Look at my error:

class org.apache.ignite.IgniteException: class org.apache.ignite.binary.BinaryObjectException: Failed to register class.
        at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.execute(GridClosureProcessor.java:1792)
        at org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:509)
        at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6397)
        at org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:503)
        at org.apache.ignite.internal.processors.job.GridJobWorker.body(GridJobWorker.java:456)
        at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:110)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: javax.cache.integration.CacheLoaderException: class org.apache.ignite.binary.BinaryObjectException: Failed to register class.
        at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadCache(GridCacheStoreManagerAdapter.java:510)
        at org.apache.ignite.internal.processors.cache.distributed.dht.GridDhtCacheAdapter.localLoadCache(GridDhtCacheAdapter.java:514)
        at org.apache.ignite.internal.processors.cache.IgniteCacheProxy.localLoadCache(IgniteCacheProxy.java:388)
        at org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure.call(GridCacheAdapter.java:5769)
        at org.apache.ignite.internal.processors.cache.GridCacheAdapter$LoadCacheClosure.call(GridCacheAdapter.java:5716)
        at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.execute(GridClosureProcessor.java:1789)
        ... 8 more
Caused by: class org.apache.ignite.binary.BinaryObjectException: Failed to register class.
        at org.apache.ignite.internal.binary.BinaryContext.registerUserClassDescriptor(BinaryContext.java:565)
        at org.apache.ignite.internal.binary.BinaryContext.registerClassDescriptor(BinaryContext.java:541)
        at org.apache.ignite.internal.binary.BinaryContext.descriptorForClass(BinaryContext.java:443)
        at org.apache.ignite.internal.binary.BinaryWriterExImpl.marshal(BinaryWriterExImpl.java:145)
        at org.apache.ignite.internal.binary.BinaryWriterExImpl.marshal(BinaryWriterExImpl.java:132)
        at org.apache.ignite.internal.binary.GridBinaryMarshaller.marshal(GridBinaryMarshaller.java:233)
        at org.apache.ignite.internal.processors.cache.binary.CacheObjectBinaryProcessorImpl.marshalToBinary(CacheObjectBinaryProcessorImpl.java:441)
        at org.apache.ignite.internal.processors.cache.binary.CacheObjectBinaryProcessorImpl.toBinary(CacheObjectBinaryProcessorImpl.java:785)
        at org.apache.ignite.internal.processors.cache.binary.CacheObjectBinaryProcessorImpl.toCacheKeyObject(CacheObjectBinaryProcessorImpl.java:714)
        at org.apache.ignite.internal.processors.cache.GridCacheContext.toCacheKeyObject(GridCacheContext.java:1808)
        at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter$3.apply(GridCacheStoreManagerAdapter.java:498)
        at mytest.ignite.CacheWriteThrough.loadCache(CacheWriteThrough.java:119)
        at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadCache(GridCacheStoreManagerAdapter.java:484)
        ... 13 more
Caused by: class org.apache.ignite.IgniteCheckedException: Type ID collision detected [id=504247427, clsName1=mytest.ignite.KeyCache, clsName2=KeyCache]
        at org.apache.ignite.internal.MarshallerContextImpl.registerClassName(MarshallerContextImpl.java:116)
        at org.apache.ignite.internal.MarshallerContextAdapter.registerClass(MarshallerContextAdapter.java:157)
        at org.apache.ignite.internal.binary.BinaryContext.registerUserClassDescriptor(BinaryContext.java:562)



It is running within sparkstreaming (I am going to save data into cache).  Run by spark-submit.
When I execute independently (simple testing) this code (responsible for ignite work) it works.
With sparkstreaming (by spark-submit) returns this error.

Could you help me, please ?
vkulichenko vkulichenko
Reply | Threaded
Open this post in threaded view
|

Re: exception during starting client

Hi,

This should be already fixed in master. Can you build from there and try?

-Val
pwillems pwillems
Reply | Threaded
Open this post in threaded view
|

Re: exception during starting client

vkulichenko wrote
Hi,

This should be already fixed in master. Can you build from there and try?

-Val
Hi @vkulichenko, also a rather new Ignite user. Is there somewhere I can find some background to this issue and maybe find a workaround other than switching to building from master?

Thanks.
vkulichenko vkulichenko
Reply | Threaded
Open this post in threaded view
|

Re: exception during starting client

We just released 1.7 where this issue should be fixed. Please try it out and let us know if it works for you.

-Val
vkulichenko vkulichenko
Reply | Threaded
Open this post in threaded view
|

Re: exception during starting client

I meant 1.6, of course. Here is the download page: http://ignite.apache.org/download.cgi#binaries

-Val