I have a 4 node jboss(3.2.6) cluster. I have a test MBean that runs as a
HASingleton on this cluster. All the test MBean does is lookup
XAConnectionFactory. Here is the code that does the lookup
| Properties p = System.getProperties();
| p.put(Context.PROVIDER_URL, "localhost:1100");
| Context jndiContext = new InitialContext(p);
| jndiContext.lookup("XAConnectionFactory");
|
When I call stop() on this MBean(using jmx-console) on the Master node (where
the MBean is currently running), it starts the MBean on another node and
attempts to lookup XAConnectionFactory, but fails with the following exception
| javax.naming.NameNotFoundException: XAConnectionFactory
| at org.jboss.ha.jndi.TreeHead.lookup(TreeHead.java:237)
| at org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:148)
| 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:324)
| at
org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:201)
| at $Proxy42.lookup(Unknown Source)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:621)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:583)
| at javax.naming.InitialContext.lookup(InitialContext.java:347)
| at
com.racoman.ccc.mbeansUtils.jmsMonitorService.TestFailoverService.connectToMessageQueue(TestFailoverService.java:133)
| at
com.racoman.ccc.mbeansUtils.jmsMonitorService.TestFailoverService.startSingleton(TestFailoverService.java:62)
| 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:324)
| at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:74)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:76)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:68)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:96)
| at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:213)
| at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:484)
| at
org.jboss.ha.singleton.HASingletonController.invokeSingletonMBeanMethod(HASingletonController.java:207)
| at
org.jboss.ha.singleton.HASingletonController.startSingleton(HASingletonController.java:144)
| at
org.jboss.ha.singleton.HASingletonSupport.makeThisNodeMaster(HASingletonSupport.java:197)
| at
org.jboss.ha.singleton.HASingletonSupport.partitionTopologyChanged(HASingletonSupport.java:133)
| at
org.jboss.ha.jmx.HAServiceMBeanSupport$1.replicantsChanged(HAServiceMBeanSupport.java:211)
| at
org.jboss.ha.framework.server.DistributedReplicantManagerImpl.notifyKeyListeners(DistributedReplicantManagerImpl.java:780)
| at
org.jboss.ha.framework.server.DistributedReplicantManagerImpl._remove(DistributedReplicantManagerImpl.java:587)
| 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:324)
| at org.jgroups.blocks.MethodCall.invoke(MethodCall.java:236)
| at
org.jboss.ha.framework.server.HAPartitionImpl.handle(HAPartitionImpl.java:898)
| at
org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:615)
| at
org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:512)
| at
org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:326)
| at
org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.handleUp(MessageDispatcher.java:722)
| at
org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.access$300(MessageDispatcher.java:554)
| at
org.jgroups.blocks.MessageDispatcher$1.run(MessageDispatcher.java:691)
| at java.lang.Thread.run(Thread.java:534)
|
|
| I have tried upgrading to jboss 3.2.8. But had the same problems with
3.2.8. What am I missing?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949184#3949184
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949184
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user