Hi guys, One more issue that I'm having while building 3.5. Even with heap set as MAVEN_OPTS=-Xms512m -Xmx1024m testsuite fails on org.hibernate.test.cfg.ConfigurationPerformanceTest. Any ideas hwhat else I need to setup to pass the test?
Cheers, Tom <testcase classname="org.hibernate.test.cfg.ConfigurationPerformanceTest" time="48.534" name="testSessionFactoryCreationTime"> <error type="java.lang.OutOfMemoryError" message="Java heap space">java.lang.OutOfMemoryError: Java heap space at java.lang.String.<init>(String.java:208) at java.lang.StringBuffer.toString(StringBuffer.java:586) at org.hibernate.sql.SelectFragment.toFragmentString(SelectFragment.java:166) at org.hibernate.persister.entity.AbstractEntityPersister.propertySelectFragment(AbstractEntityPersister.java:1038) at org.hibernate.persister.entity.AbstractEntityPersister.selectFragment(AbstractEntityPersister.java:1003) at org.hibernate.loader.AbstractEntityJoinWalker.initStatementString(AbstractEntityJoinWalker.java:126) at org.hibernate.loader.AbstractEntityJoinWalker.initStatementString(AbstractEntityJoinWalker.java:111) at org.hibernate.loader.AbstractEntityJoinWalker.initAll(AbstractEntityJoinWalker.java:93) at org.hibernate.loader.entity.CascadeEntityJoinWalker.<init>(CascadeEntityJoinWalker.java:51) at org.hibernate.loader.entity.CascadeEntityLoader.<init>(CascadeEntityLoader.java:47) at org.hibernate.persister.entity.AbstractEntityPersister.createLoaders(AbstractEntityPersister.java:3162) at org.hibernate.persister.entity.AbstractEntityPersister.postInstantiate(AbstractEntityPersister.java:3102) at org.hibernate.persister.entity.SingleTableEntityPersister.postInstantiate(SingleTableEntityPersister.java:728) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:334) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1367) at org.hibernate.test.cfg.ConfigurationPerformanceTest.testSessionFactoryCreationTime(ConfigurationPerformanceTest.java:186) On Thu, Nov 12, 2009 at 3:01 PM, Tomasz Blachowicz <tblachow...@gmail.com>wrote: > Hey Emmanuel, > > This is very helpful! I wish I knew that before I started :) > > Cheers, > Tom > > On Thu, Nov 12, 2009 at 10:19 AM, Emmanuel Bernard <emman...@hibernate.org > > wrote: > >> Doh, >> Actually I did document that a little while ago already. >> https://www.hibernate.org/422.html >> >> On 12 nov. 09, at 11:14, Emmanuel Bernard wrote: >> >> > wiki wiki please. >> > On 11 nov. 09, at 16:33, Hardy Ferentschik wrote: >> > >> >> Hi Tomasz, >> >> >> >> Currently you need a JDk 5 and 6 to build Hibernate. >> >> Have a look at this issue - >> >> http://opensource.atlassian.com/projects/hibernate/browse/HHH-4499 >> >> You have define the variable jdk16_home in your settings.xml file >> >> pointing >> >> to the home directory >> >> of a JDK 6. >> >> >> >> Hope this helps. >> >> >> >> --Hardy >> >> >> >> >> >> >> >> On Wed, 11 Nov 2009 16:16:45 +0100, Tomasz Blachowicz >> >> <tblachow...@gmail.com> wrote: >> >> >> >>> Hi guys, >> >>> >> >>> I'm trying to build Hibernate from the SVN repository (rev. 17955). >> >>> On my >> >>> Windows laptop with Java 1.5 I'm getting the following error while >> >>> building >> >>> Entity Manager: >> >>> >> >>> [INFO] >> >>> >> ------------------------------------------------------------------------ >> >>> [INFO] Building Hibernate Entitity Manager >> >>> [INFO] task-segment: [clean, install] >> >>> [INFO] >> >>> >> ------------------------------------------------------------------------ >> >>> [INFO] [clean:clean] >> >>> [INFO] Deleting directory >> >>> C:\eclipse\galileo\workspace\external\hibernate\entitymanager\target >> >>> [INFO] snapshot org.hibernate:hibernate-jpamodelgen:1.0.0-SNAPSHOT: >> >>> checking >> >>> for updates from JBoss-RELEASE >> >>> [INFO] snapshot org.hibernate:hibernate-jpamodelgen:1.0.0-SNAPSHOT: >> >>> checking >> >>> for updates from JBoss-SNAPSHOTS >> >>> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = >> >>> '7317ef05f893d4eef13f1435eb9f6710cf95d462'; remote = >> >>> '38a59e89c3339cc1e87583bf027d226c69657c40' - RETRYIN >> >>> G >> >>> [WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = >> >>> '7317ef05f893d4eef13f1435eb9f6710cf95d462'; remote = >> >>> '38a59e89c3339cc1e87583bf027d226c69657c40' - IGNORIN >> >>> G >> >>> [INFO] [enforcer:enforce {execution: enforce-java}] >> >>> [INFO] [test-ext:extend {execution: default}] >> >>> [INFO] starting test environment extension mojo >> >>> [INFO] [resources:resources] >> >>> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered >> >>> resources, i.e. build is platform dependent! >> >>> [INFO] Copying 2 resources >> >>> [INFO] [compiler:compile] >> >>> [INFO] Compiling 157 source files to >> >>> C:\eclipse\galileo\workspace\external\hibernate\entitymanager\target >> >>> \classes >> >>> [INFO] [resources:testResources] >> >>> [WARNING] File encoding has not been set, using platform encoding >> >>> Cp1252, >> >>> i.e. build is platform dependent! >> >>> [WARNING] Using platform encoding (Cp1252 actually) to copy filtered >> >>> resources, i.e. build is platform dependent! >> >>> [INFO] Copying 13 resources >> >>> [INFO] Copying 19 resources to ../bundles >> >>> [INFO] [antrun:run {execution: process_annotations}] >> >>> [INFO] Executing tasks >> >>> [echo] processing JPA annotations >> >>> [mkdir] Created dir: >> >>> C:\eclipse\galileo\workspace\external\hibernate\entitymanager\target >> >>> \generated-src\jpamodelgen >> >>> [javac] Compiling 191 source files to >> >>> C:\eclipse\galileo\workspace\external\hibernate\entitymanager\target >> >>> \generated-src\jpamodelgen >> >>> [INFO] >> >>> >> ------------------------------------------------------------------------ >> >>> [ERROR] BUILD ERROR >> >>> [INFO] >> >>> >> ------------------------------------------------------------------------ >> >>> [INFO] An Ant BuildException has occured: Error running >> >>> ${jdk16_home}\bin\javac compiler >> >>> >> >>> CreateProcess: ${jdk16_home}\bin\javac -d >> >>> C:\eclipse\galileo\workspace\external\hibernate\entitymanager\target >> >>> \generated-src\jpamodelgen >> >>> -classpath C:\eclipse\galileo\workspa >> >>> ce\external\hibernate\entitymanager\target\generated-src >> >>> \jpamodelgen;C:\eclipse\galileo\workspace\external\hibernate >> >>> \entitymanager\target\test-classes;C:\eclipse\galileo\work >> >>> space\external\hibernate\entitymanager\target\classes;C:\eclipse >> >>> \galileo\workspace\external\hibernate\core\target\hibernate- >> >>> core-3.5.0-SNAPSHOT.jar;C:\Maven\repo\antlr\antlr\ >> >>> 2.7.6\antlr-2.7.6.jar;C:\Maven\repo\commons-collections\commons- >> >>> collections\3.1\commons-collections-3.1.jar;C:\Maven\repo\dom4j >> >>> \dom4j\1.6.1\dom4j-1.6.1.jar;C:\Maven\repo\xml- >> >>> apis\xml-apis\1.0.b2\xml-apis-1.0.b2.jar;C:\Maven\repo\javax >> >>> \transaction\jta\1.1\jta-1.1.jar;C:\Maven\repo\org\slf4j\slf4j-api >> >>> \1.5.8\slf4j-api-1.5.8.jar;C:\Maven\repo\hsqldb\ >> >>> hsqldb\1.8.0.2\hsqldb-1.8.0.2.jar;C:\eclipse\galileo\workspace >> >>> \external\hibernate\annotations\target\hibernate-annotations-3.5.0- >> >>> SNAPSHOT.jar;C:\Maven\rep >> >>> [INFO] >> >>> >> ------------------------------------------------------------------------ >> >>> [INFO] For more information, run Maven with the -e switch >> >>> [INFO] >> >>> >> ------------------------------------------------------------------------ >> >>> [INFO] Total time: 3 minutes 50 seconds >> >>> [INFO] Finished at: Wed Nov 11 15:06:57 GMT 2009 >> >>> [INFO] Final Memory: 31M/63M >> >>> [INFO] >> >>> >> ------------------------------------------------------------------------ >> >>> >> >>> Can you please give me a hand with the build? Is the build supposed >> >>> to >> >>> work >> >>> only on Java 1.6 box? >> >>> >> >>> Cheers, >> >>> Tom >> >>> _______________________________________________ >> >>> hibernate-dev mailing list >> >>> hibernate-dev@lists.jboss.org >> >>> https://lists.jboss.org/mailman/listinfo/hibernate-dev >> >> >> >> _______________________________________________ >> >> hibernate-dev mailing list >> >> hibernate-dev@lists.jboss.org >> >> https://lists.jboss.org/mailman/listinfo/hibernate-dev >> > >> > _______________________________________________ >> > hibernate-dev mailing list >> > hibernate-dev@lists.jboss.org >> > https://lists.jboss.org/mailman/listinfo/hibernate-dev >> >> _______________________________________________ >> hibernate-dev mailing list >> hibernate-dev@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/hibernate-dev >> > > _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev