Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1095209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:05:18+00:00 2026-05-17T00:05:18+00:00

final RuntimeMXBean remoteRuntime = ManagementFactory.newPlatformMXBeanProxy( serverConnection, ManagementFactory.RUNTIME_MXBEAN_NAME, RuntimeMXBean.class); Where the serverConnection is just basically

  • 0
final RuntimeMXBean remoteRuntime = 
                ManagementFactory.newPlatformMXBeanProxy(
                        serverConnection,
                    ManagementFactory.RUNTIME_MXBEAN_NAME,
                    RuntimeMXBean.class);

Where the serverConnection is just basically connecting to a jmx server.

What basically is going on is, this piece of code works fine. Let me explain:

The first call of this piece of code calls to server A, I then scrape some data in it and store it into an xml file. Using this information, start up a new server B.

Then, in wanting to verify B, I want to scrape B to compare the metadata. But when I run it I get the exception

    java.lang.IllegalArgumentException: java.lang:type=Runtime is not an instance of interface java.lang.management.RuntimeMXBean
        at java.lang.management.ManagementFactory.newPlatformMXBeanProxy(ManagementFactory.java:617

)

But, not sure what changes here since the parameters that are giving me problems are managed by the ManagementFactory class I don’t have control over.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T00:05:18+00:00Added an answer on May 17, 2026 at 12:05 am

    The problem was with my own MBeanServer implementation.

    I had it returning false for the isInstanceOf() method if the passed in objectName returned a null Object. It turns out that this happened at all RunTime Classes so after reading http://tim.oreilly.com/pub/a/onjava/2005/01/26/classloading.html under the Class Loader section, I went with the fact that my ClassLoaderImplementation was incorrect and was loading these incorrectly.

    Work around was just to return true in isInstanceOf() for these RunTime classes.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

final Criteria crit = session.createCriteria(MyClass.class); final List<MyClass> myClassList = crit.list(); results in this :
final Context myApp = this; /* An instance of this class will be registered
final class DBGlobalsException extends Exception { String mistake; //where this is shorthand for chained
Final goal: Have a few java objects sharing the same base class persisted into
Final Update : Turns out the fix to this problem is a depressing one.
public final class BrowserTopComponent extends TopComponent implements ActionListener, ChangeListener, LookupListener{ public BrowserTopComponent() { initComponents();
Final solution to this issue is given below the question My goal is to
Final update: I had forgotten to run the initdb command. By running this command
My final code looks like this: <a href=/galleries/hairtinsels/hairtinsel/hairtinsels.jpg rel=shadowbox[gallery] title=Hair Tinsels, 24 Colour Choices,
final CharSequence[] items = {Red, Green, Blue} AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitle(Pick a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.