]
Ondrej Chaloupka updated JBTM-3283:
-----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
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
Priority: Major
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/lr...
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