[ mx4j-Bugs-817841 ] InvokeMBeanServerInterceptor.getMBeanInfo() throws Null Ptr
"SourceForge.net" <[email protected]>
| Newsgroups | gmane.comp.java.mx4j.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #817841, was opened at 2003-10-04 21:43
Message generated for change (Comment added) made by biorn_steedom
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=817841&group_id=47745
Category: JMX implementation
Group: Release 1.1.1
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Yoke Lee (yoke)
>Assigned to: Simone Bordet (biorn_steedom)
Summary: InvokeMBeanServerInterceptor.getMBeanInfo() throws Null Ptr
Initial Comment:
InvokeMBeanServerInterceptor.getMBeanInfo() throws
NullPointerException for a DynamicMBean
Steps to reproduce.
1. Create a DynamicMBean
2. Call the getMBeanInfo() method
public MBeanInfo getMBeanInfo(MBeanMetaData
metadata)
{
if (metadata.dynamic)
{
// left out code here ....
// Refresh also ObjectInstance.getClassName(), if it's
the case
String className = info.getClassName();
// *problem* is here where the metadata.instance is
not yet initialized.
if (!metadata.instance.getClassName().equals
(className))
{
metadata.instance = new ObjectInstance
(metadata.name, className);
}
}
return (MBeanInfo)metadata.info.clone();
}
---------------
stack trace
java.lang.NullPointerException
at
mx4j.server.interceptor.InvokerMBeanServerInterceptor.g
etMBeanInfo
(InvokerMBeanServerInterceptor.java:190)
at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.g
etMBeanInfo
(DefaultMBeanServerInterceptor.java:118)
at
mx4j.server.interceptor.SecurityMBeanServerInterceptor.
getMBeanInfo
(SecurityMBeanServerInterceptor.java:73)
at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.g
etMBeanInfo
(DefaultMBeanServerInterceptor.java:118)
at
mx4j.server.interceptor.DefaultMBeanServerInterceptor.g
etMBeanInfo
(DefaultMBeanServerInterceptor.java:118)
at
mx4j.server.interceptor.ContextClassLoaderMBeanServerI
nterceptor.getMBeanInfo
(ContextClassLoaderMBeanServerInterceptor.java:126)
at mx4j.server.MBeanServerImpl.getMBeanInfo
(MBeanServerImpl.java:1420)
----------------------------------------------------------------------
>Comment By: Simone Bordet (biorn_steedom)
Date: 2003-10-07 14:18
Message:
Logged In: YES
user_id=128193
I closed this bug as duplicate of #714653 (which is fixed in
CVS).
Try to update to the current CVS head, the bug should be gone.
Thanks anyway for taking the time of submitting MX4J bugs.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=450647&aid=817841&group_id=47745
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf