Console shows :
[14:33:38,735][SEVERE][sys-#19%null%][GridPartitionedSingleGetFuture] Failed to
get values from dht cache [fut=GridCompoundIdentityFuture
[super=GridCompoundFuture [rdc=Collection reducer: [], flags=1, lsnrCalls=1,
done=true, cancelled=false, err=class o.a.i.IgniteCheckedException:
java.lang.NullPointerException, futs=[false, true]]]]
class org.apache.ignite.IgniteCheckedException: java.lang.NullPointerException
at
org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadFromStore(GridCacheStoreManagerAdapter.java:309)
at
org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.load(GridCacheStoreManagerAdapter.java:265)
at
org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadAllFromStore(GridCacheStoreManagerAdapter.java:398)
at
org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadAll(GridCacheStoreManagerAdapter.java:364)
at
org.apache.ignite.internal.processors.cache.GridCacheAdapter$15.call(GridCacheAdapter.java:1944)
at
org.apache.ignite.internal.processors.cache.GridCacheAdapter$15.call(GridCacheAdapter.java:1942)
at
org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6420)
at
org.apache.ignite.internal.processors.closure.GridClosureProcessor$2.body(GridClosureProcessor.java:929)
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:
java.lang.NullPointerException
... 12 more
Caused by: java.lang.NullPointerException
at hbasetest.HbaseLoadCacheStore.load(HbaseLoadCacheStore.java:121)
at hbasetest.HbaseLoadCacheStore.load(HbaseLoadCacheStore.java:25)
at
org.apache.ignite.internal.processors.cache.CacheStoreBalancingWrapper.load(CacheStoreBalancingWrapper.java:97)
at
org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.loadFromStore(GridCacheStoreManagerAdapter.java:298)
... 11 more
Line 121 in HbaseLoadCacheStore.java is rs=hbaseBean.hTable.get(new
Get(Bytes.toBytes(key)));
In addition, that ket is neither existed in ignite cache nor in hbase.
Thanks for your help.
------------------ ???????? ------------------
??????: "Dmitriy Setrakyan";<[email protected]>;
????????: 2016??5??13??(??????) ????10:59
??????: "user"<[email protected]>;
????: Re: NullPointerException When Use ReadThrough
Can you please provide the stack trace?
On Thu, May 12, 2016 at 2:12 AM, Level D <[email protected]> wrote:
Hi,
When I use readthrough to get a key neither existed in ignite cache nor in
hbase, console shows nullpointerexception.
Is it nessary for hbase to have the record? In addition to this way,how can I
avoid that exception?