a cryptic error on using Java agents in build 144
Alan Bateman
Alan.Bateman at oracle.com
Wed Nov 16 17:43:45 UTC 2016
On 16/11/2016 17:36, Roman Shevchenko wrote:
> Hi,
>
> in jdk9+144, a program launched in a module path mode with a fairly simple
> Java agent attached fails with a pretty cryptic error message:
>
> Unexpected error (113) returned by AddToSystemClassLoaderSearch
> Unable to add /home/sher/Tools/idea/lib/idea_rt.jar to system class
> path - the system class loader does not define the
> appendToClassPathForInstrumentation method or the method failed
> FATAL ERROR in native method: processing of -javaagent failed
>
> The same agent works just fine in a class path mode; in jdk9+142 it worked
> in both modes.
> Please advice.
>
I think I can explain this but first, are you running with a custom
system class loader (-Djava.system.class.loader)?
-Alan.
More information about the jdk9-dev
mailing list