Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMX error: NameNotFoundException

 
Ashwini Wadikar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am using jmx for remote method calling. I am getting below error while I try to call a method over test object.

java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.NameNotFoundException: testObj

I am using this jmx url: service:jmx:rmi://localhost/jndi/rmi://localhost:1099/testObj

I have checked and the object is being registered over the same jmxURL as above.

Following is the code which is used to invoke the function:

J

Can any one tell me what can be the problem here and how this can be fixed?

Thank you.
-
Ashwini

[Nitesh: Added code tags. Please UseCodeTags]
[ November 26, 2008: Message edited by: Nitesh Kant ]
 
Andrei Matyas
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should use :

service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic