6 Replies Latest reply on Sep 19, 2006 7:43 AM by adrian.brock

    AOP Integration tests failing

      Lots of the integration tests are failing with the following error:

      [ur;http://cruisecontrol.jboss.com/cc/artifacts/microcontainer-head-testsuite/20060918110604/results/index.html[/url]

      java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.jboss.test.security.PolicyPlugin.getInstance(PolicyPlugin.java:71) at org.jboss.test.AbstractTestDelegate.setUpSecurity(AbstractTestDelegate.java:175) at org.jboss.test.AbstractTestDelegate.setUp(AbstractTestDelegate.java:123) at org.jboss.test.AbstractTestSetup.setUp(AbstractTestSetup.java:63) at junit.extensions.TestSetup$1.protect(TestSetup.java:18) at junit.extensions.TestSetup.run(TestSetup.java:23)Caused by: java.lang.NullPointerException at java.io.FilterInputStream.read(FilterInputStream.java:111) at java.io.FilterInputStream.read(FilterInputStream.java:90) at java.util.Properties$LineReader.readLine(Properties.java:365) at java.util.Properties.load(Properties.java:293) at org.jboss.test.visitor.PropertiesVisitorImpl.loadProperties(PropertiesVisitorImpl.java:147) at org.jboss.test.visitor.PropertiesVisitorImpl.visitMethods(PropertiesVisitorImpl.java:109) at org.jboss.test.visitor.TypeHierarchyTraversal.processType(TypeHierarchyTraversal.java:57) at org.jboss.test.visitor.TypeHierarchyTraversal.visit(TypeHierarchyTraversal.java:47) at org.jboss.test.security.TestsPolicyPlugin.<init>(TestsPolicyPlugin.java:64) ... 20 more
      


      Anybody changed this recently?

      I remember reporting a problem with some confusion in that
      alogorithm, but I thought I'd worked around it?

        • 1. Re: AOP Integration tests failing
          kabirkhan

          I mailed the dev list about this a few weeks ago, but I was ignored :-)

          IIRC this started happening after the mc was broken out into a separate project. It worked against the version of the "test" project that was part of jboss-head. But it fails against the jboss/test 1.0.0.CR1 version in the repository. If you want I can create a jboss/test/1.0.0.CR2, which should fix it

          • 2. Re: AOP Integration tests failing
            kabirkhan

            Replacing the microcontainer/thirdparty/jboss/test/lib/jboss-test.jar with one built from https://svn.jboss.org/repos/jbossas/projects/test/trunk/test

            reduces

             [junit] Running org.jboss.test.microcontainer.test.MicrocontainerAllTestCase
             [junit] Tests run: 233, Failures: 1, Errors: 60, Time elapsed: 2.688 sec
             [junit] Test org.jboss.test.microcontainer.test.MicrocontainerAllTestCase FAILED
            


            to

             [junit] Running org.jboss.test.microcontainer.test.MicrocontainerAllTestCase
             [junit] Tests run: 529, Failures: 0, Errors: 1, Time elapsed: 5.672 sec
             [junit] Test org.jboss.test.microcontainer.test.MicrocontainerAllTestCase FAILED
            


            The one error remaining is:
            Testcase: testArrayPreinstantiated took 0 sec
             Caused an ERROR
            Resource not found: /xml-test/org/jboss/test/kernel/config/test/testArrayPreinstantiated.xml
            java.lang.RuntimeException: Resource not found: /xml-test/org/jboss/test/kernel/config/test/testArrayPreinstantiated.xml
             at org.jboss.test.kernel.config.support.XMLUtil.<init>(XMLUtil.java:74)
             at org.jboss.test.kernel.config.test.AbstractKernelConfigTest.bootstrapXML(AbstractKernelConfigTest.java:72)
             at org.jboss.test.kernel.config.test.ArrayXMLTestCase.customArrayPreinstantiated(ArrayXMLTestCase.java:61)
             at org.jboss.test.kernel.config.test.ArrayTestCase.testArrayPreinstantiated(ArrayTestCase.java:152)
             at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
             at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
             at junit.extensions.TestSetup.run(TestSetup.java:23)
            


            I still see a few of these in the test logs, but they seem to somehow
            be handled gracefully, and not causing errors
            922 DEBUG [RegistryTestCase] ==== setUp org.jboss.test.kernel.registry.test.RegistryTestCase ====
            922 WARN [PropertiesVisitorImpl] Failed to load properties for name: bootstrap
            java.lang.NullPointerException
             at java.io.FilterInputStream.read(FilterInputStream.java:111)
             at java.io.FilterInputStream.read(FilterInputStream.java:90)
             at java.util.Properties$LineReader.readLine(Properties.java:365)
             at java.util.Properties.load(Properties.java:293)
             at org.jboss.test.visitor.PropertiesVisitorImpl.loadProperties(Unknown Source)
             at org.jboss.test.visitor.PropertiesVisitorImpl.visitMethods(Unknown Source)
             at org.jboss.test.visitor.TypeHierarchyTraversal.processType(Unknown Source)
             at org.jboss.test.visitor.TypeHierarchyTraversal.visit(Unknown Source)
             at org.jboss.test.security.TestsPolicyPlugin.<init>(Unknown Source)
             at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
             at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
             at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
             at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
             at org.jboss.test.security.PolicyPlugin.getInstance(Unknown Source)
             at org.jboss.test.AbstractTestDelegate.setUpSecurity(Unknown Source)
             at org.jboss.test.AbstractTestDelegate.setUp(Unknown Source)
             at org.jboss.test.AbstractTestSetup.setUp(Unknown Source)
             at junit.extensions.TestSetup$1.protect(TestSetup.java:18)
             at junit.framework.TestResult.runProtected(TestResult.java:124)
             at junit.extensions.TestSetup.run(TestSetup.java:23)
             at junit.framework.TestSuite.runTest(TestSuite.java:208)
             at junit.framework.TestSuite.run(TestSuite.java:203)
             at junit.framework.TestSuite.runTest(TestSuite.java:208)
             at junit.framework.TestSuite.run(TestSuite.java:203)
             at junit.framework.TestSuite.runTest(TestSuite.java:208)
             at junit.framework.TestSuite.run(TestSuite.java:203)
             at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:297)
             at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:672)
             at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
            




            • 3. Re: AOP Integration tests failing
              alesj

               

              "kabir.khan@jboss.com" wrote:

              The one error remaining is:
              Testcase: testArrayPreinstantiated took 0 sec
               Caused an ERROR
              Resource not found: /xml-test/org/jboss/test/kernel/config/test/testArrayPreinstantiated.xml
              java.lang.RuntimeException: Resource not found: /xml-test/org/jboss/test/kernel/config/test/testArrayPreinstantiated.xml
               at org.jboss.test.kernel.config.support.XMLUtil.<init>(XMLUtil.java:74)
               at org.jboss.test.kernel.config.test.AbstractKernelConfigTest.bootstrapXML(AbstractKernelConfigTest.java:72)
               at org.jboss.test.kernel.config.test.ArrayXMLTestCase.customArrayPreinstantiated(ArrayXMLTestCase.java:61)
               at org.jboss.test.kernel.config.test.ArrayTestCase.testArrayPreinstantiated(ArrayTestCase.java:152)
               at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
               at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
               at junit.extensions.TestSetup.run(TestSetup.java:23)
              




              I believe this method (ArrayTestCase.testArrayPreinstantiated) was removed from the trunk code.

              • 4. Re: AOP Integration tests failing
                kabirkhan

                OK, so a new jboss-test release is needed - I'll let QA know

                • 5. Re: AOP Integration tests failing
                  kabirkhan

                  Apparently this needs to be fixed before a new jboss-test release can be done http://jira.jboss.com/jira/browse/JBQA-292

                  • 6. Re: AOP Integration tests failing

                    Just add a snapshot for now.
                    Then we can at least tell whether we something breaks.