RFR: JDK-8057746: Cannot handle JdpException in JMX agent initialization.

Yasumasa Suenaga yasuenag at gmail.com
Sun Sep 7 13:04:57 UTC 2014

Hi all,

This issue is related to JDK-8057556: JDP should better handle non-active interfaces

JMX agent will be terminated silently when I run command as following:

java -Dcom.sun.management.jmxremote.port=7091 -Dcom.sun.management.jmxremote.authenticate=false
     -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.autodiscovery=true
     -Dcom.sun.management.jdp.source_addr= -version

I expect JdpException which is caused by "com.sun.management.jdp.source_addr" .

Curently, sun.management.Agent#startDiscoveryService() throws AgentConfigurationError
when JdpException is occurred. However, argument of AgentConfiguratonError constructor
is incorrected. So NPE will be occurred. (I checked it with jdb.)

I've created webrev. Could you review it?

I would like to contribute this patch.
Please review and sponsoring.



More information about the core-libs-dev mailing list