Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.InterruptedException: sleep interrupted upon MemberLeft

878787Jul 28 2011
Hi guys,

I've encountered this exception occasionally when a member left my distributed cluster. Below is the exception and my code:

2011-07-28 09:48:04.194 Oracle Coherence GE 3.3.1/389 <D5> (thread=DistributedCache:DistributedCacheService,$
(Wrapped) java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at com.tangosol.coherence.component.net.Cluster.ensureStopped(Cluster.CDB:12)
at com.tangosol.coherence.component.util.SafeCluster.ensureRunningCluster(SafeCluster.CDB:21)
at com.tangosol.coherence.component.util.SafeCluster.getRunningCluster(SafeCluster.CDB:1)
at com.tangosol.coherence.component.util.SafeCluster.getMemberSet(SafeCluster.CDB:1)
at com.abc.manager.impl.CacheManagerCoherence$MemberListener.memberLeft(Ca$
at com.tangosol.net.MemberEvent.dispatch(MemberEvent.java:151)
at com.tangosol.coherence.component.util.SafeService.translateEvent(SafeService.CDB:13)
at com.tangosol.coherence.component.util.SafeService.memberLeft(SafeService.CDB:1)
at com.tangosol.net.MemberEvent.dispatch(MemberEvent.java:151)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service$DispatchMemberEvent.run(Servi$
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service$EventDispatcher.onNotify(Serv$
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:35)
at java.lang.Thread.run(Thread.java:619)


public void memberLeft(MemberEvent event) {
try {
Iterator membersIterator = CacheFactory.getCluster().getMemberSet().iterator();
while (membersIterator.hasNext()) {
Member member = (Member) membersIterator.next();
if (member.getMemberName().startsWith("GUI"))
return;
}

log.info("system paused (no GUI running)");
...................

} catch(Exception e) {
e.printStackTrace();
}
}


I was using 3.3.1 when this error happened. I just upgraded to 3.7 this week. However, I am not sure if the upgrade will solve this issue and there is no way for me to verify because, like I said earlier, this issue happens occasionally. Can someone please help me?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 25 2011
Added on Jul 28 2011
0 comments
944 views