dev@glassfish.java.net

Re: non-compliant AMX MBeans

From: Lloyd Chambers <Lloyd.Chambers_at_Sun.COM>
Date: Mon, 29 Jun 2009 13:34:27 -0700

There is one other potential problem: when are the MBeans being created?

If they are created before DomainRoot, how can they have a parent?

Could that be the problem?

Lloyd

On Jun 29, 2009, at 1:17 PM, Ken Cavanaugh wrote:

> Lloyd Chambers wrote:
>> Someone has been creating AMX MBeans in Glassfish V3 using Gmbal
>> (good).
>>
>> Except that the MBeans are in violation of the AMX spec: the
>> Parent attribute is being returned as null. This will cause all
>> sorts of downstream problems, namely breaking any client proxy code
>> involving any non-complaint MBeans. It is also causing a mess in
>> the server log and interfering with my progress elsewhere in AMX.
>>
>> In particular, the following MBeans fail when asked for the
>> critical 'Parent' attribute, returning 'null':
>>
>> v3:type=JVMClassLoadingStatsProvider,name=jvm/class-loading-
>> system,pp=/mon/server-mon[das]
>> v3:type=JVMRuntimeStatsProvider,name=jvm/runtime,pp=/mon/server-
>> mon[das]
>> v3:type=JVMMemoryStatsProvider,name=jvm/memory,pp=/mon/server-
>> mon[das]
>> v3:type=JVMGCStatsProvider,name=jvm/garbage-collectors,pp=/mon/
>> server-mon[das]
>> v3:type=JVMCompilationStatsProvider,name=jvm/compilation-system,pp=/
>> mon/server-mon[das]
>> v3:type=JVMOSStatsProvider,name=jvm/operating-system,pp=/mon/server-
>> mon[das]
>> v3:pp=/mon/server-mon[das],type=HttpServiceStatsProvider,name=http-
>> service/__asadmin
>>
>> Will whoever is responsible for these MBeans please contact me to
>> resolve this--thanks.
>>
> Keep me in the loop on this, in case this is a Gmbal problem. I'm
> concerned about
> MBeans registered at the Gmbal root using a ManagedObjectManager
> that was created
> with createFederated (the normal case in GFv3). I'm checking my
> tests and investigating this now.
>
> Thanks,
>
> Ken.
>
>

Lloyd Chambers
lloyd.chambers_at_sun.com
GlassFish Team