Ignite NPE when try to loadCache from persistent mysql database

classic Classic list List threaded Threaded
2 messages Options
marble.zhong@coinflex.com marble.zhong@coinflex.com
Reply | Threaded
Open this post in threaded view
|

Ignite NPE when try to loadCache from persistent mysql database

Hi Experts,

When try to loadCache from 3rd party mysql database,
(this.balanceCache.loadCache(null);) met ignite NullPointerException, thanks
a lot for some clues,

10:21:15,376 [mgmt-#66] ERROR
org.apache.ignite.internal.processors.task.GridTaskWorker  - Failed to
obtain remote job result policy for result from ComputeTask.result(..)
method (will fail the whole task): GridJobResultImpl [job=C2
[c=LoadCacheJobV2 [keepBinary=false]], sib=GridJobSiblingImpl
[sesId=c7a1b632471-7916f296-11f5-4bea-ad6e-429a133422ec,
jobId=d7a1b632471-7916f296-11f5-4bea-ad6e-429a133422ec,
nodeId=47cedd02-1693-4331-8de3-235735e9d2a6, isJobDone=false],
jobCtx=GridJobContextImpl
[jobId=d7a1b632471-7916f296-11f5-4bea-ad6e-429a133422ec, timeoutObj=null,
attrs=HashMap {}], node=TcpDiscoveryNode
[id=47cedd02-1693-4331-8de3-235735e9d2a6,
consistentId=0:0:0:0:0:0:0:1%lo0,127.0.0.1,172.19.2.53,192.168.42.10:47500,
addrs=ArrayList [0:0:0:0:0:0:0:1%lo0, 127.0.0.1, 172.19.2.53,
192.168.42.10], sockAddrs=HashSet [/172.19.2.53:47500,
/0:0:0:0:0:0:0:1%lo0:47500, /127.0.0.1:47500, /192.168.42.10:47500],
discPort=47500, order=1, intOrder=1, lastExchangeTime=1598322068214,
loc=false, ver=2.8.1#20200521-sha1:86422096, isClient=false], ex=class
o.a.i.IgniteException: java.lang.NullPointerException, hasRes=true,
isCancelled=false, isOccupied=true]
class org.apache.ignite.IgniteException: Remote job threw user exception
(override or implement ComputeTask.result(..) method if you would like to
have automatic failover for this exception): java.lang.NullPointerException
        at
org.apache.ignite.compute.ComputeTaskAdapter.result(ComputeTaskAdapter.java:102)
        at
org.apache.ignite.internal.processors.task.GridTaskWorker$5.apply(GridTaskWorker.java:1062)
        at
org.apache.ignite.internal.processors.task.GridTaskWorker$5.apply(GridTaskWorker.java:1055)
        at
org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:7037)
        at
org.apache.ignite.internal.processors.task.GridTaskWorker.result(GridTaskWorker.java:1055)
        at
org.apache.ignite.internal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:862)
        at
ignite.internal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:1146)
        at
ignite.internal.processors.task.GridTaskProcessor$JobMessageListener.onMessage(GridTaskProcessor.java:1370)
        at
ignite.internal.managers.communication.GridIoManager.invokeListener(GridIoManager.java:1847)
        at
ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:1472)
        at
ignite.internal.managers.communication.GridIoManager.access$5200(GridIoManager.java:229)
        at
org.apache.ignite.internal.managers.communication.GridIoManager$9.run(GridIoManager.java:1367)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)


Regards,



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Alexandr Shapkin Alexandr Shapkin
Reply | Threaded
Open this post in threaded view
|

Re: Ignite NPE when try to loadCache from persistent mysql database

Hi,

Is it possible to share a simple reproducer or to get the full logs from the
failed node?




-----
Alex Shapkin
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Alex Shapkin