[
https://issues.jboss.org/browse/AS7-5914?page=com.atlassian.jira.plugin.s...
]
Ivo Studensky updated AS7-5914:
-------------------------------
Summary: Clustering unit tests using Arquillian's byteman extension fail on
IBM JDK (was: Clustering unit tests using Arquillian's byteman extension fail on IBM
JDK 7)
Description:
There are 2 tests in the clustering unit tests in the AS7 source code which are using
Arquillian's byteman extension which fail when running on IBM JDK 7. Because of this
it is not possible to compile AS7 with IBM JDK7 unless the unit tests are skipped by
-DskipTests.
Affected tests:
clustering/infinispan/src/test/java/org/jboss/as/clustering/infinispan/subsystem/OperationSequencesTestCase.java
clustering/jgroups/src/test/java/org/jboss/as/clustering/jgroups/subsystem/OperationSequencesTestCase.java
The issue affects both IBM JDK6 and JDK7.
was:
There are 2 tests in the clustering unit tests in the AS7 source code which are using
Arquillian's byteman extension which fail when running on IBM JDK 7. Because of this
it is not possible to compile AS7 with IBM JDK7 unless the unit tests are skipped by
-DskipTests.
Affected tests:
clustering/infinispan/src/test/java/org/jboss/as/clustering/infinispan/subsystem/OperationSequencesTestCase.java
clustering/jgroups/src/test/java/org/jboss/as/clustering/jgroups/subsystem/OperationSequencesTestCase.java
Both tests work nicely on IBM JDK6.
Environment:
IBM JDK
was:
IBM JDK 7
IBM J9 VM (build 2.6, JRE 1.7.0 Linux amd64-64 20120809_118929 (JIT enabled, AOT enabled)
The reason why it is failing is that ibm jdk does not allow redefine classes in such an
environment, i.e. Instrumentation#isRedefineClassesSupported() returns false.
I've spent a day with trying to figure out what additional configuration ibm jdk would
need to enable it, but without any success.
A note regarding ibm jdk can be found in byteman documentation which says that
installation an agent into a running ibm jvm does not work which is exactly what bmunit
does. See
https://community.jboss.org/wiki/ABytemanTutorial#how_do_i_install_the_ag...
There is another option how to run bmunit in arquillian. The automatic loading of agent by
arq can be inhibited and appropriate -javaagent option can be passed to a forked surefire
on the command line. This can fix the issue.
I will create pull reqs for it.
Clustering unit tests using Arquillian's byteman extension fail
on IBM JDK
--------------------------------------------------------------------------
Key: AS7-5914
URL:
https://issues.jboss.org/browse/AS7-5914
Project: Application Server 7
Issue Type: Bug
Components: Clustering
Affects Versions: 7.1.3.Final (EAP), 7.2.0.Alpha1
Environment: IBM JDK
Reporter: Ivo Studensky
Assignee: Ivo Studensky
There are 2 tests in the clustering unit tests in the AS7 source code which are using
Arquillian's byteman extension which fail when running on IBM JDK 7. Because of this
it is not possible to compile AS7 with IBM JDK7 unless the unit tests are skipped by
-DskipTests.
Affected tests:
clustering/infinispan/src/test/java/org/jboss/as/clustering/infinispan/subsystem/OperationSequencesTestCase.java
clustering/jgroups/src/test/java/org/jboss/as/clustering/jgroups/subsystem/OperationSequencesTestCase.java
The issue affects both IBM JDK6 and JDK7.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira