当前位置: 首页 > 知识库问答 >
问题:

ignite java.lang.ClassNotFoundException:无法对等加载类

长孙昀
2023-03-14

当我运行下面的代码时,我得到了“对等加载类失败”。

String objectIds = "1vxzn3ifggm4o,1a47fmqipb1u3,z56f5kkwlfk3,tths3z5k5l38,79lzqlrd4cg6";
for (String did : objectIds.split(",")) {
      calls.add(() -> {
           TLabObject object = RepositoryDao.getObject(did);
           System.out.println(">>> " + did + " on node = " + ignite.cluster().localNode().id());
           return object;
       });
}
Collection< TLabObject > res = ignite.compute(rmts).call(calls);
    null

1,服务器端日志

[10:20:37,217][SEVERE][pub-#11%null%][GridJobWorker] Failed to execute job due to class or resource loading exception (make sure that task originating node is still in grid and requested class is in the task class path) [jobId=b8ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=com.testlab.lab.App$$Lambda$8/1801021153, dep=SharedDeployment [rmv=false, super=GridDeployment [ts=1478658022081, depMode=SHARED, clsLdr=GridDeploymentClassLoader [id=03722e64851-6dfe9b10-400c-48c7-85b3-ae6fe48236dc, singleNode=false, nodeLdrMap={8ae79cf0-61ea-498b-a2b3-550b9a16f637=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637}, p2pTimeout=5000, usrVer=0, depMode=SHARED, quiet=false], clsLdrId=03722e64851-6dfe9b10-400c-48c7-85b3-ae6fe48236dc, userVer=0, loc=false, sampleClsName=com.testlab.lab.App$$Lambda$8/1801021153, pendingUndeploy=false, undeployed=false, usage=1]], taskClsName=com.testlab.lab.App$$Lambda$8/1801021153, sesId=a8ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637, startTime=1478658021823, endTime=9223372036854775807, taskNodeId=8ae79cf0-61ea-498b-a2b3-550b9a16f637, clsLdr=GridDeploymentClassLoader [id=03722e64851-6dfe9b10-400c-48c7-85b3-ae6fe48236dc, singleNode=false, nodeLdrMap={8ae79cf0-61ea-498b-a2b3-550b9a16f637=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637}, p2pTimeout=5000, usrVer=0, depMode=SHARED, quiet=false], closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false, subjId=8ae79cf0-61ea-498b-a2b3-550b9a16f637, mapFut=IgniteFuture [orig=GridFutureAdapter [resFlag=0, res=null, startTime=1478658022092, endTime=0, ignoreInterrupts=false, state=INIT]]], jobId=b8ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637]] 
java.lang.NoClassDefFoundError: com/testlab/api/inf/dao/RepositoryDao 
        at com.testlab.lab.App.lambda$compute$eaa7aa4d$1(App.java:45) 
        at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2V2.execute(GridClosureProcessor.java:2006) 
        at org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:509) 
        at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6521) 
        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:1161) 
        at org.apache.ignite.internal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1766) 
        at org.apache.ignite.internal.managers.communication.GridIoManager.invokeListener(GridIoManager.java:1238) 
        at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:866) 
        at org.apache.ignite.internal.managers.communication.GridIoManager.access$1700(GridIoManager.java:106) 
        at org.apache.ignite.internal.managers.communication.GridIoManager$5.run(GridIoManager.java:829) 
        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: java.lang.ClassNotFoundException: Failed to peer load class [class=com.testlab.api.inf.dao.RepositoryDao, nodeClsLdrs={8ae79cf0-61ea-498b-a2b3-550b9a16f637=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637}, parentClsLoader=sun.misc.Launcher$AppClassLoader@18b4aac2] 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.sendClassRequest(GridDeploymentClassLoader.java:661) 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.findClass(GridDeploymentClassLoader.java:509) 
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424) 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.loadClass(GridDeploymentClassLoader.java:441) 
        ... 16 more 
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to send class-loading request to node (is node alive?) [node=8ae79cf0-61ea-498b-a2b3-550b9a16f637, clsName=com.testlab.api.inf.dao.RepositoryDao, clsPath=com/testlab/api/inf/dao/RepositoryDao.class, clsLdrId=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637, parentClsLdr=sun.misc.Launcher$AppClassLoader@18b4aac2] 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.sendClassRequest(GridDeploymentClassLoader.java:614) 
        ... 19 more 
[10:20:37,237][SEVERE][pub-#11%null%][GridJobWorker] Runtime error caught during grid runnable execution: GridJobWorker [createTime=1478658022060, startTime=1478658022182, finishTime=1478658037214, taskNode=TcpDiscoveryNode [id=8ae79cf0-61ea-498b-a2b3-550b9a16f637, addrs=[0:0:0:0:0:0:0:1, 127.0.0.1, 172.16.0.36], sockAddrs=[/172.16.0.36:0, /0:0:0:0:0:0:0:1:0, /127.0.0.1:0], discPort=0, order=56, intOrder=29, lastExchangeTime=1478658021088, loc=false, ver=1.7.0#20160801-sha1:383273e3, isClient=true], internal=false, marsh=o.a.i.i.binary.BinaryMarshaller@5f14cc1, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=com.testlab.lab.App$$Lambda$8/1801021153, dep=SharedDeployment [rmv=false, super=GridDeployment [ts=1478658022081, depMode=SHARED, clsLdr=GridDeploymentClassLoader [id=03722e64851-6dfe9b10-400c-48c7-85b3-ae6fe48236dc, singleNode=false, nodeLdrMap={8ae79cf0-61ea-498b-a2b3-550b9a16f637=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637}, p2pTimeout=5000, usrVer=0, depMode=SHARED, quiet=false], clsLdrId=03722e64851-6dfe9b10-400c-48c7-85b3-ae6fe48236dc, userVer=0, loc=false, sampleClsName=com.testlab.lab.App$$Lambda$8/1801021153, pendingUndeploy=false, undeployed=false, usage=0]], taskClsName=com.testlab.lab.App$$Lambda$8/1801021153, sesId=a8ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637, startTime=1478658021823, endTime=9223372036854775807, taskNodeId=8ae79cf0-61ea-498b-a2b3-550b9a16f637, clsLdr=GridDeploymentClassLoader [id=03722e64851-6dfe9b10-400c-48c7-85b3-ae6fe48236dc, singleNode=false, nodeLdrMap={8ae79cf0-61ea-498b-a2b3-550b9a16f637=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637}, p2pTimeout=5000, usrVer=0, depMode=SHARED, quiet=false], closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false, subjId=8ae79cf0-61ea-498b-a2b3-550b9a16f637, mapFut=IgniteFuture [orig=GridFutureAdapter [resFlag=0, res=null, startTime=1478658022092, endTime=0, ignoreInterrupts=false, state=INIT]]], jobId=b8ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637], jobCtx=GridJobContextImpl [jobId=b8ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637, timeoutObj=null, attrs={}], dep=SharedDeployment [rmv=false, super=GridDeployment [ts=1478658022081, depMode=SHARED, clsLdr=GridDeploymentClassLoader [id=03722e64851-6dfe9b10-400c-48c7-85b3-ae6fe48236dc, singleNode=false, nodeLdrMap={8ae79cf0-61ea-498b-a2b3-550b9a16f637=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637}, p2pTimeout=5000, usrVer=0, depMode=SHARED, quiet=false], clsLdrId=03722e64851-6dfe9b10-400c-48c7-85b3-ae6fe48236dc, userVer=0, loc=false, sampleClsName=com.testlab.lab.App$$Lambda$8/1801021153, pendingUndeploy=false, undeployed=false, usage=0]], finishing=true, masterLeaveGuard=false, timedOut=false, sysCancelled=false, sysStopping=false, isStarted=true, job=C2V2 [c=com.testlab.lab.App$$Lambda$13/1442687359@4cbe8650], held=0] 
java.lang.NoClassDefFoundError: com/testlab/api/inf/dao/RepositoryDao 
        at com.testlab.lab.App.lambda$compute$eaa7aa4d$1(App.java:45) 
        at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2V2.execute(GridClosureProcessor.java:2006) 
        at org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:509) 
        at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6521) 
        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:1161) 
        at org.apache.ignite.internal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1766) 
        at org.apache.ignite.internal.managers.communication.GridIoManager.invokeListener(GridIoManager.java:1238) 
        at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:866) 
        at org.apache.ignite.internal.managers.communication.GridIoManager.access$1700(GridIoManager.java:106) 
        at org.apache.ignite.internal.managers.communication.GridIoManager$5.run(GridIoManager.java:829) 
        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: java.lang.ClassNotFoundException: Failed to peer load class [class=com.testlab.api.inf.dao.RepositoryDao, nodeClsLdrs={8ae79cf0-61ea-498b-a2b3-550b9a16f637=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637}, parentClsLoader=sun.misc.Launcher$AppClassLoader@18b4aac2] 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.sendClassRequest(GridDeploymentClassLoader.java:661) 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.findClass(GridDeploymentClassLoader.java:509) 
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424) 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.loadClass(GridDeploymentClassLoader.java:441) 
        ... 16 more 
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to send class-loading request to node (is node alive?) [node=8ae79cf0-61ea-498b-a2b3-550b9a16f637, clsName=com.testlab.api.inf.dao.RepositoryDao, clsPath=com/testlab/api/inf/dao/RepositoryDao.class, clsLdrId=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637, parentClsLdr=sun.misc.Launcher$AppClassLoader@18b4aac2] 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.sendClassRequest(GridDeploymentClassLoader.java:614) 
        ... 19 more 
Exception in thread "pub-#11%null%" java.lang.NoClassDefFoundError: com/testlab/api/inf/dao/RepositoryDao 
        at com.testlab.lab.App.lambda$compute$eaa7aa4d$1(App.java:45) 
        at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2V2.execute(GridClosureProcessor.java:2006) 
        at org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:509) 
        at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6521) 
        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:1161) 
        at org.apache.ignite.internal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1766) 
        at org.apache.ignite.internal.managers.communication.GridIoManager.invokeListener(GridIoManager.java:1238) 
        at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:866) 
        at org.apache.ignite.internal.managers.communication.GridIoManager.access$1700(GridIoManager.java:106) 
        at org.apache.ignite.internal.managers.communication.GridIoManager$5.run(GridIoManager.java:829) 
        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: java.lang.ClassNotFoundException: Failed to peer load class [class=com.testlab.api.inf.dao.RepositoryDao, nodeClsLdrs={8ae79cf0-61ea-498b-a2b3-550b9a16f637=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637}, parentClsLoader=sun.misc.Launcher$AppClassLoader@18b4aac2] 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.sendClassRequest(GridDeploymentClassLoader.java:661) 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.findClass(GridDeploymentClassLoader.java:509) 
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424) 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.loadClass(GridDeploymentClassLoader.java:441) 
        ... 16 more 
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to send class-loading request to node (is node alive?) [node=8ae79cf0-61ea-498b-a2b3-550b9a16f637, clsName=com.testlab.api.inf.dao.RepositoryDao, clsPath=com/testlab/api/inf/dao/RepositoryDao.class, clsLdrId=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637, parentClsLdr=sun.misc.Launcher$AppClassLoader@18b4aac2] 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.sendClassRequest(GridDeploymentClassLoader.java:614) 
        ... 19 more 
[10:20:37] Topology snapshot [ver=57, servers=1, clients=0, CPUs=4, heap=1.0GB] 

2、客户端日志

[10:20:37,252][SEVERE][sys-#16%null%][GridTaskWorker] Failed to obtain remote job result policy for result from ComputeTask.result(..) method (will fail the whole task): GridJobResultImpl [job=C2V2 [c=com.testlab.lab.App$$Lambda$8/1801021153@7684759e], sib=GridJobSiblingImpl [sesId=a8ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637, jobId=b8ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637, nodeId=6dfe9b10-400c-48c7-85b3-ae6fe48236dc, isJobDone=false], jobCtx=GridJobContextImpl [jobId=b8ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637, timeoutObj=null, attrs={}], node=TcpDiscoveryNode [id=6dfe9b10-400c-48c7-85b3-ae6fe48236dc, addrs=[0:0:0:0:0:0:0:1, 127.0.0.1, 172.16.0.36], sockAddrs=[/172.16.0.36:47500, /0:0:0:0:0:0:0:1:47500, /127.0.0.1:47500], discPort=47500, order=53, intOrder=28, lastExchangeTime=1478658021221, loc=false, ver=1.7.0#20160801-sha1:383273e3, isClient=false], ex=class o.a.i.compute.ComputeUserUndeclaredException: Failed to execute job due to class or resource loading exception (make sure that task originating node is still in grid and requested class is in the task class path) [jobId=b8ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=com.testlab.lab.App$$Lambda$8/1801021153, dep=SharedDeployment [rmv=false, super=GridDeployment [ts=1478658022081, depMode=SHARED, clsLdr=GridDeploymentClassLoader [id=03722e64851-6dfe9b10-400c-48c7-85b3-ae6fe48236dc, singleNode=false, nodeLdrMap={8ae79cf0-61ea-498b-a2b3-550b9a16f637=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637}, p2pTimeout=5000, usrVer=0, depMode=SHARED, quiet=false], clsLdrId=03722e64851-6dfe9b10-400c-48c7-85b3-ae6fe48236dc, userVer=0, loc=false, sampleClsName=com.testlab.lab.App$$Lambda$8/1801021153, pendingUndeploy=false, undeployed=false, usage=1]], taskClsName=com.testlab.lab.App$$Lambda$8/1801021153, sesId=a8ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637, startTime=1478658021823, endTime=9223372036854775807, taskNodeId=8ae79cf0-61ea-498b-a2b3-550b9a16f637, clsLdr=GridDeploymentClassLoader [id=03722e64851-6dfe9b10-400c-48c7-85b3-ae6fe48236dc, singleNode=false, nodeLdrMap={8ae79cf0-61ea-498b-a2b3-550b9a16f637=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637}, p2pTimeout=5000, usrVer=0, depMode=SHARED, quiet=false], closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false, subjId=8ae79cf0-61ea-498b-a2b3-550b9a16f637, mapFut=IgniteFuture [orig=GridFutureAdapter [resFlag=0, res=null, startTime=1478658022092, endTime=0, ignoreInterrupts=false, state=INIT]]], jobId=b8ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637]], 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$4.apply(GridTaskWorker.java:946) 
        at org.apache.ignite.internal.processors.task.GridTaskWorker$4.apply(GridTaskWorker.java:939) 
        at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6553) 
        at org.apache.ignite.internal.processors.task.GridTaskWorker.result(GridTaskWorker.java:939) 
        at org.apache.ignite.internal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:810) 
        at org.apache.ignite.internal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:995) 
        at org.apache.ignite.internal.processors.task.GridTaskProcessor$JobMessageListener.onMessage(GridTaskProcessor.java:1220) 
        at org.apache.ignite.internal.managers.communication.GridIoManager.invokeListener(GridIoManager.java:1238) 
        at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:866) 
        at org.apache.ignite.internal.managers.communication.GridIoManager.access$1700(GridIoManager.java:106) 
        at org.apache.ignite.internal.managers.communication.GridIoManager$5.run(GridIoManager.java:829) 
        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.compute.ComputeUserUndeclaredException: Failed to execute job due to class or resource loading exception (make sure that task originating node is still in grid and requested class is in the task class path) [jobId=b8ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637, ses=GridJobSessionImpl [ses=GridTaskSessionImpl [taskName=com.testlab.lab.App$$Lambda$8/1801021153, dep=SharedDeployment [rmv=false, super=GridDeployment [ts=1478658022081, depMode=SHARED, clsLdr=GridDeploymentClassLoader [id=03722e64851-6dfe9b10-400c-48c7-85b3-ae6fe48236dc, singleNode=false, nodeLdrMap={8ae79cf0-61ea-498b-a2b3-550b9a16f637=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637}, p2pTimeout=5000, usrVer=0, depMode=SHARED, quiet=false], clsLdrId=03722e64851-6dfe9b10-400c-48c7-85b3-ae6fe48236dc, userVer=0, loc=false, sampleClsName=com.testlab.lab.App$$Lambda$8/1801021153, pendingUndeploy=false, undeployed=false, usage=1]], taskClsName=com.testlab.lab.App$$Lambda$8/1801021153, sesId=a8ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637, startTime=1478658021823, endTime=9223372036854775807, taskNodeId=8ae79cf0-61ea-498b-a2b3-550b9a16f637, clsLdr=GridDeploymentClassLoader [id=03722e64851-6dfe9b10-400c-48c7-85b3-ae6fe48236dc, singleNode=false, nodeLdrMap={8ae79cf0-61ea-498b-a2b3-550b9a16f637=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637}, p2pTimeout=5000, usrVer=0, depMode=SHARED, quiet=false], closed=false, cpSpi=null, failSpi=null, loadSpi=null, usage=1, fullSup=false, subjId=8ae79cf0-61ea-498b-a2b3-550b9a16f637, mapFut=IgniteFuture [orig=GridFutureAdapter [resFlag=0, res=null, startTime=1478658022092, endTime=0, ignoreInterrupts=false, state=INIT]]], jobId=b8ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637]] 
        at org.apache.ignite.internal.processors.job.GridJobWorker.handleThrowable(GridJobWorker.java:595) 
        at org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:551) 
        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:1161) 
        at org.apache.ignite.internal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1766) 
        ... 7 more 
Caused by: java.lang.NoClassDefFoundError: com/testlab/api/inf/dao/RepositoryDao 
        at com.testlab.lab.App.lambda$compute$eaa7aa4d$1(App.java:45) 
        at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2V2.execute(GridClosureProcessor.java:2006) 
        at org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:509) 
        at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6521) 
        at org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:503) 
        ... 11 more 
Caused by: java.lang.ClassNotFoundException: Failed to peer load class [class=com.testlab.api.inf.dao.RepositoryDao, nodeClsLdrs={8ae79cf0-61ea-498b-a2b3-550b9a16f637=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637}, parentClsLoader=sun.misc.Launcher$AppClassLoader@18b4aac2] 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.sendClassRequest(GridDeploymentClassLoader.java:661) 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.findClass(GridDeploymentClassLoader.java:509) 
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424) 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.loadClass(GridDeploymentClassLoader.java:441) 
        ... 16 more 
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to send class-loading request to node (is node alive?) [node=8ae79cf0-61ea-498b-a2b3-550b9a16f637, clsName=com.testlab.api.inf.dao.RepositoryDao, clsPath=com/testlab/api/inf/dao/RepositoryDao.class, clsLdrId=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637, parentClsLdr=sun.misc.Launcher$AppClassLoader@18b4aac2] 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.sendClassRequest(GridDeploymentClassLoader.java:614) 
        ... 19 more 

