ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Magda <dma...@gridgain.com>
Subject Re: Clear cache from Visor throws an exception
Date Tue, 10 May 2016 11:55:48 GMT
Hi,

What Ignite and visor versions are you using?

Alexey Kuznetzov, as a maintainer of Visor could you please take a look at the issue?

—
Denis

> On May 9, 2016, at 10:25 PM, zshamrock <aliaksandr.kazlou@gmail.com> wrote:
> 
> I connect to my Ignite cluster (1 server, 1 client) from Visor, and when I do
> cache -clear in interactive mode or by specify a cache name explicitly cache
> -clear -c=<name>, it doesn't matter, it throws an exception in my ignite
> server running window:
> 
> [21:11:08,949][SEVERE][mgmt-#76%server.applicatoin%][GridTaskWorker] Failed
> to obtain remote job result policy for result from ComputeTask.result(..)
> method (will fail the whole
> task): GridJobResultImpl [job=C2 [], sib=GridJobSiblingImpl
> [sesId=6d905769451-e7f0ac59-9d9c-4570-8e8b-f73fc20809e9,
> jobId=7d905769451-e347671f-b216-445f-b0be-7babd71aa9d8, nod
> eId=e347671f-b216-445f-b0be-7babd71aa9d8, isJobDone=false],
> jobCtx=GridJobContextImpl
> [jobId=7d905769451-e347671f-b216-445f-b0be-7babd71aa9d8, timeoutObj=null,
> attrs={}], node=T
> cpDiscoveryNode [id=e347671f-b216-445f-b0be-7babd71aa9d8,
> addrs=[0:0:0:0:0:0:0:1%lo, 127.0.0.1, 172.17.0.1, 192.168.9.17,
> 192.168.98.1], sockAddrs=[/172.17.0.1:0, /0:0:0:0:0:0:0
> :1%lo:0, /192.168.98.1:0, /127.0.0.1:0, /192.168.9.17:0, /172.17.0.1:0,
> /192.168.9.17:0, /192.168.98.1:0], discPort=0, order=4, intOrder=3,
> lastExchangeTime=1462813104619, loc=f
> alse, ver=1.5.0#20151229-sha1:f1f8cda2, isClient=true], ex=class
> o.a.i.compute.ComputeUserUndeclaredException: Failed to execute job due to
> unexpected runtime exception [jobId=7
> d905769451-e347671f-b216-445f-b0be-7babd71aa9d8, ses=GridJobSessionImpl
> [ses=GridTaskSessionImpl
> [taskName=o.a.i.i.v.cache.VisorCacheClearTask$VisorCacheClearCallable,
> dep=Local
> Deployment [super=GridDeployment [ts=1462813100229, depMode=SHARED,
> clsLdr=sun.misc.Launcher$AppClassLoader@17a7cec2,
> clsLdrId=5c884769451-e347671f-b216-445f-b0be-7babd71aa9d8, 
> userVer=0, loc=true, sampleClsName=java.lang.String, pendingUndeploy=false,
> undeployed=false, usage=0]],
> taskClsName=o.a.i.i.v.cache.VisorCacheClearTask$VisorCacheClearCallable,
> sesId=6d905769451-e7f0ac59-9d9c-4570-8e8b-f73fc20809e9,
> startTime=1462821068850, endTime=9223372036854775807,
> taskNodeId=e7f0ac59-9d9c-4570-8e8b-f73fc20809e9, clsLdr=sun.misc.L
> auncher$AppClassLoader@17a7cec2, closed=false, cpSpi=null, failSpi=null,
> loadSpi=null, usage=1, fullSup=false,
> subjId=e7f0ac59-9d9c-4570-8e8b-f73fc20809e9, mapFut=IgniteFuture [
> orig=GridFutureAdapter [resFlag=0, res=null, startTime=1462821068850,
> endTime=0, ignoreInterrupts=false, lsnr=null, state=INIT]]],
> jobId=7d905769451-e347671f-b216-445f-b0be-7bab
> d71aa9d8]], 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 th
> is exception).
>        at
> org.apache.ignite.compute.ComputeTaskAdapter.result(ComputeTaskAdapter.java:101)
>        at
> org.apache.ignite.internal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:909)
>        at
> org.apache.ignite.internal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:902)
>        at
> org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6429)
>        at
> org.apache.ignite.internal.processors.task.GridTaskWorker.result(GridTaskWorker.java:902)
>        at
> org.apache.ignite.internal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:798)
>        at
> org.apache.ignite.internal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:995)
>        at
> org.apache.ignite.internal.processors.task.GridTaskProcessor$JobMessageListener.onMessage(GridTaskProcessor.java:1219)
>        at
> org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:821)
>        at
> org.apache.ignite.internal.managers.communication.GridIoManager.access$1600(GridIoManager.java:103)
>        at
> org.apache.ignite.internal.managers.communication.GridIoManager$5.run(GridIoManager.java:784)
>        at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>        at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>        at java.lang.Thread.run(Thread.java:745)
> Caused by: class org.apache.ignite.compute.ComputeUserUndeclaredException:
> Failed to execute job due to unexpected runtime exception
> [jobId=7d905769451-e347671f-b216-445f-b0be-7
> babd71aa9d8, ses=GridJobSessionImpl [ses=GridTaskSessionImpl
> [taskName=org.apache.ignite.internal.visor.cache.VisorCacheClearTask$VisorCacheClearCallable,
> dep=LocalDeployment [s
> uper=GridDeployment [ts=1462813100229, depMode=SHARED,
> clsLdr=sun.misc.Launcher$AppClassLoader@17a7cec2,
> clsLdrId=5c884769451-e347671f-b216-445f-b0be-7babd71aa9d8, userVer=0, lo
> c=true, sampleClsName=java.lang.String, pendingUndeploy=false,
> undeployed=false, usage=0]],
> taskClsName=org.apache.ignite.internal.visor.cache.VisorCacheClearTask$VisorCacheClea
> rCallable, sesId=6d905769451-e7f0ac59-9d9c-4570-8e8b-f73fc20809e9,
> startTime=1462821068850, endTime=9223372036854775807,
> taskNodeId=e7f0ac59-9d9c-4570-8e8b-f73fc20809e9, clsLdr=
> sun.misc.Launcher$AppClassLoader@17a7cec2, closed=false, cpSpi=null,
> failSpi=null, loadSpi=null, usage=1, fullSup=false,
> subjId=e7f0ac59-9d9c-4570-8e8b-f73fc20809e9, mapFut=Igni
> teFuture [orig=GridFutureAdapter [resFlag=0, res=null,
> startTime=1462821068850, endTime=0, ignoreInterrupts=false, lsnr=null,
> state=INIT]]], jobId=7d905769451-e347671f-b216-445f
> -b0be-7babd71aa9d8]]
>        at
> org.apache.ignite.internal.processors.job.GridJobWorker.handleThrowable(GridJobWorker.java:607)
>        at
> org.apache.ignite.internal.processors.job.GridJobWorker.initialize(GridJobWorker.java:427)
>        at
> org.apache.ignite.internal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1094)
>        at
> org.apache.ignite.internal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1770)
>        ... 6 more
> Caused by: class org.apache.ignite.binary.BinaryObjectException: Failed to
> unmarshal object with optimized marshaller
>        at
> org.apache.ignite.internal.binary.BinaryUtils.doReadOptimized(BinaryUtils.java:1473)
>        at
> org.apache.ignite.internal.binary.BinaryReaderExImpl.deserialize(BinaryReaderExImpl.java:1627)
>        at
> org.apache.ignite.internal.binary.GridBinaryMarshaller.deserialize(GridBinaryMarshaller.java:292)
>        at
> org.apache.ignite.internal.binary.BinaryMarshaller.unmarshal(BinaryMarshaller.java:112)
>        at
> org.apache.ignite.internal.processors.job.GridJobWorker.initialize(GridJobWorker.java:409)
>        ... 8 more
> Caused by: class org.apache.ignite.IgniteCheckedException: Failed to
> deserialize object with given class loader:
> sun.misc.Launcher$AppClassLoader@17a7cec2
>        at
> org.apache.ignite.marshaller.optimized.OptimizedMarshaller.unmarshal(OptimizedMarshaller.java:222)
>        at
> org.apache.ignite.internal.binary.BinaryUtils.doReadOptimized(BinaryUtils.java:1470)
>        ... 12 more
> Caused by: java.io.IOException: java.lang.reflect.InvocationTargetException
>        at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readExternalizable(OptimizedObjectInputStream.java:523)
>        at
> org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:803)
>        at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:315)
>        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
>        at
> org.apache.ignite.internal.processors.cache.IgniteCacheProxy.readExternal(IgniteCacheProxy.java:1974)
>        at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readExternalizable(OptimizedObjectInputStream.java:514)
>        at
> org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:803)
>        at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:315)
>        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
>        at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readFields(OptimizedObjectInputStream.java:482)
>        at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readSerializable(OptimizedObjectInputStream.java:570)
>        at
> org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:808)
>        at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:315)
>        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
>        at
> org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.readExternal(GridClosureProcessor.java:1808)
>        at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readExternalizable(OptimizedObjectInputStream.java:514)
>        at
> org.apache.ignite.marshaller.optimized.OptimizedClassDescriptor.read(OptimizedClassDescriptor.java:803)
>        at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readObjectOverride(OptimizedObjectInputStream.java:315)
>        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
>        at
> org.apache.ignite.marshaller.optimized.OptimizedMarshaller.unmarshal(OptimizedMarshaller.java:219)
>        ... 13 more
> Caused by: java.lang.reflect.InvocationTargetException
>        at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:497)
>        at
> org.apache.ignite.marshaller.optimized.OptimizedObjectInputStream.readExternalizable(OptimizedObjectInputStream.java:518)
>        ... 32 more
> Caused by: java.io.InvalidObjectException: Ignite instance with provided
> name doesn't exist. Did you call Ignition.start(..) to start an Ignite
> instance? [name=server.application]
>        at
> org.apache.ignite.internal.processors.cache.GridCacheContext.readResolve(GridCacheContext.java:1999)
>        ... 36 more
> Caused by: class org.apache.ignite.IgniteIllegalStateException: Ignite
> instance with provided name doesn't exist. Did you call Ignition.start(..)
> to start an Ignite instance? [$
> ame=server.application]
>        at org.apache.ignite.internal.IgnitionEx.gridx(IgnitionEx.java:1267)
>        at
> org.apache.ignite.internal.processors.cache.GridCacheContext.readResolve(GridCacheContext.java:1989)
>        ... 36 more
> 
> 
> And this is what I get from Visor:
> 
> Cleared cache with name: sandbox.sensors		                                │
> +======================================================+                            
  
> │
> |  Node ID8(@)  | Cache Size Before | Cache Size After |                            
  
> │
> +======================================================+                            
  
> │
> | E7F0AC59(@n0) | 4                 | 4                |                            
  
> │
> +------------------------------------------------------+   
> 
> Choose cache number ('c' to cancel) [c]: 1
> (wrn) <visor>: class org.apache.ignite.IgniteException: Failed to
> deserialize object with given class loader:
> sun.misc.Launcher$AppClassLoader@17a7cec2
> (wrn) <visor>: Type 'help cache' to see how to use this command.
> 
> Although it clears the cache (but I have to run the command twice! to make
> it work), but the exception and error in visor doesn't feel right. 
> 
> Any ideas? Known issue?
> 
> 
> 
> 
> --
> View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Clear-cache-from-Visor-throws-an-exception-tp4848.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Mime
View raw message