[jboss-user] [Clustering/JBoss] - NameNotFound Exception on switching over
kanth_seenu
do-not-reply at jboss.com
Fri Oct 5 08:39:07 EDT 2007
I have setup two nodes in cluster
1. The first node starts the clustered service successfully
2. The second waits to start the service
Everything works fine upto this.
Once the first node goes down, the immediate task that has to happen is to publish a JMS message.
But what I get is just exceptions, thru Sys.out I am able to see the second node succeeds in isMasterNode check, but it is not able to publish the JMS message, may be due to the following exceptions
I have given the exceptions below. I am able to see similiar posts but with no answers. After many hours without any help I am posting it here
javax.naming.NameNotFoundException: ConnectionFactory not bound
| 17:33:03,669 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| 17:33:03,669 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| 17:33:03,669 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| 17:33:03,669 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
| 17:33:03,669 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
| 17:33:03,669 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
| 17:33:03,669 ERROR [STDERR] at javax.naming.InitialContext.lookup(Unknown Source)
| 17:33:03,669 ERROR [STDERR] at com.framework.djms.util.JmsUtil.lookup(JmsUtil.java:124)
| 17:33:03,670 ERROR [STDERR] at com.framework.djms.util.JmsUtil.getTopicConnectionFactory(JmsUtil.java:160)
| 17:33:03,674 ERROR [STDERR] at com.framework.djms.publisher.TopicNonDurablePublisher.init(TopicNonDurablePublisher.java:47)
| 17:33:03,674 ERROR [STDERR] at com.framework.djms.common.PublisherManager.sendMessage(PublisherManager.java:140)
| 17:33:03,674 ERROR [STDERR] at com.framework.djms.common.PublisherManager.sendMessage(PublisherManager.java:100)
| 17:33:03,674 ERROR [STDERR] at com.server.common.startup.cluster.MyClusterService.startService(MyClusterService.java:54)
| 17:33:03,675 ERROR [STDERR] at com.server.common.startup.cluster.MyClusterService.startSingleton(MyClusterService.java:227)
| 17:33:03,676 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 17:33:03,676 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| 17:33:03,676 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| 17:33:03,676 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| 17:33:03,676 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 17:33:03,676 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 17:33:03,676 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 17:33:03,676 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 17:33:03,676 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 17:33:03,676 ERROR [STDERR] at org.jboss.ha.singleton.HASingletonController.invokeSingletonMBeanMethod(HASingletonController.java:207)
| 17:33:03,677 ERROR [STDERR] at org.jboss.ha.singleton.HASingletonController.startSingleton(HASingletonController.java:144)
| 17:33:03,677 ERROR [STDERR] at org.jboss.ha.singleton.HASingletonSupport.makeThisNodeMaster(HASingletonSupport.java:197)
| 17:33:03,677 ERROR [STDERR] at org.jboss.ha.singleton.HASingletonSupport.partitionTopologyChanged(HASingletonSupport.java:133)
| 17:33:03,677 ERROR [STDERR] at org.jboss.ha.jmx.HAServiceMBeanSupport$1.replicantsChanged(HAServiceMBeanSupport.java:247)
| 17:33:03,677 ERROR [STDERR] at org.jboss.ha.framework.server.DistributedReplicantManagerImpl.notifyKeyListeners(DistributedReplicantManagerImpl.java:845)
| 17:33:03,677 ERROR [STDERR] at org.jboss.ha.framework.server.DistributedReplicantManagerImpl.processEvent(DistributedReplicantManagerImpl.java:386)
| 17:33:03,677 ERROR [STDERR] at org.jboss.ha.framework.server.AsynchEventHandler.run(AsynchEventHandler.java:107)
| 17:33:03,677 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
Followed by
provider failure detected for ServerStopPerfMDBean
| org.jboss.mq.SpyJMSException: Exiting on IOE; - nested throwable: (java.io.EOFException)
| at org.jboss.mq.SpyJMSException.getAsJMSException(SpyJMSException.java:72)
| at org.jboss.mq.Connection.asynchFailure(Connection.java:421)
| at org.jboss.mq.il.uil2.UILClientILService.asynchFailure(UILClientILService.java:174)
| at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleStop(SocketManager.java:439)
| at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:371)
| at java.lang.Thread.run(Unknown Source)
| Caused by: java.io.EOFException
| at java.io.ObjectInputStream$BlockDataInputStream.readByte(Unknown Source)
| at java.io.ObjectInputStream.readByte(Unknown Source)
| at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:316)
| ... 1 more
my jboss-service XML
| <server>
| <mbean code="org.jboss.ha.singleton.HASingletonController"
| name="com:service=MyService-HASingletonController">
| <depends>jboss:service=${jboss.partition.name:DefaultPartition}</depends>
| <depends>com:service=MyClusterService</depends>
| <attribute name="PartitionName">${jboss.partition.name:DefaultPartition}</attribute>
| <attribute name="TargetName">com:service=MyClusterService</attribute>
| <attribute name="TargetStartMethod">startSingleton</attribute>
| <attribute name="TargetStopMethod">stopSingleton</attribute>
| </mbean>
| <mbean code="com.server.common.startup.cluster.MyClusterService"
| name="com:service=MyClusterService">
| </mbean>
| </server>
|
Am I missing anything fundamental
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4091967#4091967
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4091967
More information about the jboss-user
mailing list