[hibernate-dev] Problems building Core

Adam Warski adam at warski.org
Fri Dec 18 11:00:04 EST 2009


Turns out that Idea uses a different classpath (invalid) when running tests so it didn't read the right log4j.properties.

Maven did, but it didn't help; I test with the 5.10 dependency.

Maybe there's simply too many tests to log info about? ;)

Adam

On Dec 18, 2009, at 2:50 PM, Adam Warski wrote:

> Maybe it's the huge amount of logs that gets emmited during the tests - the place where the OOM happens would indicate that (it failed in the same place when I updated to 5.10).
> I tried changing the log4j.properties in the envers module test sources to emit less logs but I think that some different file is used to configure logging for the tests (other file on the classpath).
> 
> I'll let you know if I have any better ideas :)
> 
> Adam
> 
> On Dec 18, 2009, at 11:45 AM, Hardy Ferentschik wrote:
> 
>> Hi,
>> 
>> I used to have -Xmx1024m for $MAVEN_OPTS and I tried now also -Xmx512.
>> I also tried different maven versions 2.2.1 and 3.0 alpha 5. All with the
>> same result - OutOfMemoryError :(
>> 
>> --Hardy
>> 
>> 
>> 
>> 
>> On Fri, 18 Dec 2009 03:50:08 -0300, Adam Warski <adam at warski.org> wrote:
>> 
>>> Hmm, I had this when I upgraded the TestNG dependency to 5.10, so I reverted it back to 5.8 - do you have the latest pom?
>>> 
>>> Also, my $MAVEN_OPTS are: -Xmx512m.
>>> 
>>> Adam
>>> 
>>> On Dec 18, 2009, at 4:24 AM, Hardy Ferentschik wrote:
>>> 
>>>> Hi,
>>>> 
>>>> just wondering whether someone could confirm that the reactor build of
>>>> Core is broken.
>>>> There is a sort of expected failure in
>>>> EmbeddedTypeTest.testSingularAttributeAccessByNameFailureExpected
>>>> in the entitymanager module. But even after commenting out this test I am
>>>> not able to complete the build.
>>>> I am having problems with the Envers test suite where I am getting an
>>>> OutOfMemoryError:
>>>> 
>>>> 
>>>> org.apache.maven.surefire.booter.SurefireExecutionException: Java heap
>>>> space; nested exception is java.lang.OutOfMemoryError: Java heap space
>>>> java.lang.OutOfMemoryError: Java heap space
>>>>       at
>>>> java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:99)
>>>>       at
>>>> java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:393)
>>>>       at java.lang.StringBuffer.append(StringBuffer.java:225)
>>>>       at
>>>> org.testng.reporters.SuiteHTMLReporter.generateMethodsChronologically(SuiteHTMLReporter.java:429)
>>>>       at
>>>> org.testng.reporters.SuiteHTMLReporter.generateReport(SuiteHTMLReporter.java:67)
>>>>       at org.testng.TestNG.generateReports(TestNG.java:735)
>>>>       at org.testng.TestNG.run(TestNG.java:721)
>>>>       at
>>>> org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:74)
>>>>       at
>>>> org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:92)
>>>>       at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
>>>>       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:585)
>>>>       at
>>>> org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
>>>>       at
>>>> org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
>>>> 
>>>> --Hardy
>>>> 
>>>> 
>>>> _______________________________________________
>>>> hibernate-dev mailing list
>>>> hibernate-dev at lists.jboss.org
>>>> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>>> 
>> 
> 
> 
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev





More information about the hibernate-dev mailing list