-
15. Re: Context installation causes StackOverflowError
jaikiran Mar 25, 2009 11:09 AM (in response to alesj)"alesj" wrote:
Why would it have problems launching java?
No clue :) But that's the only step it does after creating the surefire-reports directory (this message has been successfully printed in your logs) and before triggering the testcases. So i thought that might be the right place to look for some hints. -
16. Re: Context installation causes StackOverflowError
alesj Mar 25, 2009 1:11 PM (in response to alesj)"jaikiran" wrote:
But that's the only step it does after creating the surefire-reports directory (this message has been successfully printed in your logs) and before triggering the testcases.
In my case I don't even get the surefilre-reports dir created. :-( -
17. Re: Context installation causes StackOverflowError
alesj Mar 25, 2009 1:34 PM (in response to alesj)This is the cause.
Just need to see why this is really failing ...[INFO] Surefire report directory: C:\projects\microcontainer\kernel\jmx-mc-int\target\surefire-reports log4j:WARN No appenders could be found for logger (org.jboss.util.NestedThrowable). log4j:WARN Please initialize the log4j system properly. org.apache.maven.surefire.booter.SurefireExecutionException: org.jboss.test.system.controller.configure.value.text.test.TextValueTest; nested exception is java.lang.NoClassDefFoundError: org.jboss.test.system.controller.configure.value.text.test.Text ValueTest java.lang.NoClassDefFoundError: org.jboss.test.system.controller.configure.value.text.test.TextValueTest at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2395) at java.lang.Class.getMethod0(Class.java:2642) at java.lang.Class.getMethod(Class.java:1579) at org.junit.internal.requests.ClassRequest.hasSuiteMethod(ClassRequest.java:61) at org.junit.internal.requests.ClassRequest.getRunnerClass(ClassRequest.java:50) at org.junit.internal.requests.ClassRequest.getRunner(ClassRequest.java:28) at org.apache.maven.surefire.junit4.JUnit4TestSet.<init>(JUnit4TestSet.java:45) at org.apache.maven.surefire.junit4.JUnit4DirectoryTestSuite.createTestSet(JUnit4DirectoryTestSuite.java:56) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:96) at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209) at org.apache.maven.surefire.Surefire.run(Surefire.java:156) 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) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD FAILURE
-
18. Re: Context installation causes StackOverflowError
jaikiran Mar 25, 2009 1:39 PM (in response to alesj)Not that this might help in any way - but there are bugs reported against Maven Surefire for swallowing the root cause of the errors. For example this one http://jira.codehaus.org/browse/SUREFIRE-339. Maybe yours is one other case where the real error is swallowed. From the -X logs if you can get hold of the java command being used to trigger the testcase, then they recommend to use it directly from the command prompt and see if any error is thrown.
-
19. Re: Context installation causes StackOverflowError
jaikiran Mar 25, 2009 1:40 PM (in response to alesj)Okay, i see you already found the issue :)
-
20. Re: Context installation causes StackOverflowError
alesj Mar 25, 2009 1:57 PM (in response to alesj)"jaikiran" wrote:
Okay, i see you already found the issue :)
The .java file is there, so no idea why it's not picked up ... -
21. Re: Context installation causes StackOverflowError
jaikiran Mar 25, 2009 2:08 PM (in response to alesj)I had earlier seen that you have the repository setup in a folder having space in its names (ex: C:\Documents and Settings\Ales\.m2\repository\org\jboss\jbossxb\2.0.0.GA\jbossxb-2.0.0.GA.jar). Maybe you should try moving it to a different place (without spaces in the path names). I did not bring this up earlier because i won't be able to justify why your system has been working so far without any issues :)
-
22. Re: Context installation causes StackOverflowError
jaikiran Mar 28, 2009 8:08 AM (in response to alesj)Just a FYI - I patched up the jar with Adrian's fix and my first few tests show that the StackOverFlowError has gone :)
-
23. Re: Context installation causes StackOverflowError
pgier Apr 1, 2009 4:59 PM (in response to alesj)Ales, I checked your debug output and didn't find any significant differences from mine. The classpath that surefire is using seems to be exactly the same other than the root directories.
I don't get the same log4j warnings that you get. Could this be indirectly causing the NCDFE? Maybe you can try adding a log4j.properties file in the test resources directory. -
24. Re: Context installation causes StackOverflowError
alesj Apr 2, 2009 9:50 AM (in response to alesj)Solution to the _real_ problem:
- http://lists.jboss.org/pipermail/jboss-development/2009-April/013940.html -
25. Re: Context installation causes StackOverflowError
jaikiran Apr 15, 2009 4:01 AM (in response to alesj)Ales, is this JBMICROCONT-421 fix being targeted for JBossAS-5.1.0 CR1?
-
26. Re: Context installation causes StackOverflowError
alesj Apr 15, 2009 4:10 AM (in response to alesj)"jaikiran" wrote:
Ales, is this JBMICROCONT-421 fix being targeted for JBossAS-5.1.0 CR1?
It's already in 2.2.0.M1, which is, afaik, included in AS branch 5.x.
Its inclusion depends on XB inclusion - see jboss-dev ml for this discussion.