[jbossts-issues] [JBoss JIRA] (JBTM-2440) Byteman tests fail when running with the IBM JVM

Michael Musgrove (JIRA) issues at jboss.org
Tue Jul 7 18:30:02 EDT 2015

    [ https://issues.jboss.org/browse/JBTM-2440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13087568#comment-13087568 ] 

Michael Musgrove commented on JBTM-2440:

This issue (JBTM-2440) is to capture the fact that the @BMUnitRunner annotation does not work with the IBM JVM. I don't know how to fix that so I have committed a workaround that adds a profile that disables byteman when running with the ibm compiler. Since I have provided a workaround my preference is to move "fix version" field to 5.later but leave the issue as unresolved.

Whereas issue JBTM-2454 records the fact that the the localjunit-disabled-context-propagation-tests do not compile (at least on lancel) with the IBM compiler and is unrelated to the bug in the @BMUnitRunner annotation.

Remark: the @BMUnitRunner annotation requires the ability to dynamically load an agent but it fails with the IBM JVM. The com.ibm.tools.attach.enable system property ought to allow that behaviour but it still fails and my personal feeling is that there is an issue with the annotation - but, as I say, it is a gut feeling since the annotation implementation seems to work with other JVMs

> Byteman tests fail when running with the IBM JVM
> ------------------------------------------------
>                 Key: JBTM-2440
>                 URL: https://issues.jboss.org/browse/JBTM-2440
>             Project: JBoss Transaction Manager
>          Issue Type: Task
>          Components: Testing
>    Affects Versions: 5.1.1
>            Reporter: Michael Musgrove
>            Assignee: Michael Musgrove
>            Priority: Minor
>             Fix For: 5.later
> Byteman instrumentation does not work with the IBM J9 JVM:- it fails with errors like the following:
> {code}
> *** java.lang.instrument ASSERTION FAILED ***: "jvmtierror == JVMTI_ERROR_NOT_AVAILABLE" at JPLISAgent.c line: 1009
> Exception in thread "Attachment 59984" Agent failed to start!
> JVMJ9TI064E Agent initialization function Agent_OnAttach failed for library instrument, return code 102
> {code}
> I will implement a workaround by disabling byteman when testing with this JVM.

This message was sent by Atlassian JIRA

More information about the jbossts-issues mailing list