[jboss-user] [JBoss Messaging] - Re: failed to add topic in JBM 1.3

xkong do-not-reply at jboss.com
Thu Jun 7 16:23:29 EDT 2007


Here is what I see in JNDIView:

  |   +- topic (class: org.jnp.interfaces.NamingContext)
  |   |   +- testDurableTopic (class: org.jboss.jms.destination.JBossTopic)
  |   |   +- TopicWithOwnRedeliveryDelay (class: org.jboss.jms.destination.JBossTopic)
  |   |   +- xCacheInvalidationTopic (class: org.jboss.jms.destination.JBossTopic)
  |   |   +- testTopic (class: org.jboss.jms.destination.JBossTopic)
  |   |   +- ServerCacheInvalidationTopic (class: org.jboss.jms.destination.JBossTopic)
  |   |   +- testDistributedTopic (class: org.jboss.jms.destination.JBossTopic)
  |   |   +- TopicWithOwnDLQAndExpiryQueue (class: org.jboss.jms.destination.JBossTopic)
  |   |   +- securedTopic (class: org.jboss.jms.destination.JBossTopic)
  | 


Here is Java code to look up topic topic/xCacheValidationTopic:

  | 			jndi = new InitialContext();
  | 		
  | 		TopicConnectionFactory connFactory = (TopicConnectionFactory)jndi.lookup("ConnectionFactory");
  | 		
  | 		if (connFactory == null) {
  | 		    throw new NullPointerException("The TopicConnectionFactory for JMS cache invalidation was NULL");
  | 		}
  | 	
  | 		connection = connFactory.createTopicConnection();
  | 		if (connection == null) {
  | 		    throw new NullPointerException("The TopicConnection for JMS cache invalidation was NULL!");
  | 		}
  | 		
  | 		jmsSession = connection.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);
  | 		if (jmsSession == null) {
  | 		    throw new NullPointerException("The TopicSession for JMS cache invalidation was null");
  | 		}
  | 	
  | 		topic = (Topic)jndi.lookup(topicName);
  | 

MBean in destination-service.xml:

  |    <mbean code="org.jboss.jms.server.destination.TopicService"
  |       name="jboss.messaging.destination:service=Topic,name=CacheInvalidationTopic"
  |       xmbean-dd="xmdesc/Topic-xmbean.xml">
  |       <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
  |       <depends>jboss.messaging:service=PostOffice</depends>
  |       <attribute name="Clustered">true</attribute>
  |    </mbean>
  | 

Exception:

  | javax.naming.NameNotFoundException: topic/xCacheInvalidationTopic
  | 	at org.jboss.ha.jndi.TreeHead.lookup(TreeHead.java:242)
  | 	at org.jboss.ha.jndi.HAJNDI.lookup(HAJNDI.java:155)
  | 	at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | 	at java.lang.reflect.Method.invoke(Unknown Source)
  | 	at org.jboss.ha.framework.server.HARMIServerImpl.invoke(HARMIServerImpl.java:209)
  | 	at sun.reflect.GeneratedMethodAccessor69.invoke(Unknown Source)
  | 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  | 	at java.lang.reflect.Method.invoke(Unknown Source)
  | 	at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
  | 	at sun.rmi.transport.Transport$1.run(Unknown Source)
  | 	at java.security.AccessController.doPrivileged(Native Method)
  | 	at sun.rmi.transport.Transport.serviceCall(Unknown Source)
  | 	at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
  | 	at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
  | 	at java.lang.Thread.run(Unknown Source)
  | 	at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
  | 	at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
  | 	at sun.rmi.server.UnicastRef.invoke(Unknown Source)
  | 	at org.jboss.ha.framework.server.HARMIServerImpl_Stub.invoke(Unknown Source)
  | 	at org.jboss.ha.framework.interfaces.HARMIClient.invokeRemote(HARMIClient.java:172)
  | 	at org.jboss.ha.framework.interfaces.HARMIClient.invoke(HARMIClient.java:267)
  | 	at $Proxy0.lookup(Unknown Source)
  | 	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:626)
  | 	at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:588)
  | 	at javax.naming.InitialContext.lookup(Unknown Source)
  | 
Thanks.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052294#4052294

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052294



More information about the jboss-user mailing list