title: (failed to lazily initialize a collection, no session or session was closed) error in quartz-0.4.2 in grails 1.3.7
body: <p><strong>Job</strong></p>
  
  <pre><code> class PicSchedulerJob {
          def myDataService
          def springSecurityService
          static triggers = {
              simple name:'picsJob', startDelay:1000,repeatInterval:30*60*1000 
          }
          def group = "icsJobGroup"
  
          def execute() {
  
              def userList=User.list()
              userList?.each{User user-&gt;  
                  def fullList= Album.findAllByUser(user) 
                  springSecurityService.reauthenticate(user.username)
                  fullList?.each{Album a-&gt;
                      myDataService.removePicsFilter( a)          
                  }
  
              }
          }
      }
  </code></pre>
  
  <p><strong>Method:</strong></p>
  
  <pre><code>def removePicsFilter(Album a){
          def tempList=a.photo
          int siz=tempList.size()?:0
          for(int i=0;i&lt;siz;i++)  {
              Photo photodb=tempList[i]
              PhotoConnection photoConnection=PhotoConnection.findByPhoto(photodb)
                  photoConnection?.tags.each{
                      Tag t=Tag.get(it.id)
                      t.delete()
                      }
  
  
          }
          a.save(validate:true,flush:true)
      }
  </code></pre>
  
  <p>Error:2013-12-06 20:20:59,618 [quartzScheduler_Worker-5] ERROR hibernate.LazyInitializationException  - failed to lazily initialize a collection, no session or session was closed
  org.hibernate.LazyInitializationException: failed to lazily initialize a collection, no session or session was closed
      at org.hibernate.collection.AbstractPersistentCollection.throwLazyInitializationException(AbstractPersistentCollection.java:380)</p>
  
  <p><strong>Job is quartz job code, method code called by job and its error is the error i am facing..i also try the code with Album.withTransaction and also Album.withSession but not able to fix it. Pls guide me on this</strong></p>