title: JMX RuntimeException operation failed with status waiting
body: <p>I am trying to run the Oracle JMX example, consisting of an agent and a client. The Agent runs perfectly, but when I try to run the client I get an exception:</p>
  
  <pre><code>Exception in thread "main" java.lang.RuntimeException: Operation failed with status WAITING
      at org.jboss.remotingjmx.RemotingConnector.connect(RemotingConnector.java:154)
      at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:268)
      at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:227)
      at com.example.Client.main(Client.java:61)
  </code></pre>
  
  <p>this is the part of the code where it goes wrong:</p>
  
  <pre><code>        String host = "localhost";
      int port = 9999;
      String urlString = System.getProperty("jmx.service.url","service:jmx:remoting-jmx://" + host + ":" + port);
      JMXServiceURL url = new JMXServiceURL(urlString);
      JMXConnector jmxc = JMXConnectorFactory.connect(url);
  </code></pre>
  
  <p>Does anyone know what may have cause this?</p>