cancel
Showing results for 
Search instead for 
Did you mean: 

Hibernate 3.1.2 causing system crash...

furtado
Champ in-the-making
Champ in-the-making
with the new 1.2 I am having a problem with the hibernate 3.1.2 that is deployed. this is an open bug on Hibernate that has not been fixed yet.
I was wondering if there was work around or it is ok to use the hibernate 3.0 .0

http://opensource2.atlassian.com/projects/hibernate/browse/HHH-1293

Caused by: java.lang.NoSuchMethodError: java.lang.Object.getHibernateLazyInitializer()Lorg/hibernate/proxy/LazyInitializer;
   at org.hibernate.proxy.HibernateProxy$$EnhancerByCGLIB$$33bd3242.getHibernateLazyInitializer(<generated>)
   at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:274)
   at org.hibernate.type.EntityType.resolve(EntityType.java:303)
   at org.hibernate.type.OneToOneType.assemble(OneToOneType.java:141)
   at org.hibernate.type.TypeFactory.assemble(TypeFactory.java:398)
   at org.hibernate.cache.entry.CacheEntry.assemble(CacheEntry.java:96)
   at org.hibernate.cache.entry.CacheEntry.assemble(CacheEntry.java:82)
   at org.hibernate.event.def.DefaultLoadEventListener.assembleCacheEntry(DefaultLoadEventListener.java:520)
   at org.hibernate.event.def.DefaultLoadEventListener.loadFromSecondLevelCache(DefaultLoadEventListener.java:474)
   at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:328)
   at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:123)
   at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:177)
   at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87)
   at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:891)
   at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:859)
   at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:266)
   at org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:177)
   at org.hibernate.type.TypeFactory.assemble(TypeFactory.java:398)
   at org.hibernate.cache.entry.CacheEntry.assemble(CacheEntry.java:96)
   at org.hibernate.cache.entry.CacheEntry.assemble(CacheEntry.java:82)
   at org.hibernate.event.def.DefaultLoadEventListener.assembleCacheEntry(DefaultLoadEventListener.java:520)
   at org.hibernate.event.def.DefaultLoadEventListener.loadFromSecondLevelCache(DefaultLoadEventListener.java:474)
   at org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:328)
   at org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:123)
   at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:177)
   at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87)
   at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:891)
   at org.hibernate.impl.SessionImpl.internalLoad(SessionImpl.java:859)
   at org.hibernate.type.EntityType.resolveIdentifier(EntityType.java:266)
   at org.hibernate.type.ManyToOneType.assemble(ManyToOneType.java:177)
   at org.hibernate.collection.PersistentBag.initializeFromCache(PersistentBag.java:140)
   at org.hibernate.cache.entry.CollectionCacheEntry.assemble(CollectionCacheEntry.java:35)
   at org.hibernate.event.def.DefaultInitializeCollectionEventListener.initializeCollectionFromCache(DefaultInitializeCollectionEventListener.java:130)
   at org.hibernate.event.def.DefaultInitializeCollectionEventListener.onInitializeCollection(DefaultInitializeCollectionEventListener.java:48)
   at org.hibernate.impl.SessionImpl.initializeCollection(SessionImpl.java:1695)
   at org.hibernate.collection.AbstractPersistentCollection.initialize(AbstractPersistentCollection.java:344)
   at org.hibernate.collection.AbstractPersistentCollection.read(AbstractPersistentCollection.java:86)
   at org.hibernate.collection.AbstractPersistentCollection.readSize(AbstractPersistentCollection.java:109)
   at org.hibernate.collection.PersistentBag.size(PersistentBag.java:222)
   at org.alfresco.repo.node.db.DbNodeServiceImpl.getChildAssocs(DbNodeServiceImpl.java)
   at org.alfresco.repo.node.AbstractNodeServiceImpl.getChildAssocs(AbstractNodeServiceImpl.java)
   at sun.reflect.GeneratedMethodAccessor246.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:165)
   at $Proxy2.getChildAssocs(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor246.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvocationHandler.invoke(StoreRedirectorProxyFactory.java)
   at $Proxy3.getChildAssocs(Unknown Source)
   at org.alfresco.repo.search.DocumentNavigator.getChildAxisIterator(DocumentNavigator.java)
   at org.jaxen.expr.iter.IterableChildAxis.iterator(IterableChildAxis.java:82)
   at org.jaxen.expr.DefaultNameStep.evaluate(DefaultNameStep.java:206)
   at org.jaxen.expr.DefaultLocationPath.evaluate(DefaultLocationPath.java:154)
   at org.jaxen.expr.DefaultFunctionCallExpr.evaluateParams(DefaultFunctionCallExpr.java:200)
   at org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:184)
   at org.jaxen.expr.DefaultAndExpr.evaluate(DefaultAndExpr.java:91)
   at org.jaxen.expr.DefaultPredicate.evaluate(DefaultPredicate.java:105)
   at org.jaxen.expr.PredicateSet.applyPredicate(PredicateSet.java:176)
   at org.jaxen.expr.PredicateSet.evaluatePredicates(PredicateSet.java:151)
   at org.jaxen.expr.DefaultNameStep.evaluate(DefaultNameStep.java:222)
   at org.jaxen.expr.DefaultLocationPath.evaluate(DefaultLocationPath.java:154)
   at org.jaxen.expr.DefaultXPathExpr.asList(DefaultXPathExpr.java:112)
   at org.jaxen.BaseXPath.selectNodesForContext(BaseXPath.java:688)
   at org.jaxen.BaseXPath.selectNodes(BaseXPath.java:227)
   at org.alfresco.repo.search.NodeServiceXPath.selectNodes(NodeServiceXPath.java)
   at org.alfresco.repo.search.impl.NodeSearcher.selectNodes(NodeSearcher.java)
   at org.alfresco.repo.search.impl.lucene.LuceneSearcherImpl.selectNodes(LuceneSearcherImpl.java)
   at org.alfresco.repo.search.SearcherComponent.selectNodes(SearcherComponent.java)
   at org.alfresco.repo.search.AbstractSearcherComponent.selectNodes(AbstractSearcherComponent.java)
   at sun.reflect.GeneratedMethodAccessor248.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
   at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:116)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
   at $Proxy16.selectNodes(Unknown Source)
   at org.alfresco.repo.model.filefolder.FileFolderServiceImpl.list(FileFolderServiceImpl.java)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
   at $Proxy28.list(Unknown Source)
   at org.alfresco.repo.webdav.PropFindMethod.executeImpl(PropFindMethod.java)
   at org.alfresco.repo.webdav.WebDAVMethod$1.doWork(WebDAVMethod.java)
   at org.alfresco.repo.webdav.WebDAVMethod$1.doWork(WebDAVMethod.java)
   … 35 more
1 REPLY 1

kevinr
Star Contributor
Star Contributor
This is a known issue with hibernate:
http://www.alfresco.org/forums/viewtopic.php?t=1139

The article above has a work-around in it.