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

ManagedDeployableContainer tears apart javaVmArguments with quoted spaces

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.1.3.Final, 1.1.5.Final
    • JBoss AS Containers
    • None
    • 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.

      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!

              Unassigned Unassigned
              falko.modler@t-systems.com Falko Modler (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: