AnsweredAssumed Answered

Unstable Hibernate on Linux (Hibernate ticket HHH-1293)

Question asked by gentyjp on Sep 8, 2006
Latest reply on Sep 24, 2006 by gentyjp
Hi

I had some big problems with hibernate stability on linux boxes.
Happily I think I kind of solved it.

My two linux boxes:

1)
Distrib : Mandriva 2006.0
Kernel : 2.6.12-12mdksmp
Java : SUN 1.5.0_07
MySQL : Ver 14.12 Distrib 5.0.21
MySQL connector : mysql-connector-java-3.1.12-bin.jar
Tomcat : 5.5.17
Alfresco : 1.4 preview war file

2)
Distrib : Centos 4.2
Kernel : 2.6.9-22.EL
Java : SUN 1.5.0_08
MySQL : Ver 14.12 Distrib 5.0.22
MySQL connector : mysql-connector-java-3.1.12-bin.jar
Tomcat : 5.5.17
Alfresco : 1.4 preview war file

I also have two Windows XP boxes with Java 1.5.0_07.
I wanted to do a tiny stability test for my AlFresco Linux and Windows boxes.
I took the last SDK 1.4 preview.
I modified the ContentReadAndWrite.java in web services samples.
I added a "for i" loop starting at the very start of the program and ending at the very end.
The loop should do 20 iterations.

On Windows boxes everything run fine. I tested for 100 iteration, no problems.
My two Linux boxes AlFresco crashes after ~15 iterations.
An exception is raised:
java.lang.NoSuchMethodError: java.lang.Object.getHibernateLazyInitializer()Lorg/hibernate/proxy/LazyInitializer;

I searched on internet and found the HHH-1293 ticket
http://opensource.atlassian.com/projects/hibernate/browse/HHH-1293

It fully describes my problem.

I downloaded the last release candidate Hibernate Core 3.2.CR4.
I replaced hibernate-3.1.3.jar with hibernate3.jar found in the download.

I tested for 100 iterations and everything ran smoothly, great !!!!!

Could you please take this big problem in account and certainly update the hibernate jar file in the next release ?

  I can give you more information if you need.

Thanks

Best regards

Jean-Paul

Outcomes