{"action":"created","issue":{"url":"https://api.github.com/repos/spring-projects/spring-session/issues/995","repository_url":"https://api.github.com/repos/spring-projects/spring-session","labels_url":"https://api.github.com/repos/spring-projects/spring-session/issues/995/labels{/name}","comments_url":"https://api.github.com/repos/spring-projects/spring-session/issues/995/comments","events_url":"https://api.github.com/repos/spring-projects/spring-session/issues/995/events","html_url":"https://github.com/spring-projects/spring-session/pull/995","id":296752779,"number":995,"title":"Initialize SessionRepository lazy to avoid circular dependcies","user":{"login":"mld-ger","id":5991815,"avatar_url":"https://avatars0.githubusercontent.com/u/5991815?v=4","gravatar_id":"","url":"https://api.github.com/users/mld-ger","html_url":"https://github.com/mld-ger","followers_url":"https://api.github.com/users/mld-ger/followers","following_url":"https://api.github.com/users/mld-ger/following{/other_user}","gists_url":"https://api.github.com/users/mld-ger/gists{/gist_id}","starred_url":"https://api.github.com/users/mld-ger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mld-ger/subscriptions","organizations_url":"https://api.github.com/users/mld-ger/orgs","repos_url":"https://api.github.com/users/mld-ger/repos","events_url":"https://api.github.com/users/mld-ger/events{/privacy}","received_events_url":"https://api.github.com/users/mld-ger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"vpavic","id":1149230,"avatar_url":"https://avatars1.githubusercontent.com/u/1149230?v=4","gravatar_id":"","url":"https://api.github.com/users/vpavic","html_url":"https://github.com/vpavic","followers_url":"https://api.github.com/users/vpavic/followers","following_url":"https://api.github.com/users/vpavic/following{/other_user}","gists_url":"https://api.github.com/users/vpavic/gists{/gist_id}","starred_url":"https://api.github.com/users/vpavic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpavic/subscriptions","organizations_url":"https://api.github.com/users/vpavic/orgs","repos_url":"https://api.github.com/users/vpavic/repos","events_url":"https://api.github.com/users/vpavic/events{/privacy}","received_events_url":"https://api.github.com/users/vpavic/received_events","type":"User","site_admin":false},"assignees":[{"login":"vpavic","id":1149230,"avatar_url":"https://avatars1.githubusercontent.com/u/1149230?v=4","gravatar_id":"","url":"https://api.github.com/users/vpavic","html_url":"https://github.com/vpavic","followers_url":"https://api.github.com/users/vpavic/followers","following_url":"https://api.github.com/users/vpavic/following{/other_user}","gists_url":"https://api.github.com/users/vpavic/gists{/gist_id}","starred_url":"https://api.github.com/users/vpavic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpavic/subscriptions","organizations_url":"https://api.github.com/users/vpavic/orgs","repos_url":"https://api.github.com/users/vpavic/repos","events_url":"https://api.github.com/users/vpavic/events{/privacy}","received_events_url":"https://api.github.com/users/vpavic/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-02-13T14:18:57Z","updated_at":"2018-02-15T07:06:59Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/spring-projects/spring-session/pulls/995","html_url":"https://github.com/spring-projects/spring-session/pull/995","diff_url":"https://github.com/spring-projects/spring-session/pull/995.diff","patch_url":"https://github.com/spring-projects/spring-session/pull/995.patch"},"body":"Hi,\r\n\r\nI got a circular dependency issue using the `AbstractSessionWebSocketMessageBrokerConfigurer` together with Spring-Session-jdbc:\r\n\r\n```\r\n┌─────┐\r\n|  entityManagerFactory\r\n↑     ↓\r\n|  webSocketBrokerConfig (field private org.springframework.session.SessionRepository org.springframework.session.web.socket.config.annotation.AbstractSessionWebSocketMessageBrokerConfigurer.sessionRepository)\r\n↑     ↓\r\n|  sessionRepository defined in class path resource [org/springframework/boot/autoconfigure/session/JdbcSessionConfiguration$SpringBootJdbcHttpSessionConfiguration.class]\r\n↑     ↓\r\n|  transactionManager defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]\r\n↑     ↓\r\n|  webSocketRegistryListener\r\n└─────┘\r\n```\r\n\r\nInitializing the `SessionRepository` lazy fixed the problem for me."},"comment":{"url":"https://api.github.com/repos/spring-projects/spring-session/issues/comments/365842389","html_url":"https://github.com/spring-projects/spring-session/pull/995#issuecomment-365842389","issue_url":"https://api.github.com/repos/spring-projects/spring-session/issues/995","id":365842389,"user":{"login":"vpavic","id":1149230,"avatar_url":"https://avatars1.githubusercontent.com/u/1149230?v=4","gravatar_id":"","url":"https://api.github.com/users/vpavic","html_url":"https://github.com/vpavic","followers_url":"https://api.github.com/users/vpavic/followers","following_url":"https://api.github.com/users/vpavic/following{/other_user}","gists_url":"https://api.github.com/users/vpavic/gists{/gist_id}","starred_url":"https://api.github.com/users/vpavic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vpavic/subscriptions","organizations_url":"https://api.github.com/users/vpavic/orgs","repos_url":"https://api.github.com/users/vpavic/repos","events_url":"https://api.github.com/users/vpavic/events{/privacy}","received_events_url":"https://api.github.com/users/vpavic/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T07:06:59Z","updated_at":"2018-02-15T07:06:59Z","author_association":"MEMBER","body":"Thanks for the report @mld-ger.\r\n\r\nI was unable to reproduce this problem with a simple app that uses Spring Boot, Spring Session JDBC and WebSockets. Can you provide a sample app to reproduce this?"}}
{"actor":{"display_login":"vpavic"}}