Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-3283

LRA TckRecoveryTests used with -Dit.test fails with IllegalArgumentException: Cannot parse java VM arguments

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 5.10.5.Final
    • 5.10.4.Final
    • LRA
    • None
    • Hide
      git clone https://github.com/jbosstm/narayana -b 5.10.4.Final
      cd rts/lra/lra-test/lra-test-tck
      mvn clean verify -Parq -Dit.test=TckRecoveryTests#testCancelWhenParticipantIsUnavailable
      
      Show
      git clone https: //github.com/jbosstm/narayana -b 5.10.4.Final cd rts/lra/lra-test/lra-test-tck mvn clean verify -Parq -Dit.test=TckRecoveryTests#testCancelWhenParticipantIsUnavailable

    Description

      When the LRA TCK is run with -Dit.test e.g. mvn clean verify -Parq -Dit.test=TckRecoveryTests#testCancelWhenParticipantIsUnavailable then it fails with

      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 
      

      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

      <property name="javaVmArguments">{space}{space}{space}{space}-Dthorntail.http.host=localhost ...
      

      Those multiple spaces seems to do some troubles

      Attachments

        Issue Links

          Activity

            People

              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: