JPPF Issue Tracker
Please log in to bookmark issues
CLOSED  Bug report JPPF-567  -  JMXDriverConnectionWrapper.getAllJobIds still exists and raises an exception
Posted Dec 18, 2018 - updated Dec 19, 2018
icon_info.png This issue has been closed with status "Closed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Bug report
  • Status
  • Assigned to
  • Progress
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
  • Owned by
    Not owned by anyone
  • Category
    Management / Monitoring
  • Resolution
  • Priority
  • Reproducability
  • Severity
  • Targetted for
    icon_milestones.png JPPF 6.0.2
Issue description
From this forums thread:

The method getAllJobIds() still exists in class JMXDriverConnectionWrapper, but it was removed from the DriverJobManagementMBean interface.

Using this method on a connected JMX wrapper always raises an exception: No such attribute: AllJobIds
  at com.sun.jmx.mbeanserver.PerInterface.getAttribute(Unknown Source)
  at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(Unknown Source)
  at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(Unknown Source)
  at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(Unknown Source)
  at org.jppf.jmxremote.nio.JMXMessageReader.handleRequest(
  at org.jppf.jmxremote.nio.JMXMessageReader.handleMessage(
  at org.jppf.jmxremote.nio.JMXMessageReader.access$0(
  at org.jppf.jmxremote.nio.JMXMessageReader$
  at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  at java.util.concurrent.ThreadPoolExecutor$ Source)
  at Source)
We should remove this method from JMXDriverConnectionWrapper as well and update the documentation to reflect that, and in particular state that to achieve the same goal the following should be used:
JMXDriverConnectionWrapper jmx = ...;
String jobUuids = jmx.getJobManager().getAllJobUuids();
Steps to reproduce this issue
Use the following client-side code:
try (JMXDriverConnectionWrapper jmx = new JMXDriverConnectionWrapper("localhost", 11111)) {
  if (jmx.connectAndWait(5000L)) {
    String[] ids = jmx.getAllJobIds();
    System.out.println("ids = " + Arrays.toString(ids));
  } else System.out.println("could not connect to localhost:11111");
} catch (Exception e) {

Comment posted by
Dec 19, 06:53
Fix plan:
  • in version 6.0.x, we will fix the method getAllJobIds() and deprecate it, We will remove all mentions from the doc, and replace them with getJobManager().getAllJobUuids()
  • in the upcoming version 6.1, we will remove the method. We will remove all mentions from the doc, and replace them with getJobManager().getAllJobUuids()