Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Help with JMX and Netbeans Tutorial (Outdated or broken)

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I didn't see a JMX Forum out here, so I am hope for help here.

Good afternoon:

I am working on a tutorial:

Developing a Java Management Extensions (JMX) Manager and Connecting to a Remote JMX Agent Using NetBeans IDE 6.0

Exercise 5: Running the Manager

http://www.netbeans.org/kb/60/java/jmx-manager-tutorial.html#Exercise_1

Where,
The given code was as follows:

***code deleted***

I am receiving the following error, where I understand that the connection was refused. I used the default port of 1099 as in the tutorial. Has anyone got this to work
under Netbeans 6.7.1?


 
author
Posts: 23878
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for deleting the code, but that is just too much code. The javascript was choking on it.

Henry

 
Preston Thornton
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No worries . . .
same problem at the JMX Forum.
 
Marshal
Posts: 25669
69
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Presumably at this other forum they will already have told you that

Connection refused: connect


simply means that you tried to connect to a server which is not running? Or that you specified the wrong port, or that there is a firewall blocking communication?
 
Henry Wong
author
Posts: 23878
142
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am receiving the following error, where I understand that the connection was refused. I used the default port of 1099 as in the tutorial. Has anyone got this to work under Netbeans 6.7.1?



Well, netbeans is running the client, but... what is the server? Most application servers don't, by default, run the RMI connector, since it expects you to get to the MBean server via JNDI. And as for the JVM itself, that too, isn't running by default, as it is expected that you go through the ManagementFactory.

So... you need to confirm that you are running the RMI connector on the server, to be able to use it from the client.

Henry

 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Preston Thornton wrote:No worries . . .
same problem at the JMX Forum.



Which forum is that?
You might want to read http://faq.javaranch.com/java/BeForthrightWhenCrossPostingToOtherSites
 
Anderson gave himself the promotion. So I gave myself this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic