1. cache problem with lightweight/normal/proxy... forum.hibernate.orghere's the problem. Within a session, if an instance of Object1 is loaded and used, and then another Object2 is loaded, which has an Object1LightWeight, or Object1Proxy element, then the cache is hit and the original Object1 is found and assumed to be the right object. however, when it tries to return that object as either of the LightWeight, or Proxy ... |
2. Cached POs with a proxy forum.hibernate.orgI seem to be having a problem caching Persistant Objects that have been mapped to use a proxy. Specifically, I am doing a HQL query to return these POs, the first request is successful, but a the second request, if I use the cached query results I get the following exception: net.sf.hibernate.HibernateException: Could not initialize proxy - the owning Session was ... |
3. Cache & Proxy management forum.hibernate.orgHibernate : 2.1.2 Cache : ehcache0.6 Hi, I cant understand why when I load (session.load()) a com.company.Dossier instance, a sql query is done to retrieve the com.company.Raitance associated instance. I am expecting Hibernate doesn't hit the database because com.company.Raitance instance must be a proxy ! Am i wrong ? Thank you for your help Richard. |
4. proxy caching problem forum.hibernate.orgNewbie Joined: Wed Jan 26, 2005 11:01 am Posts: 18 When eagerly fetching a proxied object, if the proxy has been cached, the proxy is returned and not the eagerly fetch object. If the second lin is commented out, the Owner-Proxy is not stored in cache and the error is not produced. Notice that the owner is fetched when the query ... |
5. Need strategy to not cache lazy proxies in 2nd level cache. forum.hibernate.orgWhen using the second level cache, in our case EHCache, we do not want proxies for entities or collections to be cached. So, in this case we specify : Code: |
6. Caching CGLIB-generated proxies to disk? forum.hibernate.orgOur project uses a large number of mappings and mapped classes. It is a client GUI app, so it is started frequently (as opposed to a web server). Generating the CGLIB proxies alone takes 5-10 seconds. In principle, this is unnecessary because the proxies generated are the same every time. If they were generated to files on disk, they could simply ... |
7. Second-level cache and proxies forum.hibernate.orgUsing Hibernate 3.2.6, Ehcache 1.5. I appear to have a problem where proxies retrieved via load() are being serialized into the second-level cache, corrupting it. Code: ERROR http-8080-17 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/].[spring] - Servlet.service() for servlet spring threw exception org.hibernate.LazyInitializationException: could not initialize proxy - no Session at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:57) ... |
8. EHcache diskstore "could not initialize proxy" exc forum.hibernate.org |