cancel
Showing results for 
Search instead for 
Did you mean: 

Exception : while retrieving MBean Info

Former Member
0 Kudos

Hi,

I trying to extract the MBeanInfo details as follows:

private static void getMBeanInformation(MBeanServerConnection mcon, ObjectName obj)

{

try

{

MBeanInfo bean = mcon.getMBeanInfo(obj);

System.out.println((bean.getClassName()).toString());

}

catch(Exception e){ System.out.println("Exception -> "+ e);}

}

I am getting the follwong exception:

Exception -> javax.management.InstanceNotFoundException: com.sap.default:* not in repository

Plz any one can help in resolveing this issue.

Thanks in Advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Are you sure, the MBean is registered?

Also are you obtaining the ObjectName from somewhere, or creating it yourself?

You sure that it is correct?

Is this MBean registered on a local or a remote engine?

Gagan.