glassfish
  1. glassfish
  2. GLASSFISH-20789

Failed to create cluster with jms option

    Details

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

      All

      Description

      When I tried to create a cluster as the picture I have attached shows, It is failed because of the "java.lang.ClassCastException:".

      Here's some of the failure exception in the server.log:
      [2013-08-30T17:37:28.473+0800] [glassfish 4.0] [SEVERE] [] [org.glassfish.admingui] [tid: _ThreadID=47 _ThreadName=admin-listener(4)] [timeMillis: 1377855448473] [levelValue: 1000] [[
      java.lang.Boolean cannot be cast to java.lang.String;
      java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String;
      restRequest: endpoint=http://localhost:4848/management/domain/clusters/cluster/cluster1/configure-jms-cluster
      attrs=

      {availabilityEnabled=false, clustertype=conventional, messageStoreType=file, configStoreType=masterbroker, property=prop1=value1:prop2=value2\:with\:colons:prop3=value3}

      method=post]]

      BTW: I have also confirmed that the cluster with jms option can be created in the glassfish v3.1.2, but it is failed in the glassfish v4. So I regarded it as a rollback issue in the glassfish v4.

      1. revision.patch
        0.8 kB
        Jeremy_Lv
      1. error.png
        86 kB

        Activity

        Hide
        Jeremy_Lv added a comment -

        amyk:

        Your comments added here help me a lot! Thanks again!

        Show
        Jeremy_Lv added a comment - amyk: Your comments added here help me a lot! Thanks again!
        Hide
        amyk added a comment - - edited

        From David Zhao:

        The 'availabilityEnabled' was removed (no longer needed) for configuring JMS cluster, by the following revision for a long time:

        Revision: 42142
        Time: 10/26/2010 02:46 PM
        Author: sats
        Path: v3/jms/admin/src/main/java/org/glassfish/jms/admin/cli/ConfigureJMSCluster.java (trunk)
        Message: changes to the configure-jms-cluster command as per ASARCH and MQ team suggestions

        Show
        amyk added a comment - - edited From David Zhao: The 'availabilityEnabled' was removed (no longer needed) for configuring JMS cluster, by the following revision for a long time: Revision: 42142 Time: 10/26/2010 02:46 PM Author: sats Path: v3/jms/admin/src/main/java/org/glassfish/jms/admin/cli/ConfigureJMSCluster.java (trunk) Message: changes to the configure-jms-cluster command as per ASARCH and MQ team suggestions
        Hide
        Jeremy_Lv added a comment -

        Hi, Amyk:

        Thanks for your clarification!

        Show
        Jeremy_Lv added a comment - Hi, Amyk: Thanks for your clarification!
        Hide
        amyk added a comment -

        To clarify, 'availabilityEnabled' is not an option for 'asadmin configure-jms-cluster'

        GlassFish 3.1.2

        asadmin configure-jms-cluster --help
        SYNOPSIS
        configure-jms-cluster [--help]
        [--clustertype=

        {conventional|enhanced}]
        [--configstoretype={masterbroker|shareddb}]
        [--messagestoretype={file|jdbc}]
        [--dbvendor database-vendor]
        [--dbuser database-user]
        [--dburl database-url]
        [--property property-list]
        cluster-name

        GlassFish 4.0

        asadmin configure-jms-cluster --help
        SYNOPSIS
        configure-jms-cluster [--help]
        [--clustertype={conventional|enhanced}

        ]
        [--configstoretype=

        {masterbroker|shareddb}

        ]
        [--messagestoretype=

        {file|jdbc}

        ]
        [--dbvendor database-vendor]
        [--dbuser database-user]
        [--dburl database-url]
        [--property (name=value)[:name=value]*]
        cluster-name

        Show
        amyk added a comment - To clarify, 'availabilityEnabled' is not an option for 'asadmin configure-jms-cluster' GlassFish 3.1.2 asadmin configure-jms-cluster --help SYNOPSIS configure-jms-cluster [--help] [--clustertype= {conventional|enhanced}] [--configstoretype={masterbroker|shareddb}] [--messagestoretype={file|jdbc}] [--dbvendor database-vendor] [--dbuser database-user] [--dburl database-url] [--property property-list] cluster-name GlassFish 4.0 asadmin configure-jms-cluster --help SYNOPSIS configure-jms-cluster [--help] [--clustertype={conventional|enhanced} ] [--configstoretype= {masterbroker|shareddb} ] [--messagestoretype= {file|jdbc} ] [--dbvendor database-vendor] [--dbuser database-user] [--dburl database-url] [--property (name=value) [:name=value] *] cluster-name
        Hide
        Jeremy_Lv added a comment -

        I have checked in the changes as the version 62705 to delete the availabilityEnabled options in the admin console.

        Show
        Jeremy_Lv added a comment - I have checked in the changes as the version 62705 to delete the availabilityEnabled options in the admin console.

          People

          • Assignee:
            Anissa Lam
            Reporter:
            Jeremy_Lv
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: