This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jms lookup fails

 
Dejies Deoder
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:------------------------------------------
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic