Results 1 to 2 of 2

Thread: TreeCache and Hibernate

  1. #1
    Join Date
    Mar 2005
    Posts
    5

    Default TreeCache and Hibernate

    Hello ,

    I am using treeCache for hibernate. For that i have a jtaTransactionManager usign jotm for userTransaction .

    The problem is that i have problems with lazy loading and TreeCache when a lock timeout occurrs.

    It's not possible to use lazy hibernate objects and TreeCache correctly? Seems that once the error occurs subsecuent calls goes bad.

    Thank you for reading me.


    Exception trace:


    org.springframework.orm.hibernate3.HibernateSystem Exception: org.jboss.util.NestedRuntimeException: could not initialize proxy - the owning Session was closed; - nested throwable: (org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed); nested exception is org.hibernate.cache.CacheException: org.jboss.util.NestedRuntimeException: could not initialize proxy - the owning Session was closed; - nested throwable: (org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed)
    org.hibernate.cache.CacheException: org.jboss.util.NestedRuntimeException: could not initialize proxy - the owning Session was closed; - nested throwable: (org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed)
    at org.hibernate.cache.TreeCache.read(TreeCache.java: 57)
    at org.hibernate.cache.TransactionalCache.put(Transac tionalCache.java:45)
    at org.hibernate.engine.TwoPhaseLoad.initializeEntity (TwoPhaseLoad.java:126)
    at org.hibernate.loader.Loader.initializeEntitiesAndC ollections(Loader.java:530)
    at org.hibernate.loader.Loader.doQuery(Loader.java:43 6)
    at org.hibernate.loader.Loader.doQueryAndInitializeNo nLazyCollections(Loader.java:218)
    at org.hibernate.loader.Loader.doList(Loader.java:159 3)
    at org.hibernate.loader.Loader.list(Loader.java:1577)
    at org.hibernate.loader.criteria.CriteriaLoader.list( CriteriaLoader.java:111)
    at org.hibernate.impl.SessionImpl.list(SessionImpl.ja va:1322)
    at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl. java:300)

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    You can probably get better advices on Hibernate forums.
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •