glassfish
  1. glassfish
  2. GLASSFISH-3427

OLH: javaConfig.setJVMOptions() cannot handle options with a space

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 9.1pe
    • Fix Version/s: 3.1.1_dev
    • Component/s: docs
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      3,427
    • Status Whiteboard:
      Hide

      as91ur1-na

      Show
      as91ur1-na

      Description

      This is discussed in the forum
      http://forums.java.net/jive/thread.jspa?messageID=228153
      where user is unable to use GUI to store a JVM option that has a space in the
      value without putting in double-quote

      Admin GUI is using
      javaConfig.setJVMOptions(options);
      to save the options.
      options is an array of Strings, and options[0] is the String "-DABC=AA BB CC"
      Error comes back and says:

      ADMVAL1022: '[BB, CC]' is invalid JVM option. Options must start with - (dash).
      ADMVAL1070: Change of java config is rejected.

      If user puts in -DABC="AA BB CC", then it goes through, and in domain.xml, it
      is stored as -DABC="AA BB CC"

      If it is a requirement that any option value with a space should be inside
      double-quote, please transfer the bug to admin-gui and Admin GUI will put in an
      inline-help to tell user thats how to enter a value with space.

        Activity

        Hide
        km added a comment -

        Now try <jvm-options> -D Two Parts -DOnePart </jvm-options> and then see.
        Maybe previous comment will then be clearer?

        Show
        km added a comment - Now try <jvm-options> -D Two Parts -DOnePart </jvm-options> and then see. Maybe previous comment will then be clearer?
        Hide
        basler added a comment -

        Not a 9.1ur1 release stopper

        Show
        basler added a comment - Not a 9.1ur1 release stopper
        Hide
        sanandal added a comment -

        "Reclassifying as P4 because this issue is not deemed "must fix" for this v2.1
        release whose primary release driver is SailFin.
        This issue will be scrubbed after this release and will be given the right
        priority for the next release."

        Show
        sanandal added a comment - "Reclassifying as P4 because this issue is not deemed "must fix" for this v2.1 release whose primary release driver is SailFin. This issue will be scrubbed after this release and will be given the right priority for the next release."
        Hide
        Paul Davies added a comment -

        Under consideration for fixing in 3.1.1 (if still applicable).

        Show
        Paul Davies added a comment - Under consideration for fixing in 3.1.1 (if still applicable).
        Hide
        Mike Fitch added a comment -

        Updated online help as per description. Committed in svn revision 47759.

        Show
        Mike Fitch added a comment - Updated online help as per description. Committed in svn revision 47759.

          People

          • Assignee:
            Mike Fitch
            Reporter:
            Anissa Lam
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: