-->
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.  [ 4 posts ] 
Author Message
 Post subject: CGLIB Enhancement failed
PostPosted: Thu May 17, 2007 9:58 am 
Beginner
Beginner

Joined: Thu Jan 20, 2005 1:45 pm
Posts: 49
I have thousands pojos and hbm created by myeclipse reverse engineering.
I got this exception:
java.lang.OutOfMemoryError: Java heap space
226585 [main] WARN org.hibernate.tuple.PojoEntityTuplizer - could not create proxy factory for:com.dsdatafashion.persistence.hibernate.ChiCas
org.hibernate.HibernateException: CGLIB Enhancement failed: com.dsdatafashion.persistence.hibernate.ChiCas
at org.hibernate.proxy.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:132)
at org.hibernate.proxy.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:41)
at org.hibernate.tuple.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:161)
at org.hibernate.tuple.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:131)
at org.hibernate.tuple.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:55)
at org.hibernate.tuple.TuplizerLookup.create(TuplizerLookup.java:64)
at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:257)
at org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:412)
at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:108)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:216)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
at com.dsdatafashion.persistence.hibernate.HibernateSessionFactory.rebuildSessionFactory(HibernateSessionFactory.java:60)
at com.dsdatafashion.persistence.hibernate.HibernateSessionFactory.getSession(HibernateSessionFactory.java:43)
at com.dsdatafashion.persistence.hibernate.BaseHibernateDAO.getSession(BaseHibernateDAO.java:16)
at com.dsdatafashion.persistence.hibernate.FodDAO.save(FodDAO.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.dsdatafashion.common.test.TestDaoReflection.executeService(TestDaoReflection.java:41)
at com.dsdatafashion.common.test.TestDaoReflection.main(TestDaoReflection.java:84)
Caused by: java.lang.OutOfMemoryError: Java heap space

Of course is heap problem but how can I work around it?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 17, 2007 2:17 pm 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
increase your heap space

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
 Post subject: CGLIB Enhancement failed
PostPosted: Thu May 17, 2007 2:18 pm 
Beginner
Beginner

Joined: Wed Apr 18, 2007 6:17 pm
Posts: 49
Location: Dominican Republic
you can give more memory to the vm by adding -Xmx512m (for instance) to the vm startup parameters.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 17, 2007 4:11 pm 
Beginner
Beginner

Joined: Thu Jan 20, 2005 1:45 pm
Posts: 49
but if i run outside my IDE u think it should work?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.