glassfish
  1. glassfish
  2. GLASSFISH-3067

Could not get Attributes for WebModule MBean

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 9.1pe
    • Fix Version/s: not determined
    • Component/s: web_container
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      3,067

      Description

      Running the AMX unit test com.sun.enterprise.management.base.GetSetAttributeTest results in the
      following failures:

      WARNING: Could not get Attributes for "amx:j2eeType=WebModule,name=//__asadmin/
      web1,J2EEServer=server,J2EEApplication=null"
      DefaultWebXML

      WARNING: Could not get Attributes for "amx:j2eeType=WebModule,name=//
      server/,J2EEServer=server,J2EEApplication=null"
      DefaultWebXML

      WARNING: Could not get Attributes for "amx:j2eeType=WebModule,name=//server/__wstx-
      services,J2EEServer=server,J2EEApplication=null"
      DefaultWebXML
      Override

      AMX gets these Attributes from the underlying com.sun.appserv MBean. The getting of them seems to
      be flaky. When I ran the test again, I see different failures:

      WARNING: Could not get Attributes for "amx:j2eeType=WebModule,name=//
      server/,J2EEServer=server,J2EEApplication=null"
      HasWebServices

      WARNING: Attribute HasWebServices failed with class javax.management.AttributeNotFoundException:
      HasWebServices

      WARNING: Could not get Attributes for "amx:j2eeType=WebModule,name=//server/__wstx-
      services,J2EEServer=server,J2EEApplication=null"
      HasWebServices

      WARNING: Attribute HasWebServices failed with class javax.management.AttributeNotFoundException:
      HasWebServices

        Activity

        Hide
        jluehe added a comment -

        Changing Summary line, since this is not a regression

        Show
        jluehe added a comment - Changing Summary line, since this is not a regression
        Hide
        sirajg added a comment -
            • Issue 3073 has been marked as a duplicate of this issue. ***
        Show
        sirajg added a comment - Issue 3073 has been marked as a duplicate of this issue. ***
        Hide
        Tom Mueller added a comment -

        Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.

        Show
        Tom Mueller added a comment - Bulk update to change fix version to "not determined" for all issues still open but with a fix version for a released version.
        Hide
        guojje added a comment -

        it is absolutely a issues, how soon will it be fixed?

        Show
        guojje added a comment - it is absolutely a issues, how soon will it be fixed?
        Hide
        guojje added a comment -

        I have fixed it. it is a thread safe issues.

        In class ManageMbean of commons-modeler project, the method createMbeanInfo does not aquire lock when it accessed the fields
        (contains attributes,notification and so on).

        so it is necessary to add syschronized(attributes) when access attributes.

        Show
        guojje added a comment - I have fixed it. it is a thread safe issues. In class ManageMbean of commons-modeler project, the method createMbeanInfo does not aquire lock when it accessed the fields (contains attributes,notification and so on). so it is necessary to add syschronized(attributes) when access attributes.

          People

          • Assignee:
            jluehe
            Reporter:
            llc
          • Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: