ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Kozlov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-3109) IgfsMapReduceExample fails ClassNotFoundException
Date Wed, 11 May 2016 10:46:13 GMT
Sergey Kozlov created IGNITE-3109:
-------------------------------------

             Summary: IgfsMapReduceExample fails ClassNotFoundException
                 Key: IGNITE-3109
                 URL: https://issues.apache.org/jira/browse/IGNITE-3109
             Project: Ignite
          Issue Type: Bug
          Components: IGFS
    Affects Versions: 1.6
         Environment: Windows 10, Oracle JDK 1.7.0_80
            Reporter: Sergey Kozlov
            Priority: Critical
             Fix For: 1.6


1. Run the external node {{bin\ignite.bat examples\config\filesystem\example-igfs.xml}}
2. Run {{IgfsMapReduceExample}} with arguments {{<path_to_file>\companies.txt (GERMANY|BRAZIL)}}:
{noformat}
[13:41:27] Topology snapshot [ver=2, servers=2, clients=0, CPUs=8, heap=4.5GB]

>>> IGFS map reduce example started.

Copying file to IGFS: C:\Work\apache-ignite-fabric-1.6.0-QASK1101-bin\examples\companies.txt
[13:41:29,722][ERROR][sys-#19%null%][GridTaskWorker] Failed to obtain remote job result policy
for result from ComputeTask.result(..) method (will fail the whole task): GridJobResultImpl
[job=o.a.i.i.processors.igfs.IgfsJobImpl@57196a65, sib=GridJobSiblingImpl [sesId=b52286f9451-e52c1381-bad9-4161-ab15-ad22c870a7d0,
jobId=fa2286f9451-e52c1381-bad9-4161-ab15-ad22c870a7d0, nodeId=b2c68a38-383c-4a9f-b176-ec4633de3c8e,
isJobDone=false], jobCtx=GridJobContextImpl [jobId=fa2286f9451-e52c1381-bad9-4161-ab15-ad22c870a7d0,
timeoutObj=null, attrs={}], node=TcpDiscoveryNode [id=b2c68a38-383c-4a9f-b176-ec4633de3c8e,
addrs=[0:0:0:0:0:0:0:1, 127.0.0.1, 192.168.2.107, 2001:0:5ef5:79fb:2090:2da4:b079:309d], sockAddrs=[work-pc/192.168.2.107:47500,
/0:0:0:0:0:0:0:1:47500, work-pc/192.168.2.107:47500, /127.0.0.1:47500, /192.168.2.107:47500,
/2001:0:5ef5:79fb:2090:2da4:b079:309d:47500], discPort=47500, order=1, intOrder=1, lastExchangeTime=1462963287286,
loc=false, ver=1.6.0#20160511-sha1:bd6a67f2, isClient=false], ex=class o.a.i.IgniteException:
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@1b3e02ed,
hasRes=true, isCancelled=false, isOccupied=true]
class org.apache.ignite.IgniteException: Remote job threw user exception (override or implement
ComputeTask.result(..) method if you would like to have automatic failover for this exception).
	at org.apache.ignite.compute.ComputeTaskAdapter.result(ComputeTaskAdapter.java:101)
	at org.apache.ignite.internal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:912)
	at org.apache.ignite.internal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:905)
	at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6491)
	at org.apache.ignite.internal.processors.task.GridTaskWorker.result(GridTaskWorker.java:905)
	at org.apache.ignite.internal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:801)
	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:1219)
	at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:847)
	at org.apache.ignite.internal.managers.communication.GridIoManager.access$1700(GridIoManager.java:105)
	at org.apache.ignite.internal.managers.communication.GridIoManager$5.run(GridIoManager.java:810)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: class org.apache.ignite.IgniteException: 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@1b3e02ed
	at org.apache.ignite.internal.processors.job.GridJobWorker.initialize(GridJobWorker.java:424)
	at org.apache.ignite.internal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1089)
	at org.apache.ignite.internal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1766)
	... 7 more
Caused by: class org.apache.ignite.IgniteCheckedException: 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@1b3e02ed
	at org.apache.ignite.marshaller.optimized.OptimizedMarshaller.unmarshal(OptimizedMarshaller.java:253)
	at org.apache.ignite.internal.processors.job.GridJobWorker.initialize(GridJobWorker.java:409)
	... 9 more
Caused by: java.lang.ClassNotFoundException: org.apache.ignite.examples.igfs.IgfsMapReduceExample$GrepJob
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:278)
	at org.apache.ignite.internal.util.IgniteUtils.forName(IgniteUtils.java:8250)
	at org.apache.ignite.internal.MarshallerContextAdapter.getClass(MarshallerContextAdapter.java:185)
	at org.apache.ignite.marshaller.optimized.OptimizedMarshallerUtils.classDescriptor(OptimizedMarshallerUtils.java:266)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:318)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:364)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readFields(OptimizedObjectInputStream.java:491)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:579)
	at org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:841)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:324)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:364)
	at org.apache.ignite.marshaller.optimized.OptimizedMarshaller.unmarshal(OptimizedMarshaller.java:247)
	... 10 more
[13:41:29] Ignite node stopped OK [uptime=00:00:01:917]
Exception in thread "main" class org.apache.ignite.igfs.IgfsException: Generic IGFS error
occurred.
	at org.apache.ignite.internal.processors.igfs.IgfsUtils.toIgfsException(IgfsUtils.java:206)
	at org.apache.ignite.internal.processors.igfs.IgfsImpl.execute(IgfsImpl.java:1430)
	at org.apache.ignite.examples.igfs.IgfsMapReduceExample.main(IgfsMapReduceExample.java:91)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Caused by: class org.apache.ignite.IgniteCheckedException: 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@1b3e02ed
	at org.apache.ignite.marshaller.optimized.OptimizedMarshaller.unmarshal(OptimizedMarshaller.java:253)
	at org.apache.ignite.internal.processors.job.GridJobWorker.initialize(GridJobWorker.java:409)
	at org.apache.ignite.internal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1089)
	at org.apache.ignite.internal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1766)
	at org.apache.ignite.internal.managers.communication.GridIoManager.invokeListener(GridIoManager.java:1219)
	at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:847)
	at org.apache.ignite.internal.managers.communication.GridIoManager.access$1700(GridIoManager.java:105)
	at org.apache.ignite.internal.managers.communication.GridIoManager$5.run(GridIoManager.java:810)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.apache.ignite.examples.igfs.IgfsMapReduceExample$GrepJob
	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:278)
	at org.apache.ignite.internal.util.IgniteUtils.forName(IgniteUtils.java:8250)
	at org.apache.ignite.internal.MarshallerContextAdapter.getClass(MarshallerContextAdapter.java:185)
	at org.apache.ignite.marshaller.optimized.OptimizedMarshallerUtils.classDescriptor(OptimizedMarshallerUtils.java:266)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:318)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:364)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readFields(OptimizedObjectInputStream.java:491)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:579)
	at org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:841)
	at org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:324)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:364)
	at org.apache.ignite.marshaller.optimized.OptimizedMarshaller.unmarshal(OptimizedMarshaller.java:247)
	... 10 more

Process finished with exit code 1
{noformat}




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message