.Net Client Throws System.ObjectDisposedException: Cannot Access A Disposed Object For onCacheDown Event (Doc ID 2202910.1)

Last updated on MARCH 29, 2017

Applies to:

Oracle Coherence - Version 12.2.1.1.0 and later
Information in this document applies to any platform.

Symptoms

On : 12.2.1.1.0 version, Oracle Coherence.NET

.NET client subscribed to OnCacheDown event that repeatedly attempts to reconnect to the cache. When one of the proxy server is restarted, .NET client throws below exception
 

ERROR
2016-09-12 14:40:42,280 [Tangosol.Util.Logging.Logger] ERROR - (Error) (ExtendTcpCacheService:TcpInitiator:Tangosol.Util.Daemon.QueueProcessor.Service.Service+EventDispatcher):
System.ObjectDisposedException: Cannot access a disposed object.
Object name: 'System.Net.Sockets.Socket'.
at System.Net.Sockets.Socket.get_LocalEndPoint()
at Tangosol.Net.Messaging.Impl.TcpConnection.GetDescription() in c:\hudson\workspace\Coh-NET-12.2.1\dev\coherence.net\src\Coherence\Net\Messaging\Impl\TcpConnection.cs:line 33
at Tangosol.Net.Messaging.Impl.Connection.ToString() in c:\hudson\workspace\Coh-NET-12.2.1\dev\coherence.net\src\Coherence\Net\Messaging\Impl\Connection.cs:line 1583
at Tangosol.Net.Messaging.ConnectionEventArgs.GetDescription() in c:\hudson\workspace\Coh-NET-12.2.1\dev\coherence.net\src\Coherence\Net\Messaging\ConnectionEventArgs.cs:line 134
at Tangosol.Net.Messaging.ConnectionEventArgs.ToString() in c:\hudson\workspace\Coh-NET-12.2.1\dev\coherence.net\src\Coherence\Net\Messaging\ConnectionEventArgs.cs:line 115
at System.String.Concat(Object arg0, Object arg1, Object arg2)
at Tangosol.Util.Daemon.QueueProcessor.Service.Service.EventDispatcher.OnNotify() in c:\hudson\workspace\Coh-NET-12.2.1\dev\coherence.net\src\Coherence\Util\Daemon\QueueProcessor\Service\Service.cs:line 1533
at Tangosol.Util.Daemon.Daemon.Run() in c:\hudson\workspace\Coh-NET-12.2.1\dev\coherence.net\src\Coherence\Util\Daemon\Daemon.cs:line 62

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms