Hey everyone, currently going through an upgrade from jppf 5.1.3 to 6.0. Migration for the most part has been good, running into a couple of issues/challenges
First here's the version I've deployed:
INFO [2018-12-17 15:02:20,265] --------------------------------------------------------------------------------
INFO [2018-12-17 15:02:20,265] JPPF Version: 6.0, Build number: 2240, Build date: 2018-10-06 09:32 CEST
INFO [2018-12-17 15:02:20,265] starting node with PID=16592, UUID=C139E8FF-0046-0267-D5E8-274B970AFE01
INFO [2018-12-17 15:02:20,265] --------------------------------------------------------------------------------
1.getAllJobIds management API is no longer available, from what I can tell it's to be substituted with getAllJobUuids. However no such method exists the JMXDriverConnectionWrapper, still has getAllJobIds which throws the following exception:
javax.management.AttributeNotFoundException: No such attribute: AllJobIds
at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:81)
at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:206)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:647)
at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678)
at org.jppf.jmxremote.nio.JMXMessageReader.handleRequest(JMXMessageReader.java:125)
at org.jppf.jmxremote.nio.JMXMessageReader.handleMessage(JMXMessageReader.java:98)
at org.jppf.jmxremote.nio.JMXMessageReader.access$0(JMXMessageReader.java:95)
at org.jppf.jmxremote.nio.JMXMessageReader$HandlingTask.run(JMXMessageReader.java:339)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Possibly jppf client issue?
2. Consistently get java.lang.InterruptedException on existing call to see if driver is running.
try (JMXDriverConnectionWrapper jmxDriverConn = new JMXDriverConnectionWrapper("localhost", 11111)) {
jmxDriverConn.connectAndWait(5000);
if (jmxDriverConn.isConnected()) {
......
}
} catch (Exception e) {
........................
}
}
This exception is swallowed with JPPF, never reaches the above catch block:
WARN [2018-12-17 15:02:14,468] java.lang.InterruptedException
DEBUG [2018-12-17 15:02:14,468] localhost:11111 JMX URL = service:jmx:jppf://localhost:11111
java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect0(Native Method)
at sun.nio.ch.Net.connect(Net.java:454)
at sun.nio.ch.Net.connect(Net.java:446)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648)
at org.jppf.comm.socket.SocketChannelClient.open(SocketChannelClient.java:248)
at org.jppf.comm.socket.SocketInitializerImpl.initialize(SocketInitializerImpl.java:105)
at org.jppf.comm.socket.QueuingSocketInitializer.access$001(QueuingSocketInitializer.java:31)
at org.jppf.comm.socket.QueuingSocketInitializer$1.call(QueuingSocketInitializer.java:61)
at org.jppf.comm.socket.QueuingSocketInitializer$1.call(QueuingSocketInitializer.java:58)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
DEBUG [2018-12-17 15:02:14,468]
java.lang.NullPointerException
at org.jppf.jmxremote.JPPFJMXConnector.close(JPPFJMXConnector.java:140)
at org.jppf.management.JMXConnectionWrapper$1.run(JMXConnectionWrapper.java:137)
at java.lang.Thread.run(Thread.java:748)
Any assistance would be greatly appreciated.
CM