-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: cglib OutOfMemoryError exception
PostPosted: Wed Jun 30, 2004 12:06 pm 
Beginner
Beginner

Joined: Wed Sep 10, 2003 5:32 pm
Posts: 28
Hi everyone,

I am using Hibernate version 2.1.2 and I am running into OutOfMemoryError exception with cglib. I want to find out if anyone can share some light with this problem. Here is the exception that I get:

net.sf.hibernate.InstantiationException: Could not instantiate entity with CGLIB: qatest.qaav4.Customer
at net.sf.hibernate.persister.AbstractEntityPersister.instantiate(AbstractEntityPersister.java:349)
at net.sf.hibernate.impl.SessionImpl.instantiate(SessionImpl.java:1766)
at net.sf.hibernate.impl.SessionImpl.instantiate(SessionImpl.java:1758)
at net.sf.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:502)
at net.sf.hibernate.loader.Loader.getRow(Loader.java:426)
at net.sf.hibernate.loader.Loader.doQuery(Loader.java:209)
at net.sf.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:133)
at net.sf.hibernate.loader.Loader.doList(Loader.java:950)
at net.sf.hibernate.loader.Loader.list(Loader.java:941)
at net.sf.hibernate.hql.QueryTranslator.list(QueryTranslator.java:839)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1512)
at net.sf.hibernate.impl.SessionImpl.find(SessionImpl.java:1491)
Caused by: java.lang.OutOfMemoryError

Can someone give some suggestions on how to fix this problem?? Thanks

Vivian


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 30, 2004 12:29 pm 
CGLIB Developer
CGLIB Developer

Joined: Thu Aug 28, 2003 1:44 pm
Posts: 1217
Location: Vilnius, Lithuania
Try to dissable cglib reflection optimizations, but I think you will get this error without cglib too. Probably you have less memory than query result.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.