• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JMX error: NameNotFoundException

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should use :

service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic