{"action":"created","issue":{"url":"https://api.github.com/repos/hazelcast/hazelcast/issues/8837","repository_url":"https://api.github.com/repos/hazelcast/hazelcast","labels_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/8837/labels{/name}","comments_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/8837/comments","events_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/8837/events","html_url":"https://github.com/hazelcast/hazelcast/issues/8837","id":174944883,"number":8837,"title":"DataSerializableFactory[-2] is already registered! com.hazelcast.partition.PartitionDataSerializerHook","user":{"login":"ohadbehore","id":10706781,"avatar_url":"https://avatars.githubusercontent.com/u/10706781?v=3","gravatar_id":"","url":"https://api.github.com/users/ohadbehore","html_url":"https://github.com/ohadbehore","followers_url":"https://api.github.com/users/ohadbehore/followers","following_url":"https://api.github.com/users/ohadbehore/following{/other_user}","gists_url":"https://api.github.com/users/ohadbehore/gists{/gist_id}","starred_url":"https://api.github.com/users/ohadbehore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohadbehore/subscriptions","organizations_url":"https://api.github.com/users/ohadbehore/orgs","repos_url":"https://api.github.com/users/ohadbehore/repos","events_url":"https://api.github.com/users/ohadbehore/events{/privacy}","received_events_url":"https://api.github.com/users/ohadbehore/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-04T11:45:54Z","updated_at":"2016-09-04T12:01:00Z","closed_at":null,"body":"I tried to run the following code:\r\n\r\nHazelcastInstance hz = null;\r\n\r\n\t\ttry {\r\n\t\t\thz = Hazelcast.newHazelcastInstance();\r\n\t\t\tAddress localMemberInstance = hz.getCluster().getLocalMember().getAddress();\r\n\t\t\tSet<Member> allMembers = hz.getCluster().getMembers();\r\n\t\t\tfor (Member currMember : allMembers) {\r\n\t\t\t\tif (localMemberInstance.getHost().equals(currMember.getAddress().getHost()) && localMemberInstance.getPort() == currMember.getAddress().getPort() ) {\r\n\t\t\t\t\tCacheLogger.log(Level.ERROR, \"*Local Hazelcast Server IP=\" + localMemberInstance.getHost() + \" , port=\" + localMemberInstance.getPort() + \", ID=\" + localMemberInstance.getId());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tCacheLogger.log(Level.ERROR, \"Remote Hazelcast Server IP=\" + currMember.getAddress().getHost() + \" , port=\" + currMember.getAddress().getPort() + \", ID=\" + currMember.getAddress().getId());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\nAnd I got the following exception:\r\nINFO: Loading 'hazelcast.xml' from classpath.\r\njava.lang.IllegalArgumentException: DataSerializableFactory[-2] is already registered! com.hazelcast.partition.PartitionDataSerializerHook$1@1a18644 -> com.hazelcast.internal.partition.impl.PartitionDataSerializerHook$1@5acf93bb\r\n\tat com.hazelcast.internal.serialization.impl.DataSerializableSerializer.register(DataSerializableSerializer.java:87)\r\n\tat com.hazelcast.internal.serialization.impl.DataSerializableSerializer.<init>(DataSerializableSerializer.java:66)\r\n\tat com.hazelcast.internal.serialization.impl.SerializationServiceV1.<init>(SerializationServiceV1.java:94)\r\n\tat com.hazelcast.internal.serialization.impl.DefaultSerializationServiceBuilder.createSerializationService(DefaultSerializationServiceBuilder.java:264)\r\n\tat com.hazelcast.internal.serialization.impl.DefaultSerializationServiceBuilder.build(DefaultSerializationServiceBuilder.java:218)\r\n\tat com.hazelcast.internal.serialization.impl.DefaultSerializationServiceBuilder.build(DefaultSerializationServiceBuilder.java:46)\r\n\tat com.hazelcast.instance.DefaultNodeExtension.createSerializationService(DefaultNodeExtension.java:126)\r\n\tat com.hazelcast.instance.Node.<init>(Node.java:181)\r\n\tat com.hazelcast.instance.HazelcastInstanceImpl.createNode(HazelcastInstanceImpl.java:155)\r\n\tat com.hazelcast.instance.HazelcastInstanceImpl.<init>(HazelcastInstanceImpl.java:126)\r\n\tat com.hazelcast.instance.HazelcastInstanceFactory.constructHazelcastInstance(HazelcastInstanceFactory.java:218)\r\n\tat com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:176)\r\n\tat com.hazelcast.instance.HazelcastInstanceFactory.newHazelcastInstance(HazelcastInstanceFactory.java:126)\r\n\tat com.hazelcast.core.Hazelcast.newHazelcastInstance(Hazelcast.java:87)\r\n\tat com.unisfair.hazelcastinstance.HazelcastInstanceServerMain.main(HazelcastInstanceServerMain.java:26)\r\n\r\n\r\n\r\nI have to mention that the exception occurred when I changed the hazelcast jar version from hazelcast 3.6 to hazelcast 3.7.\r\n\r\nI attached the hazelcast.xml configuration file.\r\n\r\nDoes anyone have an idea what is the issue here?\r\n\r\n[hazelcast_with_issue_version_3_7.zip](https://github.com/hazelcast/hazelcast/files/453916/hazelcast_with_issue_version_3_7.zip)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hazelcast/hazelcast/issues/comments/244599395","html_url":"https://github.com/hazelcast/hazelcast/issues/8837#issuecomment-244599395","issue_url":"https://api.github.com/repos/hazelcast/hazelcast/issues/8837","id":244599395,"user":{"login":"ohadbehore","id":10706781,"avatar_url":"https://avatars.githubusercontent.com/u/10706781?v=3","gravatar_id":"","url":"https://api.github.com/users/ohadbehore","html_url":"https://github.com/ohadbehore","followers_url":"https://api.github.com/users/ohadbehore/followers","following_url":"https://api.github.com/users/ohadbehore/following{/other_user}","gists_url":"https://api.github.com/users/ohadbehore/gists{/gist_id}","starred_url":"https://api.github.com/users/ohadbehore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ohadbehore/subscriptions","organizations_url":"https://api.github.com/users/ohadbehore/orgs","repos_url":"https://api.github.com/users/ohadbehore/repos","events_url":"https://api.github.com/users/ohadbehore/events{/privacy}","received_events_url":"https://api.github.com/users/ohadbehore/received_events","type":"User","site_admin":false},"created_at":"2016-09-04T12:01:00Z","updated_at":"2016-09-04T12:01:00Z","body":"I'm running a simple application from eclipse. And it has only hazelcast-all-3.7.jar\r\nThere are no other versions in the classpath."}}
{"actor":{"display_login":"ohadbehore"}}