2 Replies Latest reply on Jul 7, 2008 9:42 PM by Arisson Leal

    tests using SeamTest

    Arisson Leal Newbie

      My project is using java 6 and i saw that tests using jboss embedded just work using java5. It's possible change my configurations on build.xml for compile and run my tests using java 5 ?


      When i run a test that extend SeamTest i got this error:



      [testng] ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to Described: name=BeanDeployer state=PreInstall
         [testng] java.lang.RuntimeException: java.lang.reflect.UndeclaredThrowableException
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.methodHash(ClassInfoMethodHashing.java:70)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.addDeclaredMethods(ClassInfoMethodHashing.java:169)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTables(ClassInfoMethodHashing.java:182)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTables(ClassInfoMethodHashing.java:181)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTables(ClassInfoMethodHashing.java:181)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTables(ClassInfoMethodHashing.java:181)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTables(ClassInfoMethodHashing.java:181)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTables(ClassInfoMethodHashing.java:181)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.getMethodMap(ClassInfoMethodHashing.java:188)
         [testng]     at org.jboss.aop.microcontainer.integration.AOPDependencyBuilder.getMethodAnnotationDependencies(AOPDependencyBuilder.java:197)
         [testng]     at org.jboss.aop.microcontainer.integration.AOPDependencyBuilder.getAnnotationDependencies(AOPDependencyBuilder.java:152)
         [testng]     at org.jboss.aop.microcontainer.integration.AOPDependencyBuilder.getDependencies(AOPDependencyBuilder.java:130)
         [testng]     at org.jboss.classadapter.plugins.BasicClassAdapter.getDependencies(BasicClassAdapter.java:80)
         [testng]     at org.jboss.beans.info.plugins.AbstractBeanInfo.getDependencies(AbstractBeanInfo.java:211)
         [testng]     at org.jboss.kernel.plugins.dependency.DescribeAction.installActionInternal(DescribeAction.java:53)
         [testng]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:135)
         [testng]     at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:46)
         [testng]     at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
         [testng]     at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
         [testng]     at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
         [testng]     at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
         [testng]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
         [testng]     at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
         [testng]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
         [testng]     at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
         [testng]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:574)
         [testng]     at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
         [testng]     at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:309)
         [testng]     at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:279)
         [testng]     at org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
         [testng]     at org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
         [testng]     at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:130)
         [testng]     at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:142)
         [testng]     at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:183)
         [testng]     at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:195)
         [testng]     at org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
         [testng]     at org.jboss.seam.mock.BaseSeamTest.startJbossEmbeddedIfNecessary(BaseSeamTest.java:1041)
         [testng]     at org.jboss.seam.mock.BaseSeamTest.startSeam(BaseSeamTest.java:935)
         [testng]     at org.jboss.seam.mock.BaseSeamTest.init(BaseSeamTest.java:923)
         [testng]     at org.jboss.seam.mock.SeamTest.init(SeamTest.java:42)
         [testng]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [testng]     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         [testng]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         [testng]     at java.lang.reflect.Method.invoke(Unknown Source)
         [testng]     at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
         [testng]     at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:394)
         [testng]     at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
         [testng]     at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:79)
         [testng]     at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:165)
         [testng]     at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:103)
         [testng]     at org.testng.TestRunner.runWorkers(TestRunner.java:678)
         [testng]     at org.testng.TestRunner.privateRun(TestRunner.java:624)
         [testng]     at org.testng.TestRunner.run(TestRunner.java:495)
         [testng]     at org.testng.SuiteRunner.runTest(SuiteRunner.java:300)
         [testng]     at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:295)
         [testng]     at org.testng.SuiteRunner.privateRun(SuiteRunner.java:275)
         [testng]     at org.testng.SuiteRunner.run(SuiteRunner.java:190)
         [testng]     at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:792)
         [testng]     at org.testng.TestNG.runSuitesLocally(TestNG.java:765)
         [testng]     at org.testng.TestNG.run(TestNG.java:699)
         [testng]     at org.testng.TestNG.privateMain(TestNG.java:824)
         [testng]     at org.testng.TestNG.main(TestNG.java:802)
         [testng] Caused by: java.lang.reflect.UndeclaredThrowableException
         [testng]     at org.jboss.reflect.plugins.ArrayInfoImpl.getType(ArrayInfoImpl.java:103)
         [testng]     at org.jboss.reflect.plugins.ClassInfoImpl.isArray(ClassInfoImpl.java:495)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.getTypeString(ClassInfoMethodHashing.java:149)
         [testng]     at org.jboss.aop.util.ClassInfoMethodHashing.methodHash(ClassInfoMethodHashing.java:53)
         [testng]     ... 61 more



      What could i do to solve my problem ?