{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-session/issues/339","labels_url":"https://api.github.com/repos/spring-projects/spring-session/issues/339/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-session/issues/339/comments","events_url":"https://api.github.com/repos/spring-projects/spring-session/issues/339/events","html_url":"https://github.com/spring-projects/spring-session/issues/339","id":128938544,"number":339,"title":"HazelcastHttpSessionConfiguration is only compatible with Embedded HazelcastInstance","user":{"login":"sc-moonlight","id":12866180,"avatar_url":"https://avatars.githubusercontent.com/u/12866180?v=3","gravatar_id":"","url":"https://api.github.com/users/sc-moonlight","html_url":"https://github.com/sc-moonlight","followers_url":"https://api.github.com/users/sc-moonlight/followers","following_url":"https://api.github.com/users/sc-moonlight/following{/other_user}","gists_url":"https://api.github.com/users/sc-moonlight/gists{/gist_id}","starred_url":"https://api.github.com/users/sc-moonlight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sc-moonlight/subscriptions","organizations_url":"https://api.github.com/users/sc-moonlight/orgs","repos_url":"https://api.github.com/users/sc-moonlight/repos","events_url":"https://api.github.com/users/sc-moonlight/events{/privacy}","received_events_url":"https://api.github.com/users/sc-moonlight/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spring-projects/spring-session/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/spring-projects/spring-session/milestones/7","html_url":"https://github.com/spring-projects/spring-session/milestones/1.1.0%20RC1","labels_url":"https://api.github.com/repos/spring-projects/spring-session/milestones/7/labels","id":1404941,"number":7,"title":"1.1.0 RC1","description":"","creator":{"login":"rwinch","id":362503,"avatar_url":"https://avatars.githubusercontent.com/u/362503?v=3","gravatar_id":"","url":"https://api.github.com/users/rwinch","html_url":"https://github.com/rwinch","followers_url":"https://api.github.com/users/rwinch/followers","following_url":"https://api.github.com/users/rwinch/following{/other_user}","gists_url":"https://api.github.com/users/rwinch/gists{/gist_id}","starred_url":"https://api.github.com/users/rwinch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwinch/subscriptions","organizations_url":"https://api.github.com/users/rwinch/orgs","repos_url":"https://api.github.com/users/rwinch/repos","events_url":"https://api.github.com/users/rwinch/events{/privacy}","received_events_url":"https://api.github.com/users/rwinch/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":15,"state":"open","created_at":"2015-11-10T17:11:58Z","updated_at":"2016-01-30T02:42:00Z","due_on":"2016-02-04T06:00:00Z","closed_at":null},"comments":19,"created_at":"2016-01-26T20:50:45Z","updated_at":"2016-02-01T01:00:53Z","closed_at":null,"body":"I could be missing something, but here's what I'm seeing.  I'm not sure if this can really be fixed, or if it just needs to be documented better that HazelcastHttpSessionConfiguration does not work for out of process Hazelcast server.\r\n\r\nI enabled HazelcastHttpSessionConfiguration, and it works fine in a local profile that uses an embedded Hazelcast Instance.  However, when I switch to a profile that connects to a standalone Hazelcast instance, I get an exception thrown.\r\n\r\nI'm setting up my hazelcast instance with this api:\r\n\r\n```\r\n    public static HazelcastInstance newHazelcastClient(ClientConfig config);\r\n```\r\n\r\nThe first line in HazelcastHttpSessionConfiguration.configureSessionMap()  is \r\n\r\n```\r\n\t\tMapConfig sessionMapConfig = hazelcastInstance.getConfig().getMapConfig(sessionMapName);\r\n```\r\n\r\nthen getConfig() throws this exception:\r\n\r\n```\r\nCaused by: java.lang.UnsupportedOperationException: Client cannot access cluster config!\r\n          at com.hazelcast.client.impl.HazelcastClientInstanceImpl.getConfig(HazelcastClientInstanceImpl.java:278) ~[hazelcast-client-3.5.4.jar:3.5.4]\r\n        at com.hazelcast.client.impl.HazelcastClientProxy.getConfig(HazelcastClientProxy.java:78) ~[hazelcast-client-3.5.4.jar:3.5.4]\r\n        at org.springframework.session.hazelcast.config.annotation.web.http.HazelcastHttpSessionConfiguration.configureSessionMap(HazelcastHttpSessionConfiguration.java:98) ~[spring-session-1.1.0.M1.jar:na]\r\n        at org.springframework.session.hazelcast.config.annotation.web.http.HazelcastHttpSessionConfiguration.sessionRepository(HazelcastHttpSessionConfiguration.java:70) ~[spring-session-1.1.0.M1.jar:na]\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-session/issues/comments/177679152","html_url":"https://github.com/spring-projects/spring-session/issues/339#issuecomment-177679152","issue_url":"https://api.github.com/repos/spring-projects/spring-session/issues/339","id":177679152,"user":{"login":"shakuzen","id":8924140,"avatar_url":"https://avatars.githubusercontent.com/u/8924140?v=3","gravatar_id":"","url":"https://api.github.com/users/shakuzen","html_url":"https://github.com/shakuzen","followers_url":"https://api.github.com/users/shakuzen/followers","following_url":"https://api.github.com/users/shakuzen/following{/other_user}","gists_url":"https://api.github.com/users/shakuzen/gists{/gist_id}","starred_url":"https://api.github.com/users/shakuzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shakuzen/subscriptions","organizations_url":"https://api.github.com/users/shakuzen/orgs","repos_url":"https://api.github.com/users/shakuzen/repos","events_url":"https://api.github.com/users/shakuzen/events{/privacy}","received_events_url":"https://api.github.com/users/shakuzen/received_events","type":"User","site_admin":false},"created_at":"2016-02-01T01:00:53Z","updated_at":"2016-02-01T01:00:53Z","body":"@manderson23 \r\n\r\nI am fine reviewing or making the changes. I don't think I will have time today (Monday Japan time), but I probably could take a stab at making the changes tomorrow (Tuesday Japan time). If you have availability Monday or Tuesday and want to make the changes, just let me know. Otherwise I'll try to work on it Tuesday. We might need a day or two for review and additional changes, so if we want it done this week, Tuesday is probably the latest we want to start."}}