ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dstieglitz <dstiegl...@stainlesscode.com>
Subject Re: Behavior of init() for clustered singleton
Date Thu, 07 Apr 2016 17:49:13 GMT
We did find an exception in the remote job which seems to be related (stack
trace below).

There are try {} catch blocks to try and catch this exception but it always
appears in the logs. Is it possible to catch this?

I also noticed it is translated to a "null" IgniteException somewhere, I'm
not sure if this is the correct behavior.

016-04-07 17:51:38,505 [sys-#30%hapnin-grid%] ERROR task.GridTaskWorker  -
Failed to obtain remote job result policy for result from
ComputeTask.result(..) method (will fail the whole task): GridJobResultImpl
[job=C2 [], sib=GridJobSiblingImpl
[sesId=45f99d1f351-193a6965-27a9-43f0-bb84-af7d67c5e55b,
jobId=55f99d1f351-4d30f145-aaa5-42b6-9194-27b6d20ac4bf,
nodeId=4d30f145-aaa5-42b6-9194-27b6d20ac4bf, isJobDone=false],
jobCtx=GridJobContextImpl
[jobId=55f99d1f351-4d30f145-aaa5-42b6-9194-27b6d20ac4bf, timeoutObj=null,
attrs={}], node=TcpDiscoveryNode [id=4d30f145-aaa5-42b6-9194-27b6d20ac4bf,
addrs=[0:0:0:0:0:0:0:1%lo, 127.0.0.1, 172.30.1.34],
sockAddrs=[dev2.localdomain/172.30.1.34:47500, /0:0:0:0:0:0:0:1%lo:47500,
/127.0.0.1:47500, /172.30.1.34:47500], discPort=47500, order=1, intOrder=1,
lastExchangeTime=1460051494963, loc=false, ver=1.5.0#20151229-sha1:f1f8cda2,
isClient=false], ex=class o.a.i.IgniteException: null, 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).
	at
org.apache.ignite.compute.ComputeTaskAdapter.result(ComputeTaskAdapter.java:101)
	at
org.apache.ignite.internal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:909)
	at
org.apache.ignite.internal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:902)
	at
org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6429)
	at
org.apache.ignite.internal.processors.task.GridTaskWorker.result(GridTaskWorker.java:902)
	at
org.apache.ignite.internal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:798)
	at
org.apache.ignite.internal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:995)
	at
org.apache.ignite.internal.processors.task.GridTaskProcessor$JobMessageListener.onMessage(GridTaskProcessor.java:1219)
	at
org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:821)
	at
org.apache.ignite.internal.managers.communication.GridIoManager.access$1600(GridIoManager.java:103)
	at
org.apache.ignite.internal.managers.communication.GridIoManager$5.run(GridIoManager.java:784)
	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: class org.apache.ignite.IgniteException: null
	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
org.apache.ignite.internal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1166)
	at
org.apache.ignite.internal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1770)
	... 6 more
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at
org.apache.ignite.internal.processors.service.GridServiceProxy$ServiceProxyCallable.call(GridServiceProxy.java:382)
	at
org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.execute(GridClosureProcessor.java:1789)
	... 13 more
Caused by: org.grails.ignite.DistributedRunnableException: invalid pattern:
"0 0 2 * * ?"
	at
org.grails.ignite.DistributedSchedulerServiceImpl.scheduleWithCron(DistributedSchedulerServiceImpl.java:162)
	... 19 more
Caused by: org.grails.ignite.DistributedRunnableException: invalid pattern:
"0 0 2 * * ?"
	at
org.grails.ignite.DistributedScheduledThreadPoolExecutor.scheduleWithCron(DistributedScheduledThreadPoolExecutor.java:67)
	at
org.grails.ignite.DistributedSchedulerServiceImpl.scheduleWithCron(DistributedSchedulerServiceImpl.java:149)
	... 19 more
Caused by: it.sauronsoftware.cron4j.InvalidPatternException: invalid
pattern: "0 0 2 * * ?"
	at it.sauronsoftware.cron4j.SchedulingPattern.<init>(Unknown Source)
	at it.sauronsoftware.cron4j.Scheduler.schedule(Unknown Source)
	at it.sauronsoftware.cron4j.Scheduler.schedule(Unknown Source)
	at
org.grails.ignite.DistributedScheduledThreadPoolExecutor.scheduleWithCron(DistributedScheduledThreadPoolExecutor.java:61)
	... 20 more



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Behavior-of-init-for-clustered-singleton-tp3819p4001.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message