[
https://jira.jboss.org/browse/JBIDE-7359?page=com.atlassian.jira.plugin.s...
]
Dominik Pospisil edited comment on JBIDE-7359 at 10/20/10 8:46 AM:
-------------------------------------------------------------------
Alexey, you are right, it is a duplicate of JBIDE-4980, but anyway, we need to have it
fixed somehow.
The problem is that Seam 2.2 in EAP 5.0 / 5.1 does not work with JDK5. The embeded Seam
itself is compiled with JDK5 however it has some dependencies to JDK6 libraries. It is not
even possible to instantiate the class
org.jboss.seam.mock.SeamTest
with JDK5. Therefore, the seam test project will never work with EAP5 and JDK5. The only
option to run the test project with EAP5 seems to be to use JDK6 and add
-Dsun.lang.ClassLoader.allowArraySyntax=true to the JVM args while running testng suite.
Would id be possible to not to enforce JDK5 for the test project and create special testng
launch configuration which adds this parameter? This way we would get out-of-the-box
experience with EAP5 / 5.1
Thanks, Dominik
was (Author: dpospisi(a)redhat.com):
Alexey, you are right, it is a duplicate of JBIDE-4980, but anyway, we need to have it
fixed somehow.
The problem is that Seam 2.2 in EAP 5.0 / 5.1 does not work with JDK5. The embeded Seam
itself is compiled with JDK5 however it has some dependencies to JDK6 libraries. It is not
even possible to instantiate the class
org.jboss.seam.mock.SeamTest
with JDK6. Therefore, the seam test project will never work with EAP5 and JDK5. The only
option to run the test project with EAP5 seems to be to use JDK6 and add
-Dsun.lang.ClassLoader.allowArraySyntax=true to the JVM args while running testng suite.
Would id be possible to not to enforce JDK5 for the test project and create special testng
launch configuration which adds this parameter? This way we would get out-of-the-box
experience with EAP5 / 5.1
Thanks, Dominik
Seam Test project on EAP 5.1
----------------------------
Key: JBIDE-7359
URL:
https://jira.jboss.org/browse/JBIDE-7359
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Seam
Affects Versions: 3.2.0.Beta1
Environment: JBDS 4.0.0.beta1
bundled EAP 5.1 & Seam 2.2
Reporter: Dominik Pospisil
Assignee: Alexey Kazakov
Attachments: testng.log
Seam action test execution fails on seam project created with EAP 5.1.
Steps to reproduce:
1) Create New Seam Project (the issue affects both WAR and EAR packaging) using EAP 5.1
and associated Seam 2.2 with test project
2) File -> New -> SeamAction, choose component name
3) Open created test project, refresh, navigate to testng testsuite associated to created
action
4) Choose RunAs -> TestNG Suite
5) Execution fails with the following exception:
[Parser] Running:
/home/dpospisi/workspaces/empty/SeamEAR-test/test-src/org/domain/seamear/test/TestActionTest.xml
ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error installing to
Described: name=BeanDeployer state=PreInstall
java.lang.RuntimeException: java.lang.reflect.UndeclaredThrowableException
at org.jboss.aop.util.ClassInfoMethodHashing.methodHash(ClassInfoMethodHashing.java:70)
at
org.jboss.aop.util.ClassInfoMethodHashing.addDeclaredMethods(ClassInfoMethodHashing.java:169)
at
org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTables(ClassInfoMethodHashing.java:182)
at
org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTables(ClassInfoMethodHashing.java:181)
at
org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTables(ClassInfoMethodHashing.java:181)
at
org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTables(ClassInfoMethodHashing.java:181)
at
org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTables(ClassInfoMethodHashing.java:181)
at
org.jboss.aop.util.ClassInfoMethodHashing.populateMethodTables(ClassInfoMethodHashing.java:181)
at
org.jboss.aop.util.ClassInfoMethodHashing.getMethodMap(ClassInfoMethodHashing.java:188)
at
org.jboss.aop.microcontainer.integration.AOPDependencyBuilder.getMethodAnnotationDependencies(AOPDependencyBuilder.java:197)
at
org.jboss.aop.microcontainer.integration.AOPDependencyBuilder.getAnnotationDependencies(AOPDependencyBuilder.java:152)
at
org.jboss.aop.microcontainer.integration.AOPDependencyBuilder.getDependencies(AOPDependencyBuilder.java:130)
at
org.jboss.classadapter.plugins.BasicClassAdapter.getDependencies(BasicClassAdapter.java:80)
at
org.jboss.beans.info.plugins.AbstractBeanInfo.getDependencies(AbstractBeanInfo.java:211)
at
org.jboss.kernel.plugins.dependency.DescribeAction.installActionInternal(DescribeAction.java:53)
at
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:135)
at
org.jboss.kernel.plugins.dependency.KernelControllerContextAction.installAction(KernelControllerContextAction.java:46)
at
org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at
org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at
org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at
org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:327)
at
org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1309)
at
org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:734)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:862)
at
org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:784)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:574)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:398)
at
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBean(AbstractKernelDeployer.java:309)
at
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deployBeans(AbstractKernelDeployer.java:279)
at
org.jboss.kernel.plugins.deployment.AbstractKernelDeployer.deploy(AbstractKernelDeployer.java:130)
at
org.jboss.kernel.plugins.deployment.xml.BeanXMLDeployer.deploy(BeanXMLDeployer.java:96)
at org.jboss.embedded.Bootstrap.deployBaseBootstrapUrl(Bootstrap.java:130)
at org.jboss.embedded.Bootstrap.bootstrapURL(Bootstrap.java:142)
at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:183)
at org.jboss.embedded.Bootstrap.bootstrap(Bootstrap.java:195)
at
org.jboss.seam.mock.EmbeddedBootstrap.startAndDeployResources(EmbeddedBootstrap.java:11)
at
org.jboss.seam.mock.AbstractSeamTest.startJbossEmbeddedIfNecessary(AbstractSeamTest.java:1024)
at org.jboss.seam.mock.AbstractSeamTest.startSeam(AbstractSeamTest.java:915)
at org.jboss.seam.mock.SeamTest.startSeam(SeamTest.java:58)
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:597)
at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:607)
at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:417)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:154)
at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:88)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:284)
at org.testng.SuiteRunner.run(SuiteRunner.java:204)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:877)
at org.testng.TestNG.runSuitesLocally(TestNG.java:842)
at org.testng.TestNG.run(TestNG.java:751)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:73)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:124)
Caused by: java.lang.reflect.UndeclaredThrowableException
at org.jboss.reflect.plugins.ArrayInfoImpl.getType(ArrayInfoImpl.java:103)
at org.jboss.reflect.plugins.ClassInfoImpl.isArray(ClassInfoImpl.java:495)
at
org.jboss.aop.util.ClassInfoMethodHashing.getTypeString(ClassInfoMethodHashing.java:149)
at org.jboss.aop.util.ClassInfoMethodHashing.methodHash(ClassInfoMethodHashing.java:53)
... 53 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira