NPE in InstrumentationImpl.transform()

Michael Rasmussen michael.rasmussen at zeroturnaround.com
Thu May 5 14:56:10 UTC 2016


Hi

Loading classes from the unnamed boot module (for instance an agent) causes:
*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding"
with message transform method call failed at JPLISAgent.c line: 884

Due to trying to dereference the null-loader in
sun.instrument.InstrumentationImpl:439
module = loader.getUnnamedModule();

simple example:
package pkg;
public class Agent {
  public static void premain(String args, Instrumentation ins) {
    new Object() {};
  }
}

and then in manifest have:
Premain-Class: pkg.Agent
Boot-Class-Path: agent.jar

Regards
/Michael


More information about the jigsaw-dev mailing list