glassfish
  1. glassfish
  2. GLASSFISH-18358

error may occured in JavaEE management console when more than two user operate it in glassfish

    Details

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

      operating system:win32;

      Description

      1:when you save cluster general attributes after you delete the cluster,it will occer an error.
      2:when you operater the cluster-config after you delete the cluster ,it will occer an error.

      operating order:

      1,asadmin start-domain
      2,login the glassfish by admin
      3,click the "cluster" button and create a cluster named "cluster001"
      4,open another glassfish web by user1
      5,click the "cluster001" button in glassfish web by user1
      6,delete the cluster by admin
      7,save "cluster001" attributes by user1
      8,an error occered to suggest us as follows:
      Check server log for more information.

      1. clusterGeneral.jsf
        12 kB
        Jeremy_Lv
      2. clusterGeneral.patch
        1 kB
        Jeremy_Lv
      3. RestApiHandlers.java
        20 kB
        Jeremy_Lv
      4. RestApiHandlers.patch
        2 kB
        Jeremy_Lv
      5. Strings.patch
        0.8 kB
        Jeremy_Lv
      6. Strings.properties
        110 kB
        Jeremy_Lv
      1. screenshot-1.jpg
        238 kB

        Activity

        Hide
        Jeremy_Lv added a comment -

        As the picture shows:an error has occered and suggest us to check more information in serverlog.

        information in server.log:
        [#|2012-02-15T15:03:17.500+0800|SEVERE|44.0|org.glassfish.admingui|_ThreadID=50;_ThreadName=Thread-2;|updateEntity failed. parent='http://localhost:4848/management/domain/clusters/cluster/cluster001'; attrs ='{heartbeatAddress=null, gmsEnabled=true, gmsMulticastAddress=228.9.237.172, name=cluster001, broadcast=udpmulticast, gmsBindInterfaceAddress=$

        {GMS-BIND-INTERFACE-ADDRESS-cluster001}

        , heartbeatPort=null, gmsMulticastPort=11155, heartbeatEnabled=null, configRef=cluster001-config}'|#]

        the log showed nothing about the operate of deleting the "cluster001" , any way , it just told us it is failed when update Entity.

        my idea as follows:
        in my way , I suggest that we should told our client what operation we did .
        for example:
        1、JavaEE command console:
        an error has occered
        the cluster is not exist . Maybe someone has deleted before you save the attribute.
        2、no SEVERE information in serverlog

        Show
        Jeremy_Lv added a comment - As the picture shows:an error has occered and suggest us to check more information in serverlog. information in server.log: [#|2012-02-15T15:03:17.500+0800|SEVERE|44.0|org.glassfish.admingui|_ThreadID=50;_ThreadName=Thread-2;|updateEntity failed. parent='http://localhost:4848/management/domain/clusters/cluster/cluster001'; attrs ='{heartbeatAddress=null, gmsEnabled=true, gmsMulticastAddress=228.9.237.172, name=cluster001, broadcast=udpmulticast, gmsBindInterfaceAddress=$ {GMS-BIND-INTERFACE-ADDRESS-cluster001} , heartbeatPort=null, gmsMulticastPort=11155, heartbeatEnabled=null, configRef=cluster001-config}'|#] the log showed nothing about the operate of deleting the "cluster001" , any way , it just told us it is failed when update Entity. my idea as follows: in my way , I suggest that we should told our client what operation we did . for example: 1、JavaEE command console: an error has occered the cluster is not exist . Maybe someone has deleted before you save the attribute. 2、no SEVERE information in serverlog
        Hide
        Jeremy_Lv added a comment -

        Step 1、As the phenomenon showed in GF V4 , if we saved the cluster general attributes after the cluster is deleted . the JavaEE manage console showed message as follows:

        An error occered
        Check server log for more information.

        Step 2、As to the suggestion , I checked the server log and the log information as follows:

        [#|2012-02-18T16:07:30.468+0800|SEVERE|44.0|org.glassfish.admingui|_ThreadID=25;_ThreadName=Thread-2;|updateEntity failed. parent='http://localhost:4848/management/domain/clusters/cluster/cluster'; attrs ='{heartbeatAddress=null, gmsEnabled=true, gmsMulticastAddress=228.9.120.191, name=cluster, broadcast=udpmulticast, gmsBindInterfaceAddress=$

        {GMS-BIND-INTERFACE-ADDRESS-cluster}

        , heartbeatPort=null, gmsMulticastPort=2791, heartbeatEnabled=null, configRef=cluster-config}'|#]

        Step 3、From the information , I can't judge whether the cluster is exist or not . So I make a change to show the error to told user what's happened in JavaEE manage console as follows:

        An error occered
        Cannot find specified Cluster Resource. Resource may have been deleted.

        Step 4、I modified three files as follows(see more information in attachment patch profiles------ RestApiHandlers.patch , Strings.patch,clusterGeneral.patch):

        RestApiHandlers.java
        Strings.properties
        clusterGeneral.jsf

        Step 5、rebuild the module of admingui . update the latest file in glassfish programs .

        Show
        Jeremy_Lv added a comment - Step 1、As the phenomenon showed in GF V4 , if we saved the cluster general attributes after the cluster is deleted . the JavaEE manage console showed message as follows: An error occered Check server log for more information. Step 2、As to the suggestion , I checked the server log and the log information as follows: [#|2012-02-18T16:07:30.468+0800|SEVERE|44.0|org.glassfish.admingui|_ThreadID=25;_ThreadName=Thread-2;|updateEntity failed. parent='http://localhost:4848/management/domain/clusters/cluster/cluster'; attrs ='{heartbeatAddress=null, gmsEnabled=true, gmsMulticastAddress=228.9.120.191, name=cluster, broadcast=udpmulticast, gmsBindInterfaceAddress=$ {GMS-BIND-INTERFACE-ADDRESS-cluster} , heartbeatPort=null, gmsMulticastPort=2791, heartbeatEnabled=null, configRef=cluster-config}'|#] Step 3、From the information , I can't judge whether the cluster is exist or not . So I make a change to show the error to told user what's happened in JavaEE manage console as follows: An error occered Cannot find specified Cluster Resource. Resource may have been deleted. Step 4、I modified three files as follows(see more information in attachment patch profiles------ RestApiHandlers.patch , Strings.patch,clusterGeneral.patch): RestApiHandlers.java Strings.properties clusterGeneral.jsf Step 5、rebuild the module of admingui . update the latest file in glassfish programs .
        Hide
        Anissa Lam added a comment -

        This is similar to GLASSFISH-18429.
        Patches attached to 18429 has been applied. Marking this fixed.

        Show
        Anissa Lam added a comment - This is similar to GLASSFISH-18429 . Patches attached to 18429 has been applied. Marking this fixed.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 4 days
              4d
              Remaining:
              Remaining Estimate - 4 days
              4d
              Logged:
              Time Spent - Not Specified
              Not Specified