org.hibernate.LazyInitializationException: could not initialize proxy - no Session

Atlassian JIRA | Geoff Crain [Atlassian] | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    [CRUC-6342] LazyInitializationException during indexing of repositories containing Changeset Comments - Atlassian JIRA

    atlassian.com | 1 year ago
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  2. 0

    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}

    Atlassian JIRA | 4 years ago | Geoff Crain [Atlassian]
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  3. 0

    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}

    Atlassian JIRA | 4 years ago | Geoff Crain [Atlassian]
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    insert in two table with hibernate

    Stack Overflow | 3 years ago | franco
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
  6. 0

    ERROR org.hibernate.LazyInitializationException - could not initialize proxy - no Session

    Stack Overflow | 4 years ago | user2879071
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session

  1. linxiaolong 2 times, last 2 months ago
  2. SteVio1989 124 times, last 3 months ago
  3. tomthomas 1 times, last 3 months ago
  4. MoYapro 2 times, last 6 months ago
15 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.hibernate.LazyInitializationException

    could not initialize proxy - no Session

    at org.hibernate.proxy.AbstractLazyInitializer.initialize()
  2. Hibernate
    JavassistLazyInitializer.invoke
    1. org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:167)
    2. org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:215)
    3. org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:191)
    3 frames
  3. com.atlassian.fecru
    User_$$_javassist_51.getUsername
    1. com.atlassian.fecru.user.User_$$_javassist_51.getUsername(User_$$_javassist_51.java)
    1 frame