You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by zshamrock <al...@gmail.com> on 2016/05/09 19:25:27 UTC

Clear cache from Visor throws an exception

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.

Re: Clear cache from Visor throws an exception

Posted by Alexey Kuznetsov <ak...@gridgain.com>.
Will do it tomorrow.

On Tue, May 10, 2016 at 6:55 PM, Denis Magda <dm...@gridgain.com> wrote:

> 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 <al...@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
> <http://nabble.com>.
>
>
>


-- 
Alexey Kuznetsov
GridGain Systems
www.gridgain.com

Re: Clear cache from Visor throws an exception

Posted by zshamrock <al...@gmail.com>.
Hi, Denis. Not yet. Will try to test it tomorrow.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Clear-cache-from-Visor-throws-an-exception-tp4848p4975.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Clear cache from Visor throws an exception

Posted by zshamrock <al...@gmail.com>.
Yes, I am planning to upgrade soon to the latest 1.6 release, and keep you
updated on the the issue.

Thank you.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Clear-cache-from-Visor-throws-an-exception-tp4848p5137.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Clear cache from Visor throws an exception

Posted by vkulichenko <va...@gmail.com>.
I meant 1.6, of course. Here is the download page:
http://ignite.apache.org/download.cgi#binaries

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Clear-cache-from-Visor-throws-an-exception-tp4848p5102.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Clear cache from Visor throws an exception

Posted by vkulichenko <va...@gmail.com>.
Hi,

The versions of the cluster and Visor have to be the same. We just released
1.7, can you try it?

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Clear-cache-from-Visor-throws-an-exception-tp4848p5094.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Clear cache from Visor throws an exception

Posted by zshamrock <al...@gmail.com>.
Hi, Denis. I've tried the latest visor (1.6.0-SNAPSHOT), although I could not
connect to 1.5.0 Ignite grid. 



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Clear-cache-from-Visor-throws-an-exception-tp4848p5078.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Clear cache from Visor throws an exception

Posted by Denis Magda <dm...@gridgain.com>.
Have you tried the latest nightly? Has the issue disappeared on your side?

—
Denis

> On May 11, 2016, at 9:23 PM, zshamrock <al...@gmail.com> wrote:
> 
> Could it be because of the cache store implementation classes I use? That
> some of them trigger this exception?
> 
> I will try the latest nightly build you've mentioned, and report you about
> the results.
> 
> 
> 
> --
> View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Clear-cache-from-Visor-throws-an-exception-tp4848p4880.html
> Sent from the Apache Ignite Users mailing list archive at Nabble.com.


Re: Clear cache from Visor throws an exception

Posted by zshamrock <al...@gmail.com>.
Could it be because of the cache store implementation classes I use? That
some of them trigger this exception?

I will try the latest nightly build you've mentioned, and report you about
the results.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Clear-cache-from-Visor-throws-an-exception-tp4848p4880.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Clear cache from Visor throws an exception

Posted by Vasiliy Sisko <vs...@gridgain.com>.
Hello @zshamrock

I cannot reproduce your issue. Possible that problem is already fixed.
Please try to reproduce it on latest nightly build:
http://ignite.apache.org/community/contribute.html#nightly-builds.

If problem is still reproduced please provide your grid configuration.



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Clear-cache-from-Visor-throws-an-exception-tp4848p4871.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Clear cache from Visor throws an exception

Posted by zshamrock <al...@gmail.com>.
1.5.0.final



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Clear-cache-from-Visor-throws-an-exception-tp4848p4862.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Clear cache from Visor throws an exception

Posted by Denis Magda <dm...@gridgain.com>.
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 <al...@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.