{"action":"created","issue":{"url":"https://api.github.com/repos/hazelcast/hazelcast-csharp-client/issues/38","labels_url":"https://api.github.com/repos/hazelcast/hazelcast-csharp-client/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/hazelcast/hazelcast-csharp-client/issues/38/comments","events_url":"https://api.github.com/repos/hazelcast/hazelcast-csharp-client/issues/38/events","html_url":"https://github.com/hazelcast/hazelcast-csharp-client/issues/38","id":123949099,"number":38,"title":"Hanging on client creation","user":{"login":"alexvictoor","id":437172,"avatar_url":"https://avatars.githubusercontent.com/u/437172?v=3","gravatar_id":"","url":"https://api.github.com/users/alexvictoor","html_url":"https://github.com/alexvictoor","followers_url":"https://api.github.com/users/alexvictoor/followers","following_url":"https://api.github.com/users/alexvictoor/following{/other_user}","gists_url":"https://api.github.com/users/alexvictoor/gists{/gist_id}","starred_url":"https://api.github.com/users/alexvictoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexvictoor/subscriptions","organizations_url":"https://api.github.com/users/alexvictoor/orgs","repos_url":"https://api.github.com/users/alexvictoor/repos","events_url":"https://api.github.com/users/alexvictoor/events{/privacy}","received_events_url":"https://api.github.com/users/alexvictoor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-26T21:25:36Z","updated_at":"2015-12-26T22:07:50Z","closed_at":null,"body":"Hello\r\nIf I start a dotnet client prior to any hazelcast node, then start an hazelcast instance, the client connects  but never completes the initialization and hangs forever.\r\nThe code used on the dotnet side:\r\n\r\n            var config = new ClientConfig();\r\n            config.GetNetworkConfig().AddAddress(new[] { \"127.0.0.1:5701\" });\r\n            var client = HazelcastClient.NewHazelcastClient(config); // stay here for ever\r\n\r\nTo start an hazelcast instance I simply use the following command:\r\n\r\n      start java -jar hazelcast-3.6-RC2-20151203.155725-88.jar\r\n\r\nThe logs that I get on the dotnet side:\r\n\r\n    22:19:03.772 [FINEST] - [:8] Hazelcast.Client.Spi.ClientClusterService: Trying to connect to Address[127.0.0.1]:5701\r\n    22:19:03.772 [FINEST] - [:8] Hazelcast.Client.Connection.IClientConnectionManager: Creating new connection for Address[127.0.0.1]:5701 with id 0\r\n    22:19:03.784 [FINEST] - [:8] Hazelcast.Client.Spi.ClientClusterService: Authenticating against the owner node\r\n    // nothing after that\r\n\r\nLet me know if I have missed anything or if you need more information"},"comment":{"url":"https://api.github.com/repos/hazelcast/hazelcast-csharp-client/issues/comments/167367241","html_url":"https://github.com/hazelcast/hazelcast-csharp-client/issues/38#issuecomment-167367241","issue_url":"https://api.github.com/repos/hazelcast/hazelcast-csharp-client/issues/38","id":167367241,"user":{"login":"alexvictoor","id":437172,"avatar_url":"https://avatars.githubusercontent.com/u/437172?v=3","gravatar_id":"","url":"https://api.github.com/users/alexvictoor","html_url":"https://github.com/alexvictoor","followers_url":"https://api.github.com/users/alexvictoor/followers","following_url":"https://api.github.com/users/alexvictoor/following{/other_user}","gists_url":"https://api.github.com/users/alexvictoor/gists{/gist_id}","starred_url":"https://api.github.com/users/alexvictoor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexvictoor/subscriptions","organizations_url":"https://api.github.com/users/alexvictoor/orgs","repos_url":"https://api.github.com/users/alexvictoor/repos","events_url":"https://api.github.com/users/alexvictoor/events{/privacy}","received_events_url":"https://api.github.com/users/alexvictoor/received_events","type":"User","site_admin":false},"created_at":"2015-12-26T22:07:50Z","updated_at":"2015-12-26T22:07:50Z","body":"Hello again,\r\nRunning EA3 on both sides the behavior is a little bit different, call to HazelcastClient.NewHazelcastClient() raise an exception:\r\n\r\n        System.InvalidOperationException was unhandled\r\n          _HResult=-2146233079\r\n          _message=Unable to connect to any address in the config! The following addresses were tried:127.0.0.1:5701\r\n          HResult=-2146233079\r\n          IsTransient=false\r\n          Message=Unable to connect to any address in the config! The following addresses were tried:127.0.0.1:5701\r\n          Source=Hazelcast.Net\r\n          StackTrace:\r\n               à Hazelcast.Client.Spi.ClientClusterService.ConnectToOne()\r\n               à Hazelcast.Client.Spi.ClientClusterService.ConnectToCluster()\r\n               à Hazelcast.Client.Spi.ClientClusterService.Start()\r\n               à Hazelcast.Client.HazelcastClient.Start()\r\n               à Hazelcast.Client.HazelcastClient.NewHazelcastClient(ClientConfig config)\r\n               à HzSource.Program.Main(String[] args) dans c:\\work\\dotnetsandbox\\HzSandbox\\HzSource\\Program.cs:ligne 24\r\n               à System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)\r\n               à System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)\r\n               à Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n               à System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n               à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n               à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)\r\n               à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)\r\n               à System.Threading.ThreadHelper.ThreadStart()\r\n          InnerException: \r\n\r\nOn the hazelcast instance, I have also an exception:\r\n\r\n                INFOS: [192.168.0.16]:5701 [dev] [3.6-EA3] Accepting socket connection from /127.0.0.1:49397\r\n                dÚc. 26, 2015 11:01:55 PM com.hazelcast.nio.tcp.TcpIpConnectionManager\r\n                INFOS: [192.168.0.16]:5701 [dev] [3.6-EA3] Established socket connection between /127.0.0.1:5701 and /127.0.0.1:49397\r\n                dÚc. 26, 2015 11:01:55 PM com.hazelcast.client.impl.protocol.task.AuthenticationMessageTask\r\n                GRAVE: [192.168.0.16]:5701 [dev] [3.6-EA3] Hazelcast instance is not ready yet!\r\n                com.hazelcast.core.HazelcastInstanceNotActiveException: Hazelcast instance is not ready yet!\r\n                        at com.hazelcast.client.impl.protocol.task.AbstractMessageTask.initializeAndProcessMessage(AbstractMessageTask.java:115)\r\n                        at com.hazelcast.client.impl.protocol.task.AbstractMessageTask.run(AbstractMessageTask.java:96)\r\n                        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)\r\n                        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)\r\n                        at java.lang.Thread.run(Unknown Source)\r\n                        at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:76)\r\n                        at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:92)\r\n\r\n                dÚc. 26, 2015 11:01:55 PM com.hazelcast.nio.tcp.TcpIpConnection\r\n                INFOS: [192.168.0.16]:5701 [dev] [3.6-EA3] Connection [/127.0.0.1:49397] lost. Reason: java.io.EOFException[Remote socket closed!]\r\n                dÚc. 26, 2015 11:01:58 PM com.hazelcast.cluster.impl.MulticastJoiner\r\n                INFOS: [192.168.0.16]:5701 [dev] [3.6-EA3]\r\n\r\n\r\n                Members [1] {\r\n                        Member [192.168.0.16]:5701 this\r\n                }\r\n\r\n                dÚc. 26, 2015 11:01:58 PM com.hazelcast.core.LifecycleService\r\n                INFOS: [192.168.0.16]:5701 [dev] [3.6-EA3] Address[192.168.0.16]:5701 is STARTED\r\n\r\n"}}