ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valentin Kulichenko (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (IGNITE-548) Exceptions when running ServiceExample
Date Sun, 22 Mar 2015 08:36:10 GMT

     [ https://issues.apache.org/jira/browse/IGNITE-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Valentin Kulichenko updated IGNITE-548:
---------------------------------------
    Description: 
1. Start two {{ExampleNodeStartup}}s.
2. Run {{ServiceExample}} several times one after another.

Example fails with exceptions:
{code}
>>>
>>> Starting service proxy example.
>>>
[01:27:39,671][ERROR][ignite-#24%sys-null%][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=ab138904c41-22e2e1be-f5dd-413c-899c-d751cc684b09,
jobId=db138904c41-bf48b674-82b9-4b8a-a947-844a027f0ef8, nodeId=bf48b674-82b9-4b8a-a947-844a027f0ef8,
isJobDone=false], jobCtx=GridJobContextImpl [jobId=db138904c41-bf48b674-82b9-4b8a-a947-844a027f0ef8,
attrs={}], node=TcpDiscoveryNode [id=bf48b674-82b9-4b8a-a947-844a027f0ef8, addrs=[2601:9:2500:cc8:8db3:f17a:70af:aae0,
10.0.0.5, 2601:9:2500:cc8:12dd:b1ff:fea8:69b7, 0:0:0:0:0:0:0:1, 127.0.0.1], sockAddrs=[/2601:9:2500:cc8:8db3:f17a:70af:aae0:47501,
/10.0.0.5:47501, /2601:9:2500:cc8:12dd:b1ff:fea8:69b7:47501, /0:0:0:0:0:0:0:1:47501, /127.0.0.1:47501],
discPort=47501, order=2, intOrder=2, loc=false, ver=1.0.0#19691231-sha1:00000000, isClient=false],
ex=class o.a.i.IgniteException: Service node found: myNodeSingletonService, 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:102)
	at org.apache.ignite.internal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:829)
	at org.apache.ignite.internal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:822)
	at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6068)
	at org.apache.ignite.internal.processors.task.GridTaskWorker.result(GridTaskWorker.java:822)
	at org.apache.ignite.internal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:718)
	at org.apache.ignite.internal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:906)
	at org.apache.ignite.internal.processors.task.GridTaskProcessor$JobMessageListener.onMessage(GridTaskProcessor.java:1136)
	at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:664)
	at org.apache.ignite.internal.managers.communication.GridIoManager.access$1500(GridIoManager.java:57)
	at org.apache.ignite.internal.managers.communication.GridIoManager$5.run(GridIoManager.java:627)
	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:744)
Caused by: class org.apache.ignite.IgniteException: Service node found: myNodeSingletonService
	at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.execute(GridClosureProcessor.java:1699)
	at org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:478)
	at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6036)
	at org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:472)
	at org.apache.ignite.internal.processors.job.GridJobWorker.body(GridJobWorker.java:423)
	at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:107)
	at org.apache.ignite.internal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1118)
	at org.apache.ignite.internal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1714)
	... 6 more
Caused by: class org.apache.ignite.internal.processors.service.GridServiceNotFoundException:
Service node found: myNodeSingletonService
	at org.apache.ignite.internal.processors.service.GridServiceProxy$ServiceProxyCallable.call(GridServiceProxy.java:348)
	at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.execute(GridClosureProcessor.java:1696)
	... 13 more
{code}
{code}
[01:27:21,252][ERROR][pool-3-thread-1][GridServiceProcessor] Failed to initialize service
(service will not be deployed): myNodeSingletonService
org.apache.ignite.internal.processors.cache.IgniteCacheExistsException: Failed to start cache
(a cache with the same name is already started): myNodeSingletonService
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onCacheChangeRequested(GridCacheProcessor.java:1734)
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.access$100(GridCacheProcessor.java:82)
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor$1.apply(GridCacheProcessor.java:538)
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor$1.apply(GridCacheProcessor.java:535)
	at org.apache.ignite.internal.managers.discovery.GridDiscoveryManager$4.onDiscovery(GridDiscoveryManager.java:372)
	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi$RingMessageWorker.processCustomMessage(TcpDiscoverySpi.java:4499)
	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi$RingMessageWorker.processMessage(TcpDiscoverySpi.java:2599)
	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpiAdapter$MessageWorkerAdapter.body(TcpDiscoverySpiAdapter.java:954)
	at org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
{code}
{code}
01:14:40,620][ERROR][pool-3-thread-1][GridServiceProcessor] Failed to initialize service (service
will not be deployed): myMultiService
org.apache.ignite.internal.processors.cache.IgniteCacheExistsException: Failed to start cache
(a cache with the same name is already started): myMultiService
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onCacheChangeRequested(GridCacheProcessor.java:1734)
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.access$100(GridCacheProcessor.java:82)
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor$1.apply(GridCacheProcessor.java:538)
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor$1.apply(GridCacheProcessor.java:535)
	at org.apache.ignite.internal.managers.discovery.GridDiscoveryManager$4.onDiscovery(GridDiscoveryManager.java:372)
	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi$RingMessageWorker.processCustomMessage(TcpDiscoverySpi.java:4499)
	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi$RingMessageWorker.processMessage(TcpDiscoverySpi.java:2599)
	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpiAdapter$MessageWorkerAdapter.body(TcpDiscoverySpiAdapter.java:954)
	at org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
{code}

  was:
1. Start two {{ExampleNodeStartup}}s.
2. Run {{ServiceExample}} several times one after another.

Example fails with exceptions:
{code}
>>>
>>> Starting service proxy example.
>>>
[01:27:39,671][ERROR][ignite-#24%sys-null%][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=ab138904c41-22e2e1be-f5dd-413c-899c-d751cc684b09,
jobId=db138904c41-bf48b674-82b9-4b8a-a947-844a027f0ef8, nodeId=bf48b674-82b9-4b8a-a947-844a027f0ef8,
isJobDone=false], jobCtx=GridJobContextImpl [jobId=db138904c41-bf48b674-82b9-4b8a-a947-844a027f0ef8,
attrs={}], node=TcpDiscoveryNode [id=bf48b674-82b9-4b8a-a947-844a027f0ef8, addrs=[2601:9:2500:cc8:8db3:f17a:70af:aae0,
10.0.0.5, 2601:9:2500:cc8:12dd:b1ff:fea8:69b7, 0:0:0:0:0:0:0:1, 127.0.0.1], sockAddrs=[/2601:9:2500:cc8:8db3:f17a:70af:aae0:47501,
/10.0.0.5:47501, /2601:9:2500:cc8:12dd:b1ff:fea8:69b7:47501, /0:0:0:0:0:0:0:1:47501, /127.0.0.1:47501],
discPort=47501, order=2, intOrder=2, loc=false, ver=1.0.0#19691231-sha1:00000000, isClient=false],
ex=class o.a.i.IgniteException: Service node found: myNodeSingletonService, 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:102)
	at org.apache.ignite.internal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:829)
	at org.apache.ignite.internal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:822)
	at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6068)
	at org.apache.ignite.internal.processors.task.GridTaskWorker.result(GridTaskWorker.java:822)
	at org.apache.ignite.internal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:718)
	at org.apache.ignite.internal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:906)
	at org.apache.ignite.internal.processors.task.GridTaskProcessor$JobMessageListener.onMessage(GridTaskProcessor.java:1136)
	at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:664)
	at org.apache.ignite.internal.managers.communication.GridIoManager.access$1500(GridIoManager.java:57)
	at org.apache.ignite.internal.managers.communication.GridIoManager$5.run(GridIoManager.java:627)
	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:744)
Caused by: class org.apache.ignite.IgniteException: Service node found: myNodeSingletonService
	at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.execute(GridClosureProcessor.java:1699)
	at org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:478)
	at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6036)
	at org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:472)
	at org.apache.ignite.internal.processors.job.GridJobWorker.body(GridJobWorker.java:423)
	at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:107)
	at org.apache.ignite.internal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1118)
	at org.apache.ignite.internal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1714)
	... 6 more
Caused by: class org.apache.ignite.internal.processors.service.GridServiceNotFoundException:
Service node found: myNodeSingletonService
	at org.apache.ignite.internal.processors.service.GridServiceProxy$ServiceProxyCallable.call(GridServiceProxy.java:348)
	at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.execute(GridClosureProcessor.java:1696)
	... 13 more
{code}
{code}
[01:27:21,252][ERROR][pool-3-thread-1][GridServiceProcessor] Failed to initialize service
(service will not be deployed): myNodeSingletonService
org.apache.ignite.internal.processors.cache.IgniteCacheExistsException: Failed to start cache
(a cache with the same name is already started): myNodeSingletonService
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onCacheChangeRequested(GridCacheProcessor.java:1734)
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.access$100(GridCacheProcessor.java:82)
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor$1.apply(GridCacheProcessor.java:538)
	at org.apache.ignite.internal.processors.cache.GridCacheProcessor$1.apply(GridCacheProcessor.java:535)
	at org.apache.ignite.internal.managers.discovery.GridDiscoveryManager$4.onDiscovery(GridDiscoveryManager.java:372)
	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi$RingMessageWorker.processCustomMessage(TcpDiscoverySpi.java:4499)
	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi$RingMessageWorker.processMessage(TcpDiscoverySpi.java:2599)
	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpiAdapter$MessageWorkerAdapter.body(TcpDiscoverySpiAdapter.java:954)
	at org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
{code}


> Exceptions when running ServiceExample
> --------------------------------------
>
>                 Key: IGNITE-548
>                 URL: https://issues.apache.org/jira/browse/IGNITE-548
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>    Affects Versions: sprint-2
>            Reporter: Valentin Kulichenko
>            Priority: Blocker
>             Fix For: sprint-2
>
>
> 1. Start two {{ExampleNodeStartup}}s.
> 2. Run {{ServiceExample}} several times one after another.
> Example fails with exceptions:
> {code}
> >>>
> >>> Starting service proxy example.
> >>>
> [01:27:39,671][ERROR][ignite-#24%sys-null%][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=ab138904c41-22e2e1be-f5dd-413c-899c-d751cc684b09,
jobId=db138904c41-bf48b674-82b9-4b8a-a947-844a027f0ef8, nodeId=bf48b674-82b9-4b8a-a947-844a027f0ef8,
isJobDone=false], jobCtx=GridJobContextImpl [jobId=db138904c41-bf48b674-82b9-4b8a-a947-844a027f0ef8,
attrs={}], node=TcpDiscoveryNode [id=bf48b674-82b9-4b8a-a947-844a027f0ef8, addrs=[2601:9:2500:cc8:8db3:f17a:70af:aae0,
10.0.0.5, 2601:9:2500:cc8:12dd:b1ff:fea8:69b7, 0:0:0:0:0:0:0:1, 127.0.0.1], sockAddrs=[/2601:9:2500:cc8:8db3:f17a:70af:aae0:47501,
/10.0.0.5:47501, /2601:9:2500:cc8:12dd:b1ff:fea8:69b7:47501, /0:0:0:0:0:0:0:1:47501, /127.0.0.1:47501],
discPort=47501, order=2, intOrder=2, loc=false, ver=1.0.0#19691231-sha1:00000000, isClient=false],
ex=class o.a.i.IgniteException: Service node found: myNodeSingletonService, 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:102)
> 	at org.apache.ignite.internal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:829)
> 	at org.apache.ignite.internal.processors.task.GridTaskWorker$3.apply(GridTaskWorker.java:822)
> 	at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6068)
> 	at org.apache.ignite.internal.processors.task.GridTaskWorker.result(GridTaskWorker.java:822)
> 	at org.apache.ignite.internal.processors.task.GridTaskWorker.onResponse(GridTaskWorker.java:718)
> 	at org.apache.ignite.internal.processors.task.GridTaskProcessor.processJobExecuteResponse(GridTaskProcessor.java:906)
> 	at org.apache.ignite.internal.processors.task.GridTaskProcessor$JobMessageListener.onMessage(GridTaskProcessor.java:1136)
> 	at org.apache.ignite.internal.managers.communication.GridIoManager.processRegularMessage0(GridIoManager.java:664)
> 	at org.apache.ignite.internal.managers.communication.GridIoManager.access$1500(GridIoManager.java:57)
> 	at org.apache.ignite.internal.managers.communication.GridIoManager$5.run(GridIoManager.java:627)
> 	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:744)
> Caused by: class org.apache.ignite.IgniteException: Service node found: myNodeSingletonService
> 	at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.execute(GridClosureProcessor.java:1699)
> 	at org.apache.ignite.internal.processors.job.GridJobWorker$2.call(GridJobWorker.java:478)
> 	at org.apache.ignite.internal.util.IgniteUtils.wrapThreadLoader(IgniteUtils.java:6036)
> 	at org.apache.ignite.internal.processors.job.GridJobWorker.execute0(GridJobWorker.java:472)
> 	at org.apache.ignite.internal.processors.job.GridJobWorker.body(GridJobWorker.java:423)
> 	at org.apache.ignite.internal.util.worker.GridWorker.run(GridWorker.java:107)
> 	at org.apache.ignite.internal.processors.job.GridJobProcessor.processJobExecuteRequest(GridJobProcessor.java:1118)
> 	at org.apache.ignite.internal.processors.job.GridJobProcessor$JobExecutionListener.onMessage(GridJobProcessor.java:1714)
> 	... 6 more
> Caused by: class org.apache.ignite.internal.processors.service.GridServiceNotFoundException:
Service node found: myNodeSingletonService
> 	at org.apache.ignite.internal.processors.service.GridServiceProxy$ServiceProxyCallable.call(GridServiceProxy.java:348)
> 	at org.apache.ignite.internal.processors.closure.GridClosureProcessor$C2.execute(GridClosureProcessor.java:1696)
> 	... 13 more
> {code}
> {code}
> [01:27:21,252][ERROR][pool-3-thread-1][GridServiceProcessor] Failed to initialize service
(service will not be deployed): myNodeSingletonService
> org.apache.ignite.internal.processors.cache.IgniteCacheExistsException: Failed to start
cache (a cache with the same name is already started): myNodeSingletonService
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onCacheChangeRequested(GridCacheProcessor.java:1734)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.access$100(GridCacheProcessor.java:82)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor$1.apply(GridCacheProcessor.java:538)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor$1.apply(GridCacheProcessor.java:535)
> 	at org.apache.ignite.internal.managers.discovery.GridDiscoveryManager$4.onDiscovery(GridDiscoveryManager.java:372)
> 	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi$RingMessageWorker.processCustomMessage(TcpDiscoverySpi.java:4499)
> 	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi$RingMessageWorker.processMessage(TcpDiscoverySpi.java:2599)
> 	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpiAdapter$MessageWorkerAdapter.body(TcpDiscoverySpiAdapter.java:954)
> 	at org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
> {code}
> {code}
> 01:14:40,620][ERROR][pool-3-thread-1][GridServiceProcessor] Failed to initialize service
(service will not be deployed): myMultiService
> org.apache.ignite.internal.processors.cache.IgniteCacheExistsException: Failed to start
cache (a cache with the same name is already started): myMultiService
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.onCacheChangeRequested(GridCacheProcessor.java:1734)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.access$100(GridCacheProcessor.java:82)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor$1.apply(GridCacheProcessor.java:538)
> 	at org.apache.ignite.internal.processors.cache.GridCacheProcessor$1.apply(GridCacheProcessor.java:535)
> 	at org.apache.ignite.internal.managers.discovery.GridDiscoveryManager$4.onDiscovery(GridDiscoveryManager.java:372)
> 	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi$RingMessageWorker.processCustomMessage(TcpDiscoverySpi.java:4499)
> 	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi$RingMessageWorker.processMessage(TcpDiscoverySpi.java:2599)
> 	at org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpiAdapter$MessageWorkerAdapter.body(TcpDiscoverySpiAdapter.java:954)
> 	at org.apache.ignite.spi.IgniteSpiThread.run(IgniteSpiThread.java:62)
> {code}



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

Mime
View raw message