a cryptic error on using Java agents in build 144
Alan Bateman
Alan.Bateman at oracle.com
Thu Nov 17 15:48:21 UTC 2016
On 16/11/2016 17:48, Roman Shevchenko wrote:
> Nope (sorry, should have mentioned this).
This could only be one of two things so there's enough here to say that
this is a bug (a regression in jdk-9+143). In thaht build we cleaned up
the scenario that is the initial module on the module path but no class
path. When running with -javaagent then the class path is extended which
leads to a NPE (you can't see it because the exception is cleared in the
VM). I'll create a bug for this and we'll get it fixed. You can work
around it in the mean-time by adding `-cp <anything>` to the command line.
-Alan.
More information about the jdk9-dev
mailing list