a cryptic error on using Java agents in build 144
Roman Shevchenko
roman.shevchenko at jetbrains.com
Wed Nov 16 17:48:29 UTC 2016
Nope (sorry, should have mentioned this).
On Mi, Nov 16, 2016 at 6:43 , Alan Bateman <Alan.Bateman at oracle.com>
wrote:
> 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