Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1
    • Component/s: configuration
    • Labels:
      None
    • Environment:

      mac os x 10.6.5 GlassFish Server Open Source Edition 3.1-b32 (build 32)

      Description

      vkraemer$ ~/GlassFish_Server_3.1/bin/asadmin create-config
      org.glassfish.api.admin.CommandException: remote failure: Exception while adding the new configuration no <servers> element : org.jvnet.hk2.config.TransactionFailure: Unexpected exception during isValid call
      Unexpected exception during isValid call
      Command create-config failed.
      VBKMacBookPro:wizard-rewrite vkraemer$ ~/GlassFish_Server_3.1/bin/asadmin create-config bogus
      Command create-config does not accept any operands
      Usage: asadmin [asadmin-utility-options] create-config
      [?|-help[=<help(default:false)>]]
      Command create-config failed.

        Activity

        Hide
        Nazrul added a comment -

        We did not have create-config in 2.1.1. Refer to http://docs.sun.com/app/docs/doc/821-0179/6nl8hchmr?l=en&a=expand

        create-config should be renamed to _create-config so that it is not visible.

        Show
        Nazrul added a comment - We did not have create-config in 2.1.1. Refer to http://docs.sun.com/app/docs/doc/821-0179/6nl8hchmr?l=en&a=expand create-config should be renamed to _create-config so that it is not visible.
        Hide
        Bhakti Mehta added a comment -

        How bad is its impact? (Severity)
        This command is misleading for users

        How often does it happen? Will many users see this problem? (Frequency)
        Every time a user tries create-config they will run into this issue

        How much effort is required to fix it? (Cost)
        Minor fix
        Here is the patch

        What is the risk of fixing it and how will the risk be mitigated? (Risk)
        This should be trivial and should not cause any sideeffects.

        Index: admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/Configs.java
        ===================================================================
        — admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/Configs.java (revision 43880)
        +++ admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/Configs.java (working copy)
        @@ -65,7 +65,7 @@

        • </pre>
        • <p/> <p/> <p/> Objects of the following type(s) are allowed in the list {@link Config }

          */

        • @Create(value="create-config", i18n=@I18n("create.config.command"))
          +
          @Element(required=true)
          List<Config> getConfig();
        Show
        Bhakti Mehta added a comment - How bad is its impact? (Severity) This command is misleading for users How often does it happen? Will many users see this problem? (Frequency) Every time a user tries create-config they will run into this issue How much effort is required to fix it? (Cost) Minor fix Here is the patch What is the risk of fixing it and how will the risk be mitigated? (Risk) This should be trivial and should not cause any sideeffects. Index: admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/Configs.java =================================================================== — admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/Configs.java (revision 43880) +++ admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/Configs.java (working copy) @@ -65,7 +65,7 @@ </pre> <p/> <p/> <p/> Objects of the following type(s) are allowed in the list {@link Config } */ @Create(value="create-config", i18n=@I18n("create.config.command")) + @Element(required=true) List<Config> getConfig();
        Hide
        Chris Kasso added a comment -

        Approved for 3.1

        Show
        Chris Kasso added a comment - Approved for 3.1
        Hide
        Bhakti Mehta added a comment -

        Sending admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/Configs.java
        Transmitting file data .
        Committed revision 43912.

        Show
        Bhakti Mehta added a comment - Sending admin/config-api/src/main/java/com/sun/enterprise/config/serverbeans/Configs.java Transmitting file data . Committed revision 43912.

          People

          • Assignee:
            Bhakti Mehta
            Reporter:
            vince kraemer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: