1 2 Previous Next 26 Replies Latest reply on Apr 15, 2009 4:10 AM by alesj Go to original post
      • 15. Re: Context installation causes StackOverflowError
        jaikiran

         

        "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

           

          "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

            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

              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

                Okay, i see you already found the issue :)

                • 20. Re: Context installation causes StackOverflowError
                  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

                    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

                      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

                        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
                          • 25. Re: Context installation causes StackOverflowError
                            jaikiran

                            Ales, is this JBMICROCONT-421 fix being targeted for JBossAS-5.1.0 CR1?

                            • 26. Re: Context installation causes StackOverflowError
                              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.

                              1 2 Previous Next