net.sf.hibernate.LazyInitializationException

Illegally attempted to associate a proxy with two open Sessions

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web1

  • via Unknown by Peter Mutsaers,
  • Stack trace

    • net.sf.hibernate.LazyInitializationException: Illegally attempted to associate a proxy with two open Sessions at net.sf.hibernate.proxy.LazyInitializer.setSession(LazyInitializer.java:152) at net.sf.hibernate.impl.SessionImpl.reassociateProxy(SessionImpl.java:1027) at net.sf.hibernate.impl.SessionImpl.unproxyAndReassociate(SessionImpl.java:1011) at net.sf.hibernate.impl.SessionImpl.lock(SessionImpl.java:1709)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.