{"action":"created","issue":{"url":"https://api.github.com/repos/UdL-EPS-SoftArch/softarch-1617-server/issues/37","repository_url":"https://api.github.com/repos/UdL-EPS-SoftArch/softarch-1617-server","labels_url":"https://api.github.com/repos/UdL-EPS-SoftArch/softarch-1617-server/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/UdL-EPS-SoftArch/softarch-1617-server/issues/37/comments","events_url":"https://api.github.com/repos/UdL-EPS-SoftArch/softarch-1617-server/issues/37/events","html_url":"https://github.com/UdL-EPS-SoftArch/softarch-1617-server/issues/37","id":191834272,"number":37,"title":"Unable to evaluate ... method threw LazyInitializerException","user":{"login":"zurfyx","id":193447,"avatar_url":"https://avatars.githubusercontent.com/u/193447?v=3","gravatar_id":"","url":"https://api.github.com/users/zurfyx","html_url":"https://github.com/zurfyx","followers_url":"https://api.github.com/users/zurfyx/followers","following_url":"https://api.github.com/users/zurfyx/following{/other_user}","gists_url":"https://api.github.com/users/zurfyx/gists{/gist_id}","starred_url":"https://api.github.com/users/zurfyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zurfyx/subscriptions","organizations_url":"https://api.github.com/users/zurfyx/orgs","repos_url":"https://api.github.com/users/zurfyx/repos","events_url":"https://api.github.com/users/zurfyx/events{/privacy}","received_events_url":"https://api.github.com/users/zurfyx/received_events","type":"User","site_admin":false},"labels":[{"id":442644995,"url":"https://api.github.com/repos/UdL-EPS-SoftArch/softarch-1617-server/labels/bug","name":"bug","color":"ee0701","default":true},{"id":442644998,"url":"https://api.github.com/repos/UdL-EPS-SoftArch/softarch-1617-server/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-27T00:22:29Z","updated_at":"2016-11-28T16:56:45Z","closed_at":null,"body":"**Ocurring in:**\r\nhttps://github.com/UdL-EPS-SoftArch/softarch-1617-server/blob/f170a420928150be646fd3454e02082f41f4c37e/src/test/java/cat/udl/eps/softarch/steps/PurchaseStepDefs.java#L51\r\n\r\n**When:**\r\nTrying to retrieve (serialize) fields that are OneToOne, ManyToOne, Collections, and related.\r\n```\r\nAdvertisement advertisement = new Advertisement();\r\nPurchase purchase = new Purchase();\r\npurchase.setAdvertisement(advertisement);\r\nString message = mapper.writeValueAsString(purchase); <-- LazyInitializerException\r\n```\r\n\r\n**Related:**\r\nhttp://stackoverflow.com/questions/13671178/org-hibernate-lazyinitializationexception-could-not-initialize-proxy-no-sessi\r\nhttp://stackoverflow.com/questions/27299235/spring-mvc-hibernate-could-not-initialize-proxy-no-session"},"comment":{"url":"https://api.github.com/repos/UdL-EPS-SoftArch/softarch-1617-server/issues/comments/263326814","html_url":"https://github.com/UdL-EPS-SoftArch/softarch-1617-server/issues/37#issuecomment-263326814","issue_url":"https://api.github.com/repos/UdL-EPS-SoftArch/softarch-1617-server/issues/37","id":263326814,"user":{"login":"rogargon","id":1313870,"avatar_url":"https://avatars.githubusercontent.com/u/1313870?v=3","gravatar_id":"","url":"https://api.github.com/users/rogargon","html_url":"https://github.com/rogargon","followers_url":"https://api.github.com/users/rogargon/followers","following_url":"https://api.github.com/users/rogargon/following{/other_user}","gists_url":"https://api.github.com/users/rogargon/gists{/gist_id}","starred_url":"https://api.github.com/users/rogargon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogargon/subscriptions","organizations_url":"https://api.github.com/users/rogargon/orgs","repos_url":"https://api.github.com/users/rogargon/repos","events_url":"https://api.github.com/users/rogargon/events{/privacy}","received_events_url":"https://api.github.com/users/rogargon/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T16:56:45Z","updated_at":"2016-11-28T16:56:45Z","body":"Are these entities persisted using the corresponding repositories? Otherwise they don't have ids and the serialisation cannot be generated. Consider creating the Advertisement in a separate Given step."}}
{"actor":{"display_login":"rogargon"}}