[Management, JMX/JBoss] - InokerAdaptorException in calling 'invoke' method
by chanyungwan
I have a 3.2.7 JBoss server 'A' with a registered MBean running on Linux 4 Enterprise Server. I then use another 3.2.7 JBoss server 'B' with another registered MBean running on Win2000 PC. I want to invoke the mbean method in serevr 'A' from the mbean in server 'B' using the following code:
Hashtable env = new Hashtable();
env.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
env.put("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
env.put("java.naming.provider.url", "192.168.10.231");
try
{
InitialContext initialContext = new InitialContext(env);
javax.management.MBeanServerConnection m_localRMIAdaptor = (javax.management.MBeanServerConnection)initialContext.lookup("jmx/rmi/RMIAdaptor");
ObjectName m_singletonMBeanObjectName = new ObjectName("jboss.jmx:service=emmb");
Object oo = m_localRMIAdaptor.invoke(m_singletonMBeanObjectName, "getHashCode", null, null);
if(oo != null) System.out.println("ok, get result 1...");
}
catch(Exception e) { e.printStackTrace(); }
However, I get the following exception
14:54:47,416 INFO [STDOUT] javax.management.MBeanException: org.jboss.jmx.conne
ctor.invoker.client.InvokerAdaptorException
14:54:47,416 INFO [STDOUT] at org.jboss.mx.server.ReflectedDispatcher.handl
eInvocationExceptions(ReflectedDispatcher.java:91)
14:54:47,416 INFO [STDOUT] at org.jboss.mx.server.ReflectedDispatcher.dispa
tch(ReflectedDispatcher.java:64)
14:54:47,416 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invoc
ation.java:62)
14:54:47,416 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invoc
ation.java:54)
14:54:47,416 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocat
ion.java:82)
14:54:47,416 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invo
ke(AbstractMBeanInvoker.java:198)
14:54:47,416 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
eanServerImpl.java:473)
14:54:47,416 INFO [STDOUT] at org.jboss.invocation.jrmp.server.JRMPProxyFac
tory.invoke(JRMPProxyFactory.java:164)
14:54:47,416 INFO [STDOUT] at sun.reflect.GeneratedMethodAccessor66.invoke(
Unknown Source)
14:54:47,416 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invo
ke(DelegatingMethodAccessorImpl.java:25)
14:54:47,432 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:5
85)
14:54:47,432 INFO [STDOUT] at org.jboss.mx.server.ReflectedDispatcher.dispa
tch(ReflectedDispatcher.java:60)
14:54:47,432 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invoc
ation.java:62)
14:54:47,432 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invoc
ation.java:54)
14:54:47,432 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocat
ion.java:82)
14:54:47,432 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invo
ke(AbstractMBeanInvoker.java:198)
14:54:47,432 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MB
eanServerImpl.java:473)
14:54:47,432 INFO [STDOUT] at org.jboss.invocation.local.LocalInvoker.invok
e(LocalInvoker.java:97)
14:54:47,432 INFO [STDOUT] at org.jboss.invocation.InvokerInterceptor.invok
eLocal(InvokerInterceptor.java:115)
14:54:47,432 INFO [STDOUT] at org.jboss.invocation.InvokerInterceptor.invok
e(InvokerInterceptor.java:101)
14:54:47,432 INFO [STDOUT] at org.jboss.jmx.connector.invoker.client.Invoke
rAdaptorClientInterceptor.invoke(InvokerAdaptorClientInterceptor.java:60)
14:54:47,432 INFO [STDOUT] at org.jboss.proxy.SecurityInterceptor.invoke(Se
curityInterceptor.java:55)
14:54:47,432 INFO [STDOUT] at org.jboss.proxy.ClientMethodInterceptor.invok
e(ClientMethodInterceptor.java:55)
14:54:47,432 INFO [STDOUT] at org.jboss.proxy.ClientContainer.invoke(Client
Container.java:86)
14:54:47,432 INFO [STDOUT] at $Proxy102.invoke(Unknown Source)
14:54:47,447 INFO [STDOUT] at sccMonitorHandler$compositeSingletonInvokerCl
ient.invoke(sccMonitorHandler.java:1086)
If the above code is running in 3.2.5, everything is fine. Are there any configurations I missed ? By the way, the above code also runs fine in a standalone client when invoking mbean method in 3.2.7 JBoss.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969645#3969645
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969645
19 years, 7 months
[Installation, Configuration & Deployment] - JBOSS deploy cannot success
by design2006
When i deploy the webapp using JBOSS 4.0.4, after success deploy EJB, it should follow by deploy validation rules. But it gives me error:
ERROR [MessageResourcesFactory] MessageResourcesFactory.createFactory
java.lang.NoClassDefFoundError: org/apache/struts/util/MessageResourcesFactory
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:672)
at org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:652)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:190)
at org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
at org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:517)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
when i paste the struts library in the server\default\lib folder, it gives me ClassCastException. Anyone have idea about this? thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969640#3969640
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969640
19 years, 7 months
[JBoss jBPM] - Missing console bean files in latest 3.2 CVS?
by jonabbey
Hi, all. We've been working for awhile with a cut off of CVS Head (probably from about 6 weeks ago, now). We've made a good deal of progress, but there are still some things that seem not to be working (we're presently having some confusion with swimlane management), so we thought we'd pull a modern HEAD from CVS and move our development environment to the latest code.
Unfortunately, it appears that a good deal has gone missing in the CVS trunk, especially in the web console app.
For instance, here is what we had from our last version's console/src/main/java/org/jbpm/webapp/bean directory:
AdminBean.java ProcessDefinitionBean.java
FormParameter.java ProcessInstanceBean.java
HomeBean.java TaskBean.java
IdentityBean.java TaskFormParameter.java
JbpmBean.java TaskInstanceVariableMap.java
JsfHelper.java TokenBean.java
MonitoringBean.java UserBean.java
ParticipantBean.java VariableBean.java
ProcessBean.java
and here is what is in the latest CVS:
IdentityBean.java ParticipantBean.java
JbpmBean.java TaskBean.java
JsfHelper.java TaskInstanceVariableMap.java
Despite this, console/src/webapp/layout.jsp in the newest CVS still makes reference to the UserBean class. webapp/admin.jsp makes reference to AdminBean, etc.
I'm assuming that I'm seeing code in the middle of being torn apart and put back together in some new form, but I don't know where the missing pieces have got to. Is there a new CVS module side by side with the jbpm.3 module in the repository?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969632#3969632
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969632
19 years, 7 months