Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7BB32200828 for ; Fri, 13 May 2016 09:07:14 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7A31016099F; Fri, 13 May 2016 07:07:14 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 737E51602C0 for ; Fri, 13 May 2016 09:07:13 +0200 (CEST) Received: (qmail 94696 invoked by uid 500); 13 May 2016 07:07:12 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 94687 invoked by uid 99); 13 May 2016 07:07:12 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2016 07:07:12 +0000 Received: from mail-qk0-f171.google.com (mail-qk0-f171.google.com [209.85.220.171]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 541F91A0098 for ; Fri, 13 May 2016 07:07:12 +0000 (UTC) Received: by mail-qk0-f171.google.com with SMTP id n63so56056173qkf.0 for ; Fri, 13 May 2016 00:07:12 -0700 (PDT) X-Gm-Message-State: AOPr4FXbLgR6G/6KpLmNTVShoRB5iEwvZjln+B+UQc+mHbCrJ7LOqSFYsAlps4ByoMt6+MBWA+s6MOC3eVBIyY4R X-Received: by 10.55.203.16 with SMTP id d16mr7175004qkj.116.1463123231466; Fri, 13 May 2016 00:07:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.37.39 with HTTP; Fri, 13 May 2016 00:06:31 -0700 (PDT) In-Reply-To: References: From: Dmitriy Setrakyan Date: Fri, 13 May 2016 00:06:31 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: NullPointerException When Use ReadThrough To: user Content-Type: multipart/alternative; boundary=001a11447656797d6d0532b3ec72 archived-at: Fri, 13 May 2016 07:07:14 -0000 --001a11447656797d6d0532b3ec72 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable The stack trace shows that NPE comes from hbasetest.HbaseLoadCacheStore.load(HbaseLoadCacheStore.java:121), which is not an Ignite class. Is this your code? Can you check what is null in this class on line 121? D. On Thu, May 12, 2016 at 11:43 PM, Level D <724172189@qq.com> wrote: > Console shows : > > [14:33:38,735][SEVERE][sys-#19%null%][GridPartitionedSingleGetFuture] > Failed to get values from dht cache [fut=3DGridCompoundIdentityFuture > [super=3DGridCompoundFuture [rdc=3DCollection reducer: [], flags=3D1, > lsnrCalls=3D1, done=3Dtrue, cancelled=3Dfalse, err=3Dclass > o.a.i.IgniteCheckedException: java.lang.NullPointerException, futs=3D[fal= se, > true]]]] > class org.apache.ignite.IgniteCheckedException: > java.lang.NullPointerException > at > org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAd= apter.loadFromStore(GridCacheStoreManagerAdapter.java:309) > at > org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAd= apter.load(GridCacheStoreManagerAdapter.java:265) > at > org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAd= apter.loadAllFromStore(GridCacheStoreManagerAdapter.java:398) > at > org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAd= apter.loadAll(GridCacheStoreManagerAdapter.java:364) > at > org.apache.ignite.internal.processors.cache.GridCacheAdapter$15.call(Grid= CacheAdapter.java:1944) > at > org.apache.ignite.internal.processors.cache.GridCacheAdapter$15.call(Grid= CacheAdapter.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.jav= a: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.lo= ad(CacheStoreBalancingWrapper.java:97) > at > org.apache.ignite.internal.processors.cache.store.GridCacheStoreManagerAd= apter.loadFromStore(GridCacheStoreManagerAdapter.java:298) > ... 11 more > > Line 121 in HbaseLoadCacheStore.java is rs=3DhbaseBean.hTable.get(new > Get(Bytes.toBytes(key))); > > In addition, that ket is neither existed in ignite cache nor in hbase. > > Thanks for your help. > > ------------------ =E5=8E=9F=E5=A7=8B=E9=82=AE=E4=BB=B6 -----------------= - > *=E5=8F=91=E4=BB=B6=E4=BA=BA:* "Dmitriy Setrakyan";; > *=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4:* 2016=E5=B9=B45=E6=9C=8813=E6=97= =A5(=E6=98=9F=E6=9C=9F=E4=BA=94) =E4=B8=8A=E5=8D=8810:59 > *=E6=94=B6=E4=BB=B6=E4=BA=BA:* "user"; > *=E4=B8=BB=E9=A2=98:* Re: NullPointerException When Use ReadThrough > > Can you please provide the stack trace? > > On Thu, May 12, 2016 at 2:12 AM, Level D <724172189@qq.com> 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? >> > > --001a11447656797d6d0532b3ec72 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
The stack trace shows that NPE comes from hbasetest.HbaseL= oadCacheStore.load(HbaseLoadCacheStore.java:121), which is not an Ignite cl= ass.

Is this your code? Can you check what is null in th= is class on line 121?

D.

On Thu, May 12, 2016 at 11:43 PM, Level= D <724172189@qq.com> wrote:
Console shows :

=
[14:33:38,735][SEVERE][sys-#19%null%][GridPartitionedSingleGe= tFuture] Failed to get values from dht cache [fut=3DGridCompoundIdentityFut= ure [super=3DGridCompoundFuture [rdc=3DCollection reducer: [], flags=3D1, l= snrCalls=3D1, done=3Dtrue, cancelled=3Dfalse, err=3Dclass o.a.i.IgniteCheck= edException: java.lang.NullPointerException, futs=3D[false, true]]]]=
class org.apache.ignite.IgniteCheckedException: = java.lang.NullPointerException
at org.apache.ignite.internal.processors.= cache.store.GridCacheStoreManagerAdapter.loadFromStore(GridCacheStoreManage= rAdapter.java:309)
at org.apache.ignite.internal.processors.cache.store.= GridCacheStoreManagerAdapter.load(GridCacheStoreManagerAdapter.java:265)
at org.apache.ignite.internal.processors.cache.store.GridCacheStoreManager= Adapter.loadAllFromStore(GridCacheStoreManagerAdapter.java:398)
at org.a= pache.ignite.internal.processors.cache.store.GridCacheStoreManagerAdapter.l= oadAll(GridCacheStoreManagerAdapter.java:364)
at org.apache.ignite.inter= nal.processors.cache.GridCacheAdapter$15.call(GridCacheAdapter.java:1944)
at org.apache.ignite.internal.processors.cache.GridCacheAdapter$15.call(G= ridCacheAdapter.java:1942)
at org.apache.ignite.internal.util.IgniteUtil= s.wrapThreadLoader(IgniteUtils.java:6420)
= at org.apache.ignite.internal.= processors.closure.GridClosureProcessor$2.body(GridClosureProcessor.java:92= 9)
<= /span>at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.j= ava:110)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool= Executor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.ru= n(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)<= /span>
Caused by: javax.cache.integration.CacheLo= aderException: java.lang.NullPointerException
... 12 more<= /div>
Caused by: java.lang.NullPointerException<= /div>
at hbasetes= t.HbaseLoadCacheStore.load(HbaseLoadCacheStore.java:121)
at hbasetest.Hb= aseLoadCacheStore.load(HbaseLoadCacheStore.java:25)
at org.apache.ignite= .internal.processors.cache.CacheStoreBalancingWrapper.load(CacheStoreBalanc= ingWrapper.java:97)
at org.apache.ignite.internal.processors.cache.store= .GridCacheStoreManagerAdapter.loadFromStore(GridCacheStoreManagerAdapter.ja= va:298)
... 11 more

<= /div>
Line 121 in HbaseLoadCacheStore.java is=C2=A0rs= =3DhbaseBean.= hTable.get(new Get(Bytes.toByte= s(key)));
In addition, that ke= t is neither existed in ignite cache nor in hbase.

Thanks for your help.

------------------= =C2=A0=E5=8E=9F=E5=A7=8B=E9=82=AE=E4=BB=B6=C2=A0------------------
=E5=8F=91=E4=BB=B6=E4=BA=BA:=C2=A0"Dmitriy Setrakyan";&= lt;dsetrakyan@ap= ache.org>;
=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4:=C2= =A02016=E5=B9=B45=E6=9C=8813=E6=97=A5(=E6=98=9F=E6=9C=9F=E4=BA=94) =E4=B8= =8A=E5=8D=8810:59
=E6=94=B6=E4=BB=B6=E4=BA=BA:=C2=A0"= user"<u= ser@ignite.apache.org>;
=E4=B8=BB=E9=A2=98:= =C2=A0Re: NullPointerException When Use ReadThrough

Can you please provide the stack trace?

On Thu, May 1= 2, 2016 at 2:12 AM, Level D <724172189@qq.com> wrote:
<= /table>
--001a11447656797d6d0532b3ec72--
Hi,
When I use readthrough to get a key neither existed in ignite c= ache nor in hbase, console=C2=A0shows nullpointerexception.

Is it nessary for hbase to have the=C2=A0record?=C2=A0In ad= dition to this way,how can I avoid that exception?