{"id":72,"date":"2006-11-13T16:11:23","date_gmt":"2006-11-13T21:11:23","guid":{"rendered":"http:\/\/stein.everybody.org\/brain\/acegi-hibernate-lazyinitializationexception\/"},"modified":"2011-03-10T10:57:30","modified_gmt":"2011-03-10T15:57:30","slug":"acegi-hibernate-lazyinitializationexception","status":"publish","type":"post","link":"https:\/\/jeremystein.com\/brain\/acegi-hibernate-lazyinitializationexception\/","title":{"rendered":"Acegi Hibernate LazyInitializationException"},"content":{"rendered":"<p>org.hibernate.LazyInitializationException: failed to lazily initialize a collection of [type]: [class].[property], no session or session was closed<\/p>\n<p>I got this exception upon login because I had declared the OpenSessionInViewFilter <em>after<\/em> my FilterToBeanProxy in web.xml.  When I put OpenSessionInViewFilter first, all was well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>org.hibernate.LazyInitializationException: failed to lazily initialize a collection of [type]: [class].[property], no session or session was closed I got this exception upon login because I had declared the OpenSessionInViewFilter after my FilterToBeanProxy in web.xml. When I put OpenSessionInViewFilter first, all was well.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[],"class_list":["post-72","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/72","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/comments?post=72"}],"version-history":[{"count":0,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/posts\/72\/revisions"}],"wp:attachment":[{"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/media?parent=72"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/categories?post=72"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jeremystein.com\/brain\/wp-json\/wp\/v2\/tags?post=72"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}