<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-5507223161490572934.post4913974969105477986..comments</id><updated>2010-09-25T04:31:48.168+08:00</updated><category term='ruby'/><category term='solr'/><category term='mail'/><category term='fp'/><category term='postfix'/><category term='redcar'/><category term='gorm'/><category term='honeycomb'/><category term='port-forwarding'/><category term='grails'/><category term='iphone'/><category term='passenger'/><category term='css'/><category term='spring'/><category term='upstart'/><category term='rails'/><category term='rss'/><category term='rabbitmq'/><category term='tdd'/><category term='JDOM'/><category term='kvm'/><category term='padrino'/><category term='ROME'/><category term='database'/><category term='apache'/><category term='linux'/><category term='sprinkle'/><category term='sunspot'/><category term='google analytics'/><category term='sun+tech+days java'/><category term='scala'/><category term='friendconnect'/><category term='tripoli'/><category term='java'/><category term='mysql'/><category term='deployment'/><category term='Babushka'/><category term='iphone cocoa-touch'/><category term='960grid'/><category term='web framework'/><category term='jvm'/><category term='mod-rails'/><category term='mongodb'/><category term='lift'/><category term='redis jredis groovy'/><category term='flex'/><category term='jquery'/><category term='editor'/><category term='android'/><category term='delayed_job'/><category term='groovy'/><category term='partytime'/><category term='twitter'/><category term='spatial'/><category term='drupal'/><category term='search'/><category term='ubuntu'/><category term='twitter4j'/><category term='blueprint'/><category term='Git Pusshuten'/><title type='text'>Comments on Tropical Software Observations: Grails 1.0.4 "no Session" Error</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tech.favoritemedium.com/feeds/4913974969105477986/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5507223161490572934/4913974969105477986/comments/default'/><link rel='alternate' type='text/html' href='http://tech.favoritemedium.com/2008/12/grails-104-no-session-error.html'/><author><name>Bacchus D</name><uri>http://www.blogger.com/profile/02856305235432641508</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5507223161490572934.post-5051377899132497894</id><published>2010-09-25T04:31:48.168+08:00</published><updated>2010-09-25T04:31:48.168+08:00</updated><title type='text'>There&amp;#39;s a section about this problem in the bo...</title><content type='html'>There&amp;#39;s a section about this problem in the book Grails Persistence with GORM and GSQL ($14 ebook, $20 book).  The section is titled Lazy Initialization and the Grails Session.  The recommended solution is this:&lt;br /&gt;&lt;br /&gt;def hibSession = sessionFactory.currentSession &lt;br /&gt;&lt;br /&gt;user = hibSession.merge(user)  &lt;br /&gt;&lt;br /&gt;I suppose that using the user.refresh or User.get approach from this blog post results in re-reading the object from the DB and  thus losing any changes that have been made to the object.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5507223161490572934/4913974969105477986/comments/default/5051377899132497894'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5507223161490572934/4913974969105477986/comments/default/5051377899132497894'/><link rel='alternate' type='text/html' href='http://tech.favoritemedium.com/2008/12/grails-104-no-session-error.html?showComment=1285360308168#c5051377899132497894' title=''/><author><name>David Gelbart</name><uri>http://www.blogger.com/profile/09930813569213912228</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://tech.favoritemedium.com/2008/12/grails-104-no-session-error.html' ref='tag:blogger.com,1999:blog-5507223161490572934.post-4913974969105477986' source='http://www.blogger.com/feeds/5507223161490572934/posts/default/4913974969105477986' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1378162810'/></entry><entry><id>tag:blogger.com,1999:blog-5507223161490572934.post-3257624799726379119</id><published>2010-09-25T01:49:09.653+08:00</published><updated>2010-09-25T01:49:09.653+08:00</updated><title type='text'>The message thread link above is broken now.  Try ...</title><content type='html'>The message thread link above is broken now.  Try here:&lt;br /&gt;&lt;br /&gt;http://osdir.com/ml/lang.groovy.grails.user/2008-11/msg01092.html</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5507223161490572934/4913974969105477986/comments/default/3257624799726379119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5507223161490572934/4913974969105477986/comments/default/3257624799726379119'/><link rel='alternate' type='text/html' href='http://tech.favoritemedium.com/2008/12/grails-104-no-session-error.html?showComment=1285350549653#c3257624799726379119' title=''/><author><name>David Gelbart</name><uri>http://www.blogger.com/profile/09930813569213912228</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://tech.favoritemedium.com/2008/12/grails-104-no-session-error.html' ref='tag:blogger.com,1999:blog-5507223161490572934.post-4913974969105477986' source='http://www.blogger.com/feeds/5507223161490572934/posts/default/4913974969105477986' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1378162810'/></entry><entry><id>tag:blogger.com,1999:blog-5507223161490572934.post-5518359393930797059</id><published>2010-09-25T01:35:28.545+08:00</published><updated>2010-09-25T01:35:28.545+08:00</updated><title type='text'>Thanks, this is potentially very helpful.  I could...</title><content type='html'>Thanks, this is potentially very helpful.  I couldn&amp;#39;t find this page when Googling the full exception so to help others, here it is: org.hibernate.LazyInitializationException: could not initialize proxy - no Session</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5507223161490572934/4913974969105477986/comments/default/5518359393930797059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5507223161490572934/4913974969105477986/comments/default/5518359393930797059'/><link rel='alternate' type='text/html' href='http://tech.favoritemedium.com/2008/12/grails-104-no-session-error.html?showComment=1285349728545#c5518359393930797059' title=''/><author><name>David Gelbart</name><uri>http://www.blogger.com/profile/09930813569213912228</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://tech.favoritemedium.com/2008/12/grails-104-no-session-error.html' ref='tag:blogger.com,1999:blog-5507223161490572934.post-4913974969105477986' source='http://www.blogger.com/feeds/5507223161490572934/posts/default/4913974969105477986' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1378162810'/></entry></feed>
