Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-1900

ManagedDeployableContainer tears apart javaVmArguments with quoted spaces

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.1.3.Final, 1.1.5.Final
    • Fix Version/s: None
    • Component/s: JBoss AS Containers
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Use -XX:OnOutOfMemoryError="kill -3 %p" in javaVmArguments of arquillian.xml. The Server will fail to start with:

      Unrecognized option: -3
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.
      
      Show
      Use -XX:OnOutOfMemoryError="kill -3 %p" in javaVmArguments of arquillian.xml . The Server will fail to start with: Unrecognized option: -3 Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

      Description

      As of now you cannot use -XX:OnOutOfMemoryError="kill -3 %p" (or any other arguments that contains quoted spaces) in javaVmArguments of arquillian.xml because ManagedDeployableContainer uses whitespace characters as delimiters to determine the elements for the cmd list.

      The argument from above ends up as three elements in the list instead of one.
      Expected (list as string):

      ..., -XX:OnOutOfMemoryError="kill -3 %p", ...

      Actual:

      ..., -XX:OnOutOfMemoryError="kill, -3, %p", ...

      This only seems to happen on a linux system.
      On on a windows machine, java seems to re-join the command and therefore the server starts properly!

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                famod Falko Modler
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: