This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Distributed Java and the fly likes JMX error: NameNotFoundException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "JMX error: NameNotFoundException" Watch "JMX error: NameNotFoundException" New topic

JMX error: NameNotFoundException

Ashwini Wadikar

Joined: Nov 26, 2008
Posts: 2

I am using jmx for remote method calling. I am getting below error while I try to call a method over test object. 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:


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

Thank you.

[Nitesh: Added code tags. Please UseCodeTags]
[ November 26, 2008: Message edited by: Nitesh Kant ]
Andrei Matyas

Joined: Apr 15, 2007
Posts: 25
You should use :

It is sorta covered in the JavaRanch Style Guide.
subject: JMX error: NameNotFoundException
Similar Threads
Why did String not change?
ArrayList indexOf() method
Using of final keyword
modifying a list collections
Bringing an existing API to Remote Invocation