- mbean interface and mbean impl class does not follow bean name convention
- it is not properly initialized - see how configurator is created.
Bartosz Baranowski
JBoss R & D
==================================
Word of criticism meant to improve is always step forward.
On Thu, Mar 31, 2011 at 12:14 AM, maxsap <max.sapranidis@gmail.com> wrote:
Hello, I would like to deploy a new Mbean in the sip services example
so I can manage the wrighting from/to a file.
I have 3 classes one that is called CdrGenerator and implements
CdrMBean,Serializable and Clonable. The second is CdrMBean witch
extends CDRConfigurator witch is an interfacye located under the
common package, just like the original example does with
proxyConfiguratorMBean, ProxyConfigurator and Proxy configuration
classes. the problem is that I am getting this exeption:
01:04:31,088 ERROR [STDERR]
javax.management.NotCompliantMBeanException: Class does not expose a
management interface: java.lang.Object
01:04:31,088 ERROR [STDERR] at
org.jboss.mx.metadata.MBeanCapability.of(MBeanCapability.java:102)
01:04:31,089 ERROR [STDERR] at
org.jboss.mx.metadata.MBeanCapability.of(MBeanCapability.java:100)
01:04:31,089 ERROR [STDERR] at
org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:
190)
01:04:31,089 ERROR [STDERR] at
sun.reflect.GeneratedMethodAccessor75.invoke(Unknown Source)
01:04:31,089 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
01:04:31,089 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:597)
01:04:31,089 ERROR [STDERR] at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:
157)
01:04:31,089 ERROR [STDERR] at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
01:04:31,089 ERROR [STDERR] at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:
138)
01:04:31,090 ERROR [STDERR] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
01:04:31,090 ERROR [STDERR] at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:
140)
01:04:31,090 ERROR [STDERR] at
org.jboss.mx.server.Invocation.invoke(Invocation.java:90)
01:04:31,090 ERROR [STDERR] at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:
264)
01:04:31,090 ERROR [STDERR] at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
01:04:31,090 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl
$3.run(MBeanServerImpl.java:1431)
01:04:31,090 ERROR [STDERR] at
java.security.AccessController.doPrivileged(Native Method)
01:04:31,090 ERROR [STDERR] at
org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:
1426)
01:04:31,091 ERROR [STDERR] at
org.jboss.mx.server.MBeanServerImpl.registerMBean(MBeanServerImpl.java:
376)
01:04:31,091 ERROR [STDERR] at
org.mobicents.slee.services.sip.proxy.mbean.CdrGenerator.startService(CdrGenerator.java:
109)
01:04:31,091 ERROR [STDERR] at
org.mobicents.slee.services.sip.proxy.ProxySbb.startMBeanConfigurator(ProxySbb.java:
272)
01:04:31,091 ERROR [STDERR] at
org.mobicents.slee.services.sip.proxy.ProxySbb.onServiceStarted(ProxySbb.java:
183)
01:04:31,091 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
01:04:31,092 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
01:04:31,092 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
01:04:31,092 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:597)
01:04:31,092 ERROR [STDERR] at
org.mobicents.slee.runtime.sbbentity.SbbEntityImpl.invokeEventHandler(SbbEntityImpl.java:
475)
01:04:31,092 ERROR [STDERR] at
org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.routeQueuedEvent(EventRoutingTaskImpl.java:
356)
01:04:31,092 ERROR [STDERR] at
org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.run(EventRoutingTaskImpl.java:
104)
01:04:31,092 ERROR [STDERR] at
org.mobicents.slee.runtime.eventrouter.EventRouterExecutorImpl
$EventRoutingTaskStatsCollector.run(EventRouterExecutorImpl.java:51)
01:04:31,092 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
01:04:31,092 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
01:04:31,093 ERROR [STDERR] at java.lang.Thread.run(Thread.java:662)
regards maxsap.