gridgain / gridgain-old

267 stars 85 forks source link

GridCompute.[affinity]call() with Java8 lambda Callable throws ClassNotFoundException: MyClass$2$$Lambda$2/1166785921 #77

Open ceefour opened 10 years ago

ceefour commented 10 years ago

This code doesn't work:

grid.compute().affinityCall(cache.name(), ruleId, () -> { 
    final YagoRule rule = cache.get(ruleId);
    Pattern pattern = Pattern.compile(rule.questionPattern_en, Pattern.CASE_INSENSITIVE);
    Matcher matcher = pattern.matcher(msg);
    if (matcher.matches()) {
        log.info("MATCH {} Processing rule #{} {}", matcher, ruleId, rule.property);
        return new MatchedYagoRule(rule, matcher.group("subject"));
    } else {
        log.info("not match Processing rule #{} {}", ruleId, rule.property);
        return null;
    }
});

while changing it to new Callable<..>() { ... } will make it work.

Error is:

[05:41:11,286][SEVERE][gridgain-#20%sys-null%][GridTaskWorker] Failed to obtain remote job result policy for result from GridComputeTask.result(..) method (will fail the whole task): GridJobResultImpl [job=o.g.g.kernal.processors.closure.GridClosureProcessor$8@6666d025, sib=GridJobSiblingImpl [sesId=6fc71060741-125a6ade-fb83-4760-b79d-e6c7a870e353, jobId=7fc71060741-fe9453fd-2ab3-46dd-bc12-50f50521ddac, nodeId=fe9453fd-2ab3-46dd-bc12-50f50521ddac, isJobDone=false], jobCtx=GridJobContextImpl [jobId=7fc71060741-fe9453fd-2ab3-46dd-bc12-50f50521ddac, attrs={}], node=GridTcpDiscoveryNode [id=fe9453fd-2ab3-46dd-bc12-50f50521ddac, addrs=[127.0.0.1], sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, loc=false, ver=GridProductVersion [major=6, minor=1, maintenance=9, revTs=1403872573]], ex=class o.g.g.GridException: Failed to find class with given class loader for unmarshalling (make sure same version of all classes are available on all nodes or enable peer-class-loading): sun.misc.Launcher$AppClassLoader@73d16e93
For more information see:
    Troubleshooting:      http://bit.ly/GridGain-Troubleshooting
    Documentation Center: http://bit.ly/GridGain-Documentation
, hasRes=true, isCancelled=false, isOccupied=true]
class org.gridgain.grid.GridException: Remote job threw user exception (override or implement GridComputeTask.result(..) method if you would like to have automatic failover for this exception).
    at org.gridgain.grid.compute.GridComputeTaskAdapter.result(GridComputeTaskAdapter.java:109)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:819)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:812)
    at org.gridgain.grid.util.GridUtils.wrapThreadLoader(GridUtils.java:5955)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.result(GridTaskWorker.java:812)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:708)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:834)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor$JobMessageListener.onMessage(GridTaskProcessor.java:1066)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:654)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager.access$1800(GridIoManager.java:62)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager$6.body(GridIoManager.java:615)
    at org.gridgain.grid.util.worker.GridWorker.run(GridWorker.java:151)
    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.gridgain.grid.GridException: Failed to find class with given class loader for unmarshalling (make sure same version of all classes are available on all nodes or enable peer-class-loading): sun.misc.Launcher$AppClassLoader@73d16e93
For more information see:
    Troubleshooting:      http://bit.ly/GridGain-Troubleshooting
    Documentation Center: http://bit.ly/GridGain-Documentation

    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller.unmarshal(GridOptimizedMarshaller.java:369)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.initialize(GridJobWorker.java:388)
    at org.gridgain.grid.kernal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1048)
    at org.gridgain.grid.kernal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1685)
    ... 7 more
Caused by: java.lang.ClassNotFoundException: id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2$$Lambda$2/1166785921
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:340)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshallerUtils.forName(GridOptimizedMarshallerUtils.java:105)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassResolver.forName(GridOptimizedClassResolver.java:447)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassResolver.readClass(GridOptimizedClassResolver.java:355)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readObjectOverride(GridOptimizedObjectInputStream.java:140)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readFields(GridOptimizedObjectInputStream.java:274)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:359)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassDescriptor.read(GridOptimizedClassDescriptor.java:959)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readObjectOverride(GridOptimizedObjectInputStream.java:144)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller.unmarshal(GridOptimizedMarshaller.java:363)
    ... 10 more
[05:41:11,290][SEVERE][gridgain-#10%pub-null%][GridJobWorker] Failed to execute job due to unexpected runtime exception [jobId=2fc71060741-125a6ade-fb83-4760-b79d-e6c7a870e353, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2, dep=GridDeployment [ts=1404555068916, depMode=CONTINUOUS, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93, clsLdrId=fbc71060741-125a6ade-fb83-4760-b79d-e6c7a870e353, userVer=0, loc=true, sampleClsName=o.g.g.kernal.processors.cache.distributed.dht.preloader.GridDhtPartitionFullMap, pendingUndeploy=false, undeployed=false, usage=2], taskClsName=id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2, sesId=1fc71060741-125a6ade-fb83-4760-b79d-e6c7a870e353, startTime=1404555071187, endTime=9223372036854775807, taskNodeId=125a6ade-fb83-4760-b79d-e6c7a870e353, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93, closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false], jobId=2fc71060741-125a6ade-fb83-4760-b79d-e6c7a870e353]]
java.lang.RuntimeException: class org.gridgain.grid.GridException: Remote job threw user exception (override or implement GridComputeTask.result(..) method if you would like to have automatic failover for this exception).
    at com.google.common.base.Throwables.propagate(Throwables.java:160)
    at id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2.apply(AnswerYagoFactTests.java:133)
    at id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2.apply(AnswerYagoFactTests.java:1)
    at org.gridgain.grid.kernal.processors.closure.GridClosureProcessor$4.execute(GridClosureProcessor.java:971)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker$2.call(GridJobWorker.java:485)
    at org.gridgain.grid.util.GridUtils.wrapThreadLoader(GridUtils.java:5923)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.execute0(GridJobWorker.java:479)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.body(GridJobWorker.java:432)
    at org.gridgain.grid.util.worker.GridWorker.run(GridWorker.java:151)
    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.gridgain.grid.GridException: Remote job threw user exception (override or implement GridComputeTask.result(..) method if you would like to have automatic failover for this exception).
    at org.gridgain.grid.compute.GridComputeTaskAdapter.result(GridComputeTaskAdapter.java:109)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:819)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:812)
    at org.gridgain.grid.util.GridUtils.wrapThreadLoader(GridUtils.java:5955)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.result(GridTaskWorker.java:812)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:708)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:834)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor$JobMessageListener.onMessage(GridTaskProcessor.java:1066)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:654)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager.access$1800(GridIoManager.java:62)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager$6.body(GridIoManager.java:615)
    ... 4 more
Caused by: class org.gridgain.grid.GridException: Failed to find class with given class loader for unmarshalling (make sure same version of all classes are available on all nodes or enable peer-class-loading): sun.misc.Launcher$AppClassLoader@73d16e93
For more information see:
    Troubleshooting:      http://bit.ly/GridGain-Troubleshooting
    Documentation Center: http://bit.ly/GridGain-Documentation

    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller.unmarshal(GridOptimizedMarshaller.java:369)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.initialize(GridJobWorker.java:388)
    at org.gridgain.grid.kernal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1048)
    at org.gridgain.grid.kernal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1685)
    ... 7 more
Caused by: java.lang.ClassNotFoundException: id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2$$Lambda$2/1166785921
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:340)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshallerUtils.forName(GridOptimizedMarshallerUtils.java:105)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassResolver.forName(GridOptimizedClassResolver.java:447)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassResolver.readClass(GridOptimizedClassResolver.java:355)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readObjectOverride(GridOptimizedObjectInputStream.java:140)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readFields(GridOptimizedObjectInputStream.java:274)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:359)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassDescriptor.read(GridOptimizedClassDescriptor.java:959)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readObjectOverride(GridOptimizedObjectInputStream.java:144)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller.unmarshal(GridOptimizedMarshaller.java:363)
    ... 10 more
[05:41:11,294][SEVERE][gridgain-#10%pub-null%][GridTaskWorker] Failed to obtain remote job result policy for result from GridComputeTask.result(..) method (will fail the whole task): GridJobResultImpl [job=o.g.g.kernal.processors.closure.GridClosureProcessor$4@77cf3f8b, sib=GridJobSiblingImpl [sesId=1fc71060741-125a6ade-fb83-4760-b79d-e6c7a870e353, jobId=2fc71060741-125a6ade-fb83-4760-b79d-e6c7a870e353, nodeId=125a6ade-fb83-4760-b79d-e6c7a870e353, isJobDone=false], jobCtx=GridJobContextImpl [jobId=2fc71060741-125a6ade-fb83-4760-b79d-e6c7a870e353, attrs={}], node=GridTcpDiscoveryNode [id=125a6ade-fb83-4760-b79d-e6c7a870e353, addrs=[127.0.0.1], sockAddrs=[/127.0.0.1:47501], discPort=47501, order=2, loc=true, ver=GridProductVersion [major=6, minor=1, maintenance=9, revTs=1403872573]], ex=class o.g.g.compute.GridComputeUserUndeclaredException: Failed to execute job due to unexpected runtime exception [jobId=2fc71060741-125a6ade-fb83-4760-b79d-e6c7a870e353, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2, dep=GridDeployment [ts=1404555068916, depMode=CONTINUOUS, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93, clsLdrId=fbc71060741-125a6ade-fb83-4760-b79d-e6c7a870e353, userVer=0, loc=true, sampleClsName=o.g.g.kernal.processors.cache.distributed.dht.preloader.GridDhtPartitionFullMap, pendingUndeploy=false, undeployed=false, usage=2], taskClsName=id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2, sesId=1fc71060741-125a6ade-fb83-4760-b79d-e6c7a870e353, startTime=1404555071187, endTime=9223372036854775807, taskNodeId=125a6ade-fb83-4760-b79d-e6c7a870e353, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93, closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false], jobId=2fc71060741-125a6ade-fb83-4760-b79d-e6c7a870e353]], hasRes=true, isCancelled=false, isOccupied=true]
class org.gridgain.grid.GridException: Remote job threw user exception (override or implement GridComputeTask.result(..) method if you would like to have automatic failover for this exception).
    at org.gridgain.grid.compute.GridComputeTaskAdapter.result(GridComputeTaskAdapter.java:109)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:819)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:812)
    at org.gridgain.grid.util.GridUtils.wrapThreadLoader(GridUtils.java:5955)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.result(GridTaskWorker.java:812)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:708)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:834)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.finishJob(GridJobWorker.java:743)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.execute0(GridJobWorker.java:534)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.body(GridJobWorker.java:432)
    at org.gridgain.grid.util.worker.GridWorker.run(GridWorker.java:151)
    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.gridgain.grid.compute.GridComputeUserUndeclaredException: Failed to execute job due to unexpected runtime exception [jobId=2fc71060741-125a6ade-fb83-4760-b79d-e6c7a870e353, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2, dep=GridDeployment [ts=1404555068916, depMode=CONTINUOUS, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93, clsLdrId=fbc71060741-125a6ade-fb83-4760-b79d-e6c7a870e353, userVer=0, loc=true, sampleClsName=org.gridgain.grid.kernal.processors.cache.distributed.dht.preloader.GridDhtPartitionFullMap, pendingUndeploy=false, undeployed=false, usage=2], taskClsName=id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2, sesId=1fc71060741-125a6ade-fb83-4760-b79d-e6c7a870e353, startTime=1404555071187, endTime=9223372036854775807, taskNodeId=125a6ade-fb83-4760-b79d-e6c7a870e353, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93, closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false], jobId=2fc71060741-125a6ade-fb83-4760-b79d-e6c7a870e353]]
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.handleThrowable(GridJobWorker.java:578)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.execute0(GridJobWorker.java:527)
    ... 5 more
Caused by: java.lang.RuntimeException: class org.gridgain.grid.GridException: Remote job threw user exception (override or implement GridComputeTask.result(..) method if you would like to have automatic failover for this exception).
    at com.google.common.base.Throwables.propagate(Throwables.java:160)
    at id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2.apply(AnswerYagoFactTests.java:133)
    at id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2.apply(AnswerYagoFactTests.java:1)
    at org.gridgain.grid.kernal.processors.closure.GridClosureProcessor$4.execute(GridClosureProcessor.java:971)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker$2.call(GridJobWorker.java:485)
    at org.gridgain.grid.util.GridUtils.wrapThreadLoader(GridUtils.java:5923)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.execute0(GridJobWorker.java:479)
    ... 5 more
Caused by: class org.gridgain.grid.GridException: Remote job threw user exception (override or implement GridComputeTask.result(..) method if you would like to have automatic failover for this exception).
    at org.gridgain.grid.compute.GridComputeTaskAdapter.result(GridComputeTaskAdapter.java:109)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:819)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:812)
    at org.gridgain.grid.util.GridUtils.wrapThreadLoader(GridUtils.java:5955)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.result(GridTaskWorker.java:812)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:708)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:834)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor$JobMessageListener.onMessage(GridTaskProcessor.java:1066)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:654)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager.access$1800(GridIoManager.java:62)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager$6.body(GridIoManager.java:615)
    ... 4 more
Caused by: class org.gridgain.grid.GridException: Failed to find class with given class loader for unmarshalling (make sure same version of all classes are available on all nodes or enable peer-class-loading): sun.misc.Launcher$AppClassLoader@73d16e93
For more information see:
    Troubleshooting:      http://bit.ly/GridGain-Troubleshooting
    Documentation Center: http://bit.ly/GridGain-Documentation

    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller.unmarshal(GridOptimizedMarshaller.java:369)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.initialize(GridJobWorker.java:388)
    at org.gridgain.grid.kernal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1048)
    at org.gridgain.grid.kernal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1685)
    ... 7 more
Caused by: java.lang.ClassNotFoundException: id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2$$Lambda$2/1166785921
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:340)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshallerUtils.forName(GridOptimizedMarshallerUtils.java:105)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassResolver.forName(GridOptimizedClassResolver.java:447)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassResolver.readClass(GridOptimizedClassResolver.java:355)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readObjectOverride(GridOptimizedObjectInputStream.java:140)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readFields(GridOptimizedObjectInputStream.java:274)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:359)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassDescriptor.read(GridOptimizedClassDescriptor.java:959)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readObjectOverride(GridOptimizedObjectInputStream.java:144)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller.unmarshal(GridOptimizedMarshaller.java:363)
    ... 10 more
[05:41:11] GridGain node stopped OK [uptime=00:00:00:304]

Casting the lambda to GridCallable<...> :

    grid.compute().affinityCall(cache.name(), ruleId, (GridCallable<MatchedYagoRule>) () -> { 
        final YagoRule rule = cache.get(ruleId);
        Pattern pattern = Pattern.compile(rule.questionPattern_en, Pattern.CASE_INSENSITIVE);
        Matcher matcher = pattern.matcher(msg);
        if (matcher.matches()) {
            log.info("MATCH {} Processing rule #{} {}", matcher, ruleId, rule.property);
            return new MatchedYagoRule(rule, matcher.group("subject"));
        } else {
            log.info("not match Processing rule #{} {}", ruleId, rule.property);
            return null;
        }
    })

will throw a java.lang.IllegalArgumentException: Invalid lambda deserialization instead :

[05:45:07,590][SEVERE][gridgain-#19%sys-null%][GridTaskWorker] Failed to obtain remote job result policy for result from GridComputeTask.result(..) method (will fail the whole task): GridJobResultImpl [job=o.g.g.kernal.processors.closure.GridClosureProcessor$8@52aeb813, sib=GridJobSiblingImpl [sesId=0b515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, jobId=1b515060741-869ac7f4-9bd5-4429-82ed-1cfa6d8acfc9, nodeId=869ac7f4-9bd5-4429-82ed-1cfa6d8acfc9, isJobDone=false], jobCtx=GridJobContextImpl [jobId=1b515060741-869ac7f4-9bd5-4429-82ed-1cfa6d8acfc9, attrs={}], node=GridTcpDiscoveryNode [id=869ac7f4-9bd5-4429-82ed-1cfa6d8acfc9, addrs=[127.0.0.1], sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, loc=false, ver=GridProductVersion [major=6, minor=1, maintenance=9, revTs=1403872573]], ex=class o.g.g.GridException: Failed to deserialize object with given class loader: sun.misc.Launcher$AppClassLoader@73d16e93
For more information see:
    Troubleshooting:      http://bit.ly/GridGain-Troubleshooting
    Documentation Center: http://bit.ly/GridGain-Documentation
, hasRes=true, isCancelled=false, isOccupied=true]
class org.gridgain.grid.GridException: Remote job threw user exception (override or implement GridComputeTask.result(..) method if you would like to have automatic failover for this exception).
    at org.gridgain.grid.compute.GridComputeTaskAdapter.result(GridComputeTaskAdapter.java:109)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:819)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:812)
    at org.gridgain.grid.util.GridUtils.wrapThreadLoader(GridUtils.java:5955)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.result(GridTaskWorker.java:812)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:708)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:834)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor$JobMessageListener.onMessage(GridTaskProcessor.java:1066)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:654)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager.access$1800(GridIoManager.java:62)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager$6.body(GridIoManager.java:615)
    at org.gridgain.grid.util.worker.GridWorker.run(GridWorker.java:151)
    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.gridgain.grid.GridException: Failed to deserialize object with given class loader: sun.misc.Launcher$AppClassLoader@73d16e93
For more information see:
    Troubleshooting:      http://bit.ly/GridGain-Troubleshooting
    Documentation Center: http://bit.ly/GridGain-Documentation

    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller.unmarshal(GridOptimizedMarshaller.java:366)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.initialize(GridJobWorker.java:388)
    at org.gridgain.grid.kernal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1048)
    at org.gridgain.grid.kernal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1685)
    ... 7 more
Caused by: java.io.IOException: java.lang.reflect.InvocationTargetException
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:369)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassDescriptor.read(GridOptimizedClassDescriptor.java:959)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readObjectOverride(GridOptimizedObjectInputStream.java:144)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readFields(GridOptimizedObjectInputStream.java:274)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:359)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassDescriptor.read(GridOptimizedClassDescriptor.java:959)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readObjectOverride(GridOptimizedObjectInputStream.java:144)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller.unmarshal(GridOptimizedMarshaller.java:363)
    ... 10 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:483)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:364)
    ... 19 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:483)
    at java.lang.invoke.SerializedLambda.readResolve(SerializedLambda.java:230)
    ... 24 more
Caused by: java.lang.IllegalArgumentException: Invalid lambda deserialization
    at id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2.$deserializeLambda$(AnswerYagoFactTests.java:1)
    ... 29 more
[05:45:07,596][SEVERE][gridgain-#10%pub-null%][GridJobWorker] Failed to execute job due to unexpected runtime exception [jobId=ca515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2, dep=GridDeployment [ts=1404555304853, depMode=CONTINUOUS, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93, clsLdrId=a7515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, userVer=0, loc=true, sampleClsName=o.g.g.kernal.processors.cache.distributed.dht.preloader.GridDhtPartitionFullMap, pendingUndeploy=false, undeployed=false, usage=2], taskClsName=id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2, sesId=ba515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, startTime=1404555307484, endTime=9223372036854775807, taskNodeId=b4dbd852-d1f7-4d2f-93df-36b5b05650ca, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93, closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false], jobId=ca515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca]]
java.lang.RuntimeException: class org.gridgain.grid.GridException: Remote job threw user exception (override or implement GridComputeTask.result(..) method if you would like to have automatic failover for this exception).
    at com.google.common.base.Throwables.propagate(Throwables.java:160)
    at id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2.apply(AnswerYagoFactTests.java:134)
    at id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2.apply(AnswerYagoFactTests.java:1)
    at org.gridgain.grid.kernal.processors.closure.GridClosureProcessor$4.execute(GridClosureProcessor.java:971)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker$2.call(GridJobWorker.java:485)
    at org.gridgain.grid.util.GridUtils.wrapThreadLoader(GridUtils.java:5923)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.execute0(GridJobWorker.java:479)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.body(GridJobWorker.java:432)
    at org.gridgain.grid.util.worker.GridWorker.run(GridWorker.java:151)
    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.gridgain.grid.GridException: Remote job threw user exception (override or implement GridComputeTask.result(..) method if you would like to have automatic failover for this exception).
    at org.gridgain.grid.compute.GridComputeTaskAdapter.result(GridComputeTaskAdapter.java:109)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:819)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:812)
    at org.gridgain.grid.util.GridUtils.wrapThreadLoader(GridUtils.java:5955)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.result(GridTaskWorker.java:812)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:708)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:834)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor$JobMessageListener.onMessage(GridTaskProcessor.java:1066)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:654)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager.access$1800(GridIoManager.java:62)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager$6.body(GridIoManager.java:615)
    ... 4 more
Caused by: class org.gridgain.grid.GridException: Failed to deserialize object with given class loader: sun.misc.Launcher$AppClassLoader@73d16e93
For more information see:
    Troubleshooting:      http://bit.ly/GridGain-Troubleshooting
    Documentation Center: http://bit.ly/GridGain-Documentation

    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller.unmarshal(GridOptimizedMarshaller.java:366)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.initialize(GridJobWorker.java:388)
    at org.gridgain.grid.kernal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1048)
    at org.gridgain.grid.kernal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1685)
    ... 7 more
Caused by: java.io.IOException: java.lang.reflect.InvocationTargetException
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:369)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassDescriptor.read(GridOptimizedClassDescriptor.java:959)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readObjectOverride(GridOptimizedObjectInputStream.java:144)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readFields(GridOptimizedObjectInputStream.java:274)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:359)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassDescriptor.read(GridOptimizedClassDescriptor.java:959)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readObjectOverride(GridOptimizedObjectInputStream.java:144)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller.unmarshal(GridOptimizedMarshaller.java:363)
    ... 10 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:483)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:364)
    ... 19 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:483)
    at java.lang.invoke.SerializedLambda.readResolve(SerializedLambda.java:230)
    ... 24 more
Caused by: java.lang.IllegalArgumentException: Invalid lambda deserialization
    at id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2.$deserializeLambda$(AnswerYagoFactTests.java:1)
    ... 29 more
[05:45:07,600][SEVERE][gridgain-#10%pub-null%][GridTaskWorker] Failed to obtain remote job result policy for result from GridComputeTask.result(..) method (will fail the whole task): GridJobResultImpl [job=o.g.g.kernal.processors.closure.GridClosureProcessor$4@77cf3f8b, sib=GridJobSiblingImpl [sesId=ba515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, jobId=ca515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, nodeId=b4dbd852-d1f7-4d2f-93df-36b5b05650ca, isJobDone=false], jobCtx=GridJobContextImpl [jobId=ca515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, attrs={}], node=GridTcpDiscoveryNode [id=b4dbd852-d1f7-4d2f-93df-36b5b05650ca, addrs=[127.0.0.1], sockAddrs=[/127.0.0.1:47501], discPort=47501, order=2, loc=true, ver=GridProductVersion [major=6, minor=1, maintenance=9, revTs=1403872573]], ex=class o.g.g.compute.GridComputeUserUndeclaredException: Failed to execute job due to unexpected runtime exception [jobId=ca515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2, dep=GridDeployment [ts=1404555304853, depMode=CONTINUOUS, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93, clsLdrId=a7515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, userVer=0, loc=true, sampleClsName=o.g.g.kernal.processors.cache.distributed.dht.preloader.GridDhtPartitionFullMap, pendingUndeploy=false, undeployed=false, usage=2], taskClsName=id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2, sesId=ba515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, startTime=1404555307484, endTime=9223372036854775807, taskNodeId=b4dbd852-d1f7-4d2f-93df-36b5b05650ca, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93, closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false], jobId=ca515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca]], hasRes=true, isCancelled=false, isOccupied=true]
class org.gridgain.grid.GridException: Remote job threw user exception (override or implement GridComputeTask.result(..) method if you would like to have automatic failover for this exception).
    at org.gridgain.grid.compute.GridComputeTaskAdapter.result(GridComputeTaskAdapter.java:109)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:819)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:812)
    at org.gridgain.grid.util.GridUtils.wrapThreadLoader(GridUtils.java:5955)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.result(GridTaskWorker.java:812)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:708)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:834)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.finishJob(GridJobWorker.java:743)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.execute0(GridJobWorker.java:534)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.body(GridJobWorker.java:432)
    at org.gridgain.grid.util.worker.GridWorker.run(GridWorker.java:151)
    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.gridgain.grid.compute.GridComputeUserUndeclaredException: Failed to execute job due to unexpected runtime exception [jobId=ca515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2, dep=GridDeployment [ts=1404555304853, depMode=CONTINUOUS, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93, clsLdrId=a7515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, userVer=0, loc=true, sampleClsName=org.gridgain.grid.kernal.processors.cache.distributed.dht.preloader.GridDhtPartitionFullMap, pendingUndeploy=false, undeployed=false, usage=2], taskClsName=id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2, sesId=ba515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, startTime=1404555307484, endTime=9223372036854775807, taskNodeId=b4dbd852-d1f7-4d2f-93df-36b5b05650ca, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93, closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false], jobId=ca515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca]]
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.handleThrowable(GridJobWorker.java:578)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.execute0(GridJobWorker.java:527)
    ... 5 more
Caused by: java.lang.RuntimeException: class org.gridgain.grid.GridException: Remote job threw user exception (override or implement GridComputeTask.result(..) method if you would like to have automatic failover for this exception).
    at com.google.common.base.Throwables.propagate(Throwables.java:160)
    at id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2.apply(AnswerYagoFactTests.java:134)
    at id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2.apply(AnswerYagoFactTests.java:1)
    at org.gridgain.grid.kernal.processors.closure.GridClosureProcessor$4.execute(GridClosureProcessor.java:971)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker$2.call(GridJobWorker.java:485)
    at org.gridgain.grid.util.GridUtils.wrapThreadLoader(GridUtils.java:5923)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.execute0(GridJobWorker.java:479)
    ... 5 more
Caused by: class org.gridgain.grid.GridException: Remote job threw user exception (override or implement GridComputeTask.result(..) method if you would like to have automatic failover for this exception).
    at org.gridgain.grid.compute.GridComputeTaskAdapter.result(GridComputeTaskAdapter.java:109)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:819)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:812)
    at org.gridgain.grid.util.GridUtils.wrapThreadLoader(GridUtils.java:5955)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.result(GridTaskWorker.java:812)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:708)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:834)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor$JobMessageListener.onMessage(GridTaskProcessor.java:1066)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:654)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager.access$1800(GridIoManager.java:62)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager$6.body(GridIoManager.java:615)
    ... 4 more
Caused by: class org.gridgain.grid.GridException: Failed to deserialize object with given class loader: sun.misc.Launcher$AppClassLoader@73d16e93
For more information see:
    Troubleshooting:      http://bit.ly/GridGain-Troubleshooting
    Documentation Center: http://bit.ly/GridGain-Documentation

    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller.unmarshal(GridOptimizedMarshaller.java:366)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.initialize(GridJobWorker.java:388)
    at org.gridgain.grid.kernal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1048)
    at org.gridgain.grid.kernal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1685)
    ... 7 more
Caused by: java.io.IOException: java.lang.reflect.InvocationTargetException
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:369)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassDescriptor.read(GridOptimizedClassDescriptor.java:959)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readObjectOverride(GridOptimizedObjectInputStream.java:144)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readFields(GridOptimizedObjectInputStream.java:274)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:359)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassDescriptor.read(GridOptimizedClassDescriptor.java:959)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readObjectOverride(GridOptimizedObjectInputStream.java:144)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller.unmarshal(GridOptimizedMarshaller.java:363)
    ... 10 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:483)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:364)
    ... 19 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:483)
    at java.lang.invoke.SerializedLambda.readResolve(SerializedLambda.java:230)
    ... 24 more
Caused by: java.lang.IllegalArgumentException: Invalid lambda deserialization
    at id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2.$deserializeLambda$(AnswerYagoFactTests.java:1)
    ... 29 more
[05:45:07] GridGain node stopped OK [uptime=00:00:00:955]
ceefour commented 10 years ago

Related to, but different than, #74.

dsetrakyan commented 10 years ago

The issue is the same as #74. Please case your lambda to something that implements Serializable, like GridRunnable, GridCallable, etc...

ceefour commented 10 years ago

Casting the lambda to GridCallable<...> :

    grid.compute().affinityCall(cache.name(), ruleId, (GridCallable<MatchedYagoRule>) () -> { 
        final YagoRule rule = cache.get(ruleId);
        Pattern pattern = Pattern.compile(rule.questionPattern_en, Pattern.CASE_INSENSITIVE);
        Matcher matcher = pattern.matcher(msg);
        if (matcher.matches()) {
            log.info("MATCH {} Processing rule #{} {}", matcher, ruleId, rule.property);
            return new MatchedYagoRule(rule, matcher.group("subject"));
        } else {
            log.info("not match Processing rule #{} {}", ruleId, rule.property);
            return null;
        }
    })

will throw a java.lang.IllegalArgumentException: Invalid lambda deserialization instead :

[05:45:07,590][SEVERE][gridgain-#19%sys-null%][GridTaskWorker] Failed to obtain remote job result policy for result from GridComputeTask.result(..) method (will fail the whole task): GridJobResultImpl [job=o.g.g.kernal.processors.closure.GridClosureProcessor$8@52aeb813, sib=GridJobSiblingImpl [sesId=0b515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, jobId=1b515060741-869ac7f4-9bd5-4429-82ed-1cfa6d8acfc9, nodeId=869ac7f4-9bd5-4429-82ed-1cfa6d8acfc9, isJobDone=false], jobCtx=GridJobContextImpl [jobId=1b515060741-869ac7f4-9bd5-4429-82ed-1cfa6d8acfc9, attrs={}], node=GridTcpDiscoveryNode [id=869ac7f4-9bd5-4429-82ed-1cfa6d8acfc9, addrs=[127.0.0.1], sockAddrs=[/127.0.0.1:47500], discPort=47500, order=1, loc=false, ver=GridProductVersion [major=6, minor=1, maintenance=9, revTs=1403872573]], ex=class o.g.g.GridException: Failed to deserialize object with given class loader: sun.misc.Launcher$AppClassLoader@73d16e93
For more information see:
    Troubleshooting:      http://bit.ly/GridGain-Troubleshooting
    Documentation Center: http://bit.ly/GridGain-Documentation
, hasRes=true, isCancelled=false, isOccupied=true]
class org.gridgain.grid.GridException: Remote job threw user exception (override or implement GridComputeTask.result(..) method if you would like to have automatic failover for this exception).
    at org.gridgain.grid.compute.GridComputeTaskAdapter.result(GridComputeTaskAdapter.java:109)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:819)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:812)
    at org.gridgain.grid.util.GridUtils.wrapThreadLoader(GridUtils.java:5955)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.result(GridTaskWorker.java:812)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:708)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:834)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor$JobMessageListener.onMessage(GridTaskProcessor.java:1066)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:654)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager.access$1800(GridIoManager.java:62)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager$6.body(GridIoManager.java:615)
    at org.gridgain.grid.util.worker.GridWorker.run(GridWorker.java:151)
    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.gridgain.grid.GridException: Failed to deserialize object with given class loader: sun.misc.Launcher$AppClassLoader@73d16e93
For more information see:
    Troubleshooting:      http://bit.ly/GridGain-Troubleshooting
    Documentation Center: http://bit.ly/GridGain-Documentation

    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller.unmarshal(GridOptimizedMarshaller.java:366)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.initialize(GridJobWorker.java:388)
    at org.gridgain.grid.kernal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1048)
    at org.gridgain.grid.kernal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1685)
    ... 7 more
Caused by: java.io.IOException: java.lang.reflect.InvocationTargetException
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:369)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassDescriptor.read(GridOptimizedClassDescriptor.java:959)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readObjectOverride(GridOptimizedObjectInputStream.java:144)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readFields(GridOptimizedObjectInputStream.java:274)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:359)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassDescriptor.read(GridOptimizedClassDescriptor.java:959)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readObjectOverride(GridOptimizedObjectInputStream.java:144)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller.unmarshal(GridOptimizedMarshaller.java:363)
    ... 10 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:483)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:364)
    ... 19 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:483)
    at java.lang.invoke.SerializedLambda.readResolve(SerializedLambda.java:230)
    ... 24 more
Caused by: java.lang.IllegalArgumentException: Invalid lambda deserialization
    at id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2.$deserializeLambda$(AnswerYagoFactTests.java:1)
    ... 29 more
[05:45:07,596][SEVERE][gridgain-#10%pub-null%][GridJobWorker] Failed to execute job due to unexpected runtime exception [jobId=ca515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2, dep=GridDeployment [ts=1404555304853, depMode=CONTINUOUS, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93, clsLdrId=a7515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, userVer=0, loc=true, sampleClsName=o.g.g.kernal.processors.cache.distributed.dht.preloader.GridDhtPartitionFullMap, pendingUndeploy=false, undeployed=false, usage=2], taskClsName=id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2, sesId=ba515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, startTime=1404555307484, endTime=9223372036854775807, taskNodeId=b4dbd852-d1f7-4d2f-93df-36b5b05650ca, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93, closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false], jobId=ca515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca]]
java.lang.RuntimeException: class org.gridgain.grid.GridException: Remote job threw user exception (override or implement GridComputeTask.result(..) method if you would like to have automatic failover for this exception).
    at com.google.common.base.Throwables.propagate(Throwables.java:160)
    at id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2.apply(AnswerYagoFactTests.java:134)
    at id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2.apply(AnswerYagoFactTests.java:1)
    at org.gridgain.grid.kernal.processors.closure.GridClosureProcessor$4.execute(GridClosureProcessor.java:971)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker$2.call(GridJobWorker.java:485)
    at org.gridgain.grid.util.GridUtils.wrapThreadLoader(GridUtils.java:5923)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.execute0(GridJobWorker.java:479)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.body(GridJobWorker.java:432)
    at org.gridgain.grid.util.worker.GridWorker.run(GridWorker.java:151)
    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.gridgain.grid.GridException: Remote job threw user exception (override or implement GridComputeTask.result(..) method if you would like to have automatic failover for this exception).
    at org.gridgain.grid.compute.GridComputeTaskAdapter.result(GridComputeTaskAdapter.java:109)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:819)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:812)
    at org.gridgain.grid.util.GridUtils.wrapThreadLoader(GridUtils.java:5955)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.result(GridTaskWorker.java:812)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:708)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:834)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor$JobMessageListener.onMessage(GridTaskProcessor.java:1066)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:654)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager.access$1800(GridIoManager.java:62)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager$6.body(GridIoManager.java:615)
    ... 4 more
Caused by: class org.gridgain.grid.GridException: Failed to deserialize object with given class loader: sun.misc.Launcher$AppClassLoader@73d16e93
For more information see:
    Troubleshooting:      http://bit.ly/GridGain-Troubleshooting
    Documentation Center: http://bit.ly/GridGain-Documentation

    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller.unmarshal(GridOptimizedMarshaller.java:366)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.initialize(GridJobWorker.java:388)
    at org.gridgain.grid.kernal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1048)
    at org.gridgain.grid.kernal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1685)
    ... 7 more
Caused by: java.io.IOException: java.lang.reflect.InvocationTargetException
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:369)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassDescriptor.read(GridOptimizedClassDescriptor.java:959)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readObjectOverride(GridOptimizedObjectInputStream.java:144)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readFields(GridOptimizedObjectInputStream.java:274)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:359)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassDescriptor.read(GridOptimizedClassDescriptor.java:959)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readObjectOverride(GridOptimizedObjectInputStream.java:144)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller.unmarshal(GridOptimizedMarshaller.java:363)
    ... 10 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:483)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:364)
    ... 19 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:483)
    at java.lang.invoke.SerializedLambda.readResolve(SerializedLambda.java:230)
    ... 24 more
Caused by: java.lang.IllegalArgumentException: Invalid lambda deserialization
    at id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2.$deserializeLambda$(AnswerYagoFactTests.java:1)
    ... 29 more
[05:45:07,600][SEVERE][gridgain-#10%pub-null%][GridTaskWorker] Failed to obtain remote job result policy for result from GridComputeTask.result(..) method (will fail the whole task): GridJobResultImpl [job=o.g.g.kernal.processors.closure.GridClosureProcessor$4@77cf3f8b, sib=GridJobSiblingImpl [sesId=ba515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, jobId=ca515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, nodeId=b4dbd852-d1f7-4d2f-93df-36b5b05650ca, isJobDone=false], jobCtx=GridJobContextImpl [jobId=ca515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, attrs={}], node=GridTcpDiscoveryNode [id=b4dbd852-d1f7-4d2f-93df-36b5b05650ca, addrs=[127.0.0.1], sockAddrs=[/127.0.0.1:47501], discPort=47501, order=2, loc=true, ver=GridProductVersion [major=6, minor=1, maintenance=9, revTs=1403872573]], ex=class o.g.g.compute.GridComputeUserUndeclaredException: Failed to execute job due to unexpected runtime exception [jobId=ca515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2, dep=GridDeployment [ts=1404555304853, depMode=CONTINUOUS, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93, clsLdrId=a7515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, userVer=0, loc=true, sampleClsName=o.g.g.kernal.processors.cache.distributed.dht.preloader.GridDhtPartitionFullMap, pendingUndeploy=false, undeployed=false, usage=2], taskClsName=id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2, sesId=ba515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, startTime=1404555307484, endTime=9223372036854775807, taskNodeId=b4dbd852-d1f7-4d2f-93df-36b5b05650ca, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93, closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false], jobId=ca515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca]], hasRes=true, isCancelled=false, isOccupied=true]
class org.gridgain.grid.GridException: Remote job threw user exception (override or implement GridComputeTask.result(..) method if you would like to have automatic failover for this exception).
    at org.gridgain.grid.compute.GridComputeTaskAdapter.result(GridComputeTaskAdapter.java:109)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:819)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:812)
    at org.gridgain.grid.util.GridUtils.wrapThreadLoader(GridUtils.java:5955)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.result(GridTaskWorker.java:812)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:708)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:834)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.finishJob(GridJobWorker.java:743)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.execute0(GridJobWorker.java:534)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.body(GridJobWorker.java:432)
    at org.gridgain.grid.util.worker.GridWorker.run(GridWorker.java:151)
    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.gridgain.grid.compute.GridComputeUserUndeclaredException: Failed to execute job due to unexpected runtime exception [jobId=ca515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2, dep=GridDeployment [ts=1404555304853, depMode=CONTINUOUS, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93, clsLdrId=a7515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, userVer=0, loc=true, sampleClsName=org.gridgain.grid.kernal.processors.cache.distributed.dht.preloader.GridDhtPartitionFullMap, pendingUndeploy=false, undeployed=false, usage=2], taskClsName=id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2, sesId=ba515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca, startTime=1404555307484, endTime=9223372036854775807, taskNodeId=b4dbd852-d1f7-4d2f-93df-36b5b05650ca, clsLdr=sun.misc.Launcher$AppClassLoader@73d16e93, closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false], jobId=ca515060741-b4dbd852-d1f7-4d2f-93df-36b5b05650ca]]
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.handleThrowable(GridJobWorker.java:578)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.execute0(GridJobWorker.java:527)
    ... 5 more
Caused by: java.lang.RuntimeException: class org.gridgain.grid.GridException: Remote job threw user exception (override or implement GridComputeTask.result(..) method if you would like to have automatic failover for this exception).
    at com.google.common.base.Throwables.propagate(Throwables.java:160)
    at id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2.apply(AnswerYagoFactTests.java:134)
    at id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2.apply(AnswerYagoFactTests.java:1)
    at org.gridgain.grid.kernal.processors.closure.GridClosureProcessor$4.execute(GridClosureProcessor.java:971)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker$2.call(GridJobWorker.java:485)
    at org.gridgain.grid.util.GridUtils.wrapThreadLoader(GridUtils.java:5923)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.execute0(GridJobWorker.java:479)
    ... 5 more
Caused by: class org.gridgain.grid.GridException: Remote job threw user exception (override or implement GridComputeTask.result(..) method if you would like to have automatic failover for this exception).
    at org.gridgain.grid.compute.GridComputeTaskAdapter.result(GridComputeTaskAdapter.java:109)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:819)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:812)
    at org.gridgain.grid.util.GridUtils.wrapThreadLoader(GridUtils.java:5955)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.result(GridTaskWorker.java:812)
    at org.gridgain.grid.kernal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:708)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:834)
    at org.gridgain.grid.kernal.processors.task.GridTaskProcessor$JobMessageListener.onMessage(GridTaskProcessor.java:1066)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:654)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager.access$1800(GridIoManager.java:62)
    at org.gridgain.grid.kernal.managers.communication.GridIoManager$6.body(GridIoManager.java:615)
    ... 4 more
Caused by: class org.gridgain.grid.GridException: Failed to deserialize object with given class loader: sun.misc.Launcher$AppClassLoader@73d16e93
For more information see:
    Troubleshooting:      http://bit.ly/GridGain-Troubleshooting
    Documentation Center: http://bit.ly/GridGain-Documentation

    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller.unmarshal(GridOptimizedMarshaller.java:366)
    at org.gridgain.grid.kernal.processors.job.GridJobWorker.initialize(GridJobWorker.java:388)
    at org.gridgain.grid.kernal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1048)
    at org.gridgain.grid.kernal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1685)
    ... 7 more
Caused by: java.io.IOException: java.lang.reflect.InvocationTargetException
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:369)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassDescriptor.read(GridOptimizedClassDescriptor.java:959)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readObjectOverride(GridOptimizedObjectInputStream.java:144)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readFields(GridOptimizedObjectInputStream.java:274)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:359)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedClassDescriptor.read(GridOptimizedClassDescriptor.java:959)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readObjectOverride(GridOptimizedObjectInputStream.java:144)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedMarshaller.unmarshal(GridOptimizedMarshaller.java:363)
    ... 10 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:483)
    at org.gridgain.grid.marshaller.optimized.GridOptimizedObjectInputStream.readSerializable(GridOptimizedObjectInputStream.java:364)
    ... 19 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:483)
    at java.lang.invoke.SerializedLambda.readResolve(SerializedLambda.java:230)
    ... 24 more
Caused by: java.lang.IllegalArgumentException: Invalid lambda deserialization
    at id.ac.itb.ee.lskk.lumen.yago.AnswerYagoFactTests$2.$deserializeLambda$(AnswerYagoFactTests.java:1)
    ... 29 more
[05:45:07] GridGain node stopped OK [uptime=00:00:00:955]