java.lang.NoClassDefFoundError: com/testlab/api/inf/dao/RepositoryDao 

        at com.testlab.lab.App.lambda$compute$eaa7aa4d$1(App.java:45) 
        at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2V2.execute(GridClosureProcessor.java:2006) 
        at org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:509) 
        at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6521) 
        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:1161) 
        at org.apache.ignite.internal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1766) 
        at org.apache.ignite.internal.managers.communication.GridIoManager.invokeListener(GridIoManager.java:1238) 
        at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:866) 
        at org.apache.ignite.internal.managers.communication.GridIoManager.access$1700(GridIoManager.java:106) 
        at org.apache.ignite.internal.managers.communication.GridIoManager$5.run(GridIoManager.java:829) 
        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: java.lang.ClassNotFoundException: Failed to peer load class [class=com.testlab.api.inf.dao.RepositoryDao, nodeClsLdrs={8ae79cf0-61ea-498b-a2b3-550b9a16f637=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637}, parentClsLoader=sun.misc.Launcher$AppClassLoader@18b4aac2] 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.sendClassRequest(GridDeploymentClassLoader.java:661) 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.findClass(GridDeploymentClassLoader.java:509) 
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424) 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.loadClass(GridDeploymentClassLoader.java:441) 
        ... 16 more 
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to send class-loading request to node (is node alive?) [node=8ae79cf0-61ea-498b-a2b3-550b9a16f637, clsName=com.testlab.api.inf.dao.RepositoryDao, clsPath=com/testlab/api/inf/dao/RepositoryDao.class, clsLdrId=08ac2e64851-8ae79cf0-61ea-498b-a2b3-550b9a16f637, parentClsLdr=sun.misc.Launcher$AppClassLoader@18b4aac2] 
        at org.apache.ignite.internal.managers.deployment.GridDeploymentClassLoader.sendClassRequest(GridDeploymentClassLoader.java:614) 
        ... 19 more 

共有1个答案

臧令
2023-03-14

服务器上出现异常后会出现以下消息

[10:20:37] Topology snapshot [ver=57, servers=1, clients=0, CPUs=4, heap=1.0GB]

这实际上意味着客户端出于某种原因离开了,所以服务器不能向它请求类。查看客户端日志以找出原因。

 类似资料:
  • 问题内容: 当我尝试运行Hibernate时,我在控制台中收到以下消息。 但是hibernate状态很好。我的项目有什么问题吗?我使用Eclipse(Helios),Hibernate 3.6.8。我使用这些jar文件:antlr-2.7.6,commons- collections-3.1,dom4j-1.6.1,hibernate3,hibernate- jpa-2.0-api-1.0.1.F

  • 我试图从groovy脚本调用Oracle存储过程,结果出现了标题中的错误。 以下是我的剧本: 当我删除(它们是OUT parameters)参数时,脚本将被编译,所以我认为它们有问题······ 我找到了一个让我的程序工作的解决方案: 但我想有一个更好的方法来传递这些SQL参数... PS:我正在使用Groovy-2.4.13,并尝试了Oracle JDK9和1.8.0_151

  • 我正试图用PDFBox和Groovy来搞乱一下。我试图使用PDType1Font类的getStringWidth()方法计算字符串的宽度。 我的问题是,每次编译和运行代码时,都会出现这样一个错误: 代码如下: 为了清晰起见,我删除了代码中所有不相关的部分。 问题出在哪里? 更新:我在IntelliJ中搜索了一下如何将外部jar添加到我的类路径,发现我需要转到项目结构- 我试着这样做: 但我仍然收到

  • 我的系统中安装了JMeter 5.2.1。当我尝试执行下面的代码时,我遇到了这个错误。 响应消息:javax。剧本ScriptException:组织。科德豪斯。非常棒。控制MultipleComplationErrorsException:启动失败:类生成期间出现常规错误:java。lang.NoClassDefFoundError:无法加载类com。蔚蓝色的消息传递。事件中心。由于缺少依赖关系

  • 这是密码。没有警告,文件正常。

  • 问题内容: 我正在使用 eclipse juno 使用 maven (m2eclipse插件)运行其他人的Java代码。但是我收到以下消息: 在官方网站上,我找到了针对此问题的以下修复程序: 所以我将slf4j-simple.jar复制到 “ C:\ Program Files \ Java \ jdk1.7.0_07 \ lib”中 。但是我仍然遇到错误。 请指导我什么是正确的解决方案。我是Ja