[jbossts-issues] [JBoss JIRA] (JBTM-3283) LRA TckRecoveryTests used with -Dit.test fails with IllegalArgumentException: Cannot parse java VM arguments
Ondrej Chaloupka (Jira)
issues at jboss.org
Thu Apr 9 07:20:00 EDT 2020
Ondrej Chaloupka created JBTM-3283:
--------------------------------------
Summary: LRA TckRecoveryTests used with -Dit.test fails with IllegalArgumentException: Cannot parse java VM arguments
Key: JBTM-3283
URL: https://issues.redhat.com/browse/JBTM-3283
Project: JBoss Transaction Manager
Issue Type: Bug
Components: LRA
Affects Versions: 5.10.4.Final
Reporter: Ondrej Chaloupka
Assignee: Ondrej Chaloupka
When the LRA TCK is run with {{-Dit.test}} e.g. {{mvn clean verify -Parq -Dit.test=TckRecoveryTests#testCancelWhenParticipantIsUnavailable}} then it fails with
{code}
ava.lang.RuntimeException: Could not create statement
Caused by: java.lang.RuntimeException: Could not lookup value for field private java.net.URL org.eclipse.microprofile.lra.tck.TckRecoveryTests.deploymentURL
Caused by: java.lang.IllegalArgumentException: Cannot parse java VM arguments -Dthorntail.http.host=localhost -Dthorntail.http.port=8180 -Dlra.tck.coordinator.hostname=localhost -Dlra.tck.coordinator.port=8080 -Dlra.http.host=localhost -Dlra.http.port=8080 -Dlra.tck.consistency.shortDelay=1000 -Dlra.tck.consistency.longDelay=20000
{code}
The trouble is that Arquillian (in particular it could be the Thorntail Arquillian adapter) is not capable to parse multiple spaces in the VM args.
https://github.com/jbosstm/narayana/blob/5.10.4.Final/rts/lra/lra-test/lra-test-tck/src/test/resources/arquillian-thorntail.xml#L10
Ie. in the stup there could happen to be resolved to
{code}
<property name="javaVmArguments">{space}{space}{space}{space}-Dthorntail.http.host=localhost ...
{code}
Those multiple spaces seems to do some troubles
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jbossts-issues
mailing list