We're updating the issue view to help you get more done. 

Fix blocking call when closing session and running in a cluster

Description

com.tangosol.util.AssertionException: poll() is a blocking call and cannot be called on the Service thread
at com.tangosol.coherence.Component._assertFailed(Component.CDB:12)
at com.tangosol.coherence.Component._assert(Component.CDB:3)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.poll(Service.CDB:4)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.poll(Service.CDB:18)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.InvocationService.query(InvocationService.CDB:17)
at com.tangosol.coherence.component.util.safeService.SafeInvocationService.query(SafeInvocationService.CDB:1)
at com.jivesoftware.util.cache.CoherenceClusteredCacheFactory.doSynchronousClusterTask(CoherenceClusteredCacheFactory.java:274)
at org.jivesoftware.util.cache.CacheFactory.doSynchronousClusterTask(CacheFactory.java:502)
at com.jivesoftware.openfire.session.RemoteSession.doSynchronousClusterTask(RemoteSession.java:162)
at com.jivesoftware.openfire.session.RemoteClientSession.getActiveList(RemoteClientSession.java:47)
at org.jivesoftware.openfire.roster.Roster.broadcastPresence(Roster.java:568)
at org.jivesoftware.openfire.handler.PresenceUpdateHandler.broadcastUpdate(PresenceUpdateHandler.java:281)
at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:135)
at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:110)
at org.jivesoftware.openfire.handler.PresenceUpdateHandler.process(PresenceUpdateHandler.java:174)
at org.jivesoftware.openfire.PresenceRouter.handle(PresenceRouter.java:133)
at org.jivesoftware.openfire.PresenceRouter.route(PresenceRouter.java:69)
at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:75)
at org.jivesoftware.openfire.SessionManager$ClientSessionListener.onConnectionClose(SessionManager.java:1116)
at org.jivesoftware.openfire.net.VirtualConnection.notifyCloseListeners(VirtualConnection.java:190)
at org.jivesoftware.openfire.net.VirtualConnection.close(VirtualConnection.java:166)
at org.jivesoftware.openfire.http.HttpSession.close(HttpSession.java:159)
at com.jivesoftware.openfire.session.RemoteSessionTask.run(RemoteSessionTask.java:65)
at com.jivesoftware.openfire.session.ClientSessionTask.run(ClientSessionTask.java:46)
at com.jivesoftware.util.cache.CoherenceClusteredCacheFactory$1.run(CoherenceClusteredCacheFactory.java:321)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.InvocationService.onInvocationMessage(InvocationService.CDB:6)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.InvocationService$InvocationMessage.onReceived(InvocationService.CDB:32)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.onMessage(Service.CDB:9)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.onNotify(Service.CDB:123)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:35)
at java.lang.Thread.run(Unknown Source)

Environment

None

Acceptance Test - Entry

1. Start 2 cluster nodes
2. Connect client_1 to node_1
3. Connect client_2 to node_2 and make sure that they have a subscription of type BOTH
4. From the admin console of node_2 kill the session of client_1

Fixed

Assignee

Gaston Dombiak

Reporter

Gaston Dombiak

Labels

None

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Affects versions

Priority

Major
Configure