org.hibernate.LazyInitializationException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • If the cross repository index requires indexing (eg. during an upgrade), and you have changeset comments, the indexing process will throw a LazyInitializationException: {code} 2013-01-23 14:46:24,729 ERROR - Problem processing revisions from repo openidm due to class org.hibernate.LazyInitializationException - could not initialize proxy - no Session org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:167) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:191) at com.atlassian.fecru.user.User_$$_javassist_51.getUsername(User_$$_javassist_51.java) at com.cenqua.fisheye.csindex.ChangesetDocBuilder.<init>(ChangesetDocBuilder.java:98) at com.cenqua.fisheye.csindex.ChangesetIndexer.indexChangesetComment(ChangesetIndexer.java:65) at com.cenqua.fisheye.csindex.ChangesetCommentIndexer$1.perform(ChangesetCommentIndexer.java:37) at com.cenqua.fisheye.csindex.ChangesetCommentIndexer$1.perform(ChangesetCommentIndexer.java:31) at com.cenqua.fisheye.lucene.LuceneConnection$1.perform(LuceneConnection.java:588) at com.cenqua.fisheye.lucene.LuceneConnection$1.perform(LuceneConnection.java:584) at com.cenqua.fisheye.lucene.LuceneConnection.withWriter(LuceneConnection.java:557) at com.cenqua.fisheye.lucene.LuceneConnection.withWriter(LuceneConnection.java:584) at com.cenqua.fisheye.csindex.ChangesetCommentIndexer.reindexRep(ChangesetCommentIndexer.java:30) at com.cenqua.fisheye.rep.BaseRepositoryScanner.doCrossRepoRescanCheck(BaseRepositoryScanner.java:401) at com.cenqua.fisheye.rep.BaseRepositoryScanner.slurpRepository(BaseRepositoryScanner.java:249) at com.cenqua.fisheye.rep.BaseRepositoryScanner.doSlurpTransaction(BaseRepositoryScanner.java:221) at com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:180) at com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:92) at com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:382) at com.cenqua.fisheye.rep.ping.OneOffPingRequest.doRequest(OneOffPingRequest.java:28) at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:58) at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:198) at com.cenqua.fisheye.rep.RepositoryHandle.access$100(RepositoryHandle.java:50) at com.cenqua.fisheye.rep.RepositoryHandle$2.run(RepositoryHandle.java:156) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) {code}
    via by Geoff Crain [Atlassian],
  • If the cross repository index requires indexing (eg. during an upgrade), and you have changeset comments, the indexing process will throw a LazyInitializationException: {code} 2013-01-23 14:46:24,729 ERROR - Problem processing revisions from repo openidm due to class org.hibernate.LazyInitializationException - could not initialize proxy - no Session org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:167) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:191) at com.atlassian.fecru.user.User_$$_javassist_51.getUsername(User_$$_javassist_51.java) at com.cenqua.fisheye.csindex.ChangesetDocBuilder.<init>(ChangesetDocBuilder.java:98) at com.cenqua.fisheye.csindex.ChangesetIndexer.indexChangesetComment(ChangesetIndexer.java:65) at com.cenqua.fisheye.csindex.ChangesetCommentIndexer$1.perform(ChangesetCommentIndexer.java:37) at com.cenqua.fisheye.csindex.ChangesetCommentIndexer$1.perform(ChangesetCommentIndexer.java:31) at com.cenqua.fisheye.lucene.LuceneConnection$1.perform(LuceneConnection.java:588) at com.cenqua.fisheye.lucene.LuceneConnection$1.perform(LuceneConnection.java:584) at com.cenqua.fisheye.lucene.LuceneConnection.withWriter(LuceneConnection.java:557) at com.cenqua.fisheye.lucene.LuceneConnection.withWriter(LuceneConnection.java:584) at com.cenqua.fisheye.csindex.ChangesetCommentIndexer.reindexRep(ChangesetCommentIndexer.java:30) at com.cenqua.fisheye.rep.BaseRepositoryScanner.doCrossRepoRescanCheck(BaseRepositoryScanner.java:401) at com.cenqua.fisheye.rep.BaseRepositoryScanner.slurpRepository(BaseRepositoryScanner.java:249) at com.cenqua.fisheye.rep.BaseRepositoryScanner.doSlurpTransaction(BaseRepositoryScanner.java:221) at com.cenqua.fisheye.rep.BaseRepositoryScanner.ping(BaseRepositoryScanner.java:180) at com.cenqua.fisheye.rep.BaseRepositoryEngine.doSlurp(BaseRepositoryEngine.java:92) at com.cenqua.fisheye.rep.RepositoryEngine.slurp(RepositoryEngine.java:382) at com.cenqua.fisheye.rep.ping.OneOffPingRequest.doRequest(OneOffPingRequest.java:28) at com.cenqua.fisheye.rep.ping.PingRequest.process(PingRequest.java:58) at com.cenqua.fisheye.rep.RepositoryHandle.processPingRequests(RepositoryHandle.java:198) at com.cenqua.fisheye.rep.RepositoryHandle.access$100(RepositoryHandle.java:50) at com.cenqua.fisheye.rep.RepositoryHandle$2.run(RepositoryHandle.java:156) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) {code}
    via by Geoff Crain [Atlassian],
  • insert in two table with hibernate
    via Stack Overflow by franco
    ,
  • hibernate behavior explanation:
    via Stack Overflow by gstackoverflow
    ,
    • org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:167) at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215) at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:191) at com.atlassian.fecru.user.User_$$_javassist_51.getUsername(User_$$_javassist_51.java)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    linxiaolonglinxiaolong
    2 times, last one,
    SteVio1989SteVio1989
    124 times, last one,
    tomthomastomthomas
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    18 more bugmates