oracle/graal · error · GraalError
Line %d of %s: %s%n%s%n%s generated by command: %s
Error message
Line %d of %s: %s%n%s%n%s generated by command: %s
What it means
Error "Line %d of %s: %s%n%s%n%s generated by command: %s" thrown in oracle/graal.
Source
Thrown at compiler/src/jdk.graal.compiler.libgraal/src/jdk/graal/compiler/libgraal/GetJNIConfig.java:187
} catch (ClassNotFoundException e3) {
// ignore
}
throw new GraalError(e, "Cannot find class %s during LibGraal JNIConfiguration registration", name);
}
}
private void check(boolean condition, String format, Object... args) {
if (!condition) {
throw error(format, args);
}
}
private GraalError error(String format, Object... args) {
Path path = configFilePath;
configFilePath = null; // prevent deletion
String errorMessage = format.formatted(args);
String errorLine = lines.get(lineNo - 1);
throw new GraalError("Line %d of %s: %s%n%s%n%s generated by command: %s",
lineNo, path.toAbsolutePath(), errorMessage, errorLine, path, quotedCommand);
}
/**
* Registers the JNI configuration for libgraal by parsing the output of the
* {@code -XX:JVMCILibDumpJNIConfig} VM option.
*
* @param loader used to resolve type names in the config
*/
@SuppressWarnings("try")
public static void register(ClassLoader loader, Path libgraalJavaHome) {
try (GetJNIConfig source = new GetJNIConfig(loader, libgraalJavaHome)) {
Map<String, Class<?>> classes = new EconomicHashMap<>();
for (String line : source.lines) {
source.lineNo++;
String[] tokens = line.split(" ");
source.check(tokens.length >= 2, "Expected at least 2 tokens");View on GitHub (pinned to a66e9ccd1d)
Solutions
- Fix the condition reported by the error: Line {} of {}: {} {} {} generated by command: {}
- Check the throwing call site and ensure its documented preconditions (argument values, types, environment, or configuration) are satisfied before the call.
Example fix
Validate inputs and environment so that the failing condition does not occur: Line {} of {}: {} {} {} generated by command: {} When it happens
Trigger: Thrown at compiler/src/jdk.graal.compiler.libgraal/src/jdk/graal/compiler/libgraal/GetJNIConfig.java:187 when the library encounters an invalid state.
Common situations: Occurs when a caller violates the contract guarded by this check: Line {} of {}: {} {} {} generated by command: {}
AI-assisted analysis of oracle/graal@a66e9ccd1d (2026-08-14).
Data as JSON: /api/errors/867230e3940bfcf6.
Report an issue: GitHub.