aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes jms lookup fails Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "jms lookup fails" Watch "jms lookup fails" New topic
Author

jms lookup fails

Dejies Deoder
Greenhorn

Joined: Mar 06, 2008
Posts: 1
hai,
I am running a jms application using jboss4.0.5 in linux env.
when i run it on my local machine everything works fine, but when is
change the server ip iam getting the following exception,Also my queuename and providerurl is given below.
can any one tell me why this is happening
thanks in advance
dejies




Error:---------------------------------------------
javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.test.jsm.Services.jndiLookUp(Services.java:39)
at com.test.jsm.Services.getQueueConnectionFactory(Services.java:26)
at com.test.jsm.Receiving.main(Receiving.java:38)
Caused by: java.rmi.NoSuchObjectException: no such object in table
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
... 5 more
7 Mar, 2008 11:11:53 AM com.test.jsm.Services jndiLookUp
SEVERE: null
javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table]
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:722)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.test.jsm.Services.jndiLookUp(Services.java:39)
at com.test.jsm.Services.getQueueConnectionFactory(Services.java:26)
at com.test.jsm.Receiving.main(Receiving.java:38)
Caused by: java.rmi.NoSuchObjectException: no such object in table
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:625)
... 5 more
Exception in thread "Main Thread" java.lang.NullPointerException
at com.test.jsm.Receiving.main(Receiving.java:39)
/Error:--------------------------------------------------------------------


QueueName:- queue/testqueue

Provider Url:-------------------------------------------
properties.put("java.naming.provider.url", "jnp://192.168.0.17:1099");
jndiContext = new InitialContext(properties);
/Provider Url:------------------------------------------
 
wood burning stoves
 
subject: jms lookup fails