Its taking a combination of 2+3 as I need to be able to invoke methods on the entry and
this requires a InvokeDispatchContext. I'm down to this failure now:
| java.lang.reflect.UndeclaredThrowableException
| at
org.jboss.profileservice.management.KernelBusRuntimeComponentDispatcher.invoke(KernelBusRuntimeComponentDispatcher.java:123)
| at
org.jboss.profileservice.management.ManagementViewImpl$ManagedOperationDelegate.invoke(ManagementViewImpl.java:1358)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:121)
| at
org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
| at
org.jboss.profileservice.remoting.ProfileServiceInvocationHandler.invoke(ProfileServiceInvocationHandler.java:99)
| at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:908)
| at
org.jboss.remoting.transport.socket.ServerThread.completeInvocation(ServerThread.java:742)
| at
org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:695)
| at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:522)
| at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:230)
| Caused by: java.lang.IllegalArgumentException: Cannot execute invoke on non
InvokeDispatchContext context:
AbstractKernelRegistryEntry@2bc94f{target=ServiceControllerContext@4b934c{name=java.lang:type=Threading
target=null state=**ERROR** depends=AbstractDependencyInfo@ada032{idependOn=[]}
error=javax.management.InstanceNotFoundException: java.lang:type=Threading is not
registered.
| at
org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:529)
| at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:675)
| at
org.jboss.system.microcontainer.ServiceProxy.getServiceProxy(ServiceProxy.java:112)
| at
org.jboss.system.microcontainer.ServiceControllerContext.getServiceProxy(ServiceControllerContext.java:255)
| at
org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyLifecycleAction.java:41)
| at
org.jboss.system.microcontainer.CreateDestroyLifecycleAction.installAction(CreateDestroyLifecycleAction.java:37)
| ...
|
I'm going to allow the MBeanServer to be specified at the ServiceControllerContext
level so that it can be different from default MBeanServer used by the JMXKernel.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4213005#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...