{"record":{"id":"867230e3940bfcf6","repo":"oracle/graal","slug":"line-d-of-s-s-n-s-n-s-generated-by-command-s","errorCode":null,"errorMessage":"Line %d of %s: %s%n%s%n%s generated by command: %s","messagePattern":"Line (.+?) of (.+?): (.+?)%n(.+?)%n(.+?) generated by command: (.+?)","errorType":"panic","errorClass":"GraalError","httpStatus":null,"severity":"error","filePath":"compiler/src/jdk.graal.compiler.libgraal/src/jdk/graal/compiler/libgraal/GetJNIConfig.java","lineNumber":187,"sourceCode":"            } catch (ClassNotFoundException e3) {\n                // ignore\n            }\n            throw new GraalError(e, \"Cannot find class %s during LibGraal JNIConfiguration registration\", name);\n        }\n    }\n\n    private void check(boolean condition, String format, Object... args) {\n        if (!condition) {\n            throw error(format, args);\n        }\n    }\n\n    private GraalError error(String format, Object... args) {\n        Path path = configFilePath;\n        configFilePath = null; // prevent deletion\n        String errorMessage = format.formatted(args);\n        String errorLine = lines.get(lineNo - 1);\n        throw new GraalError(\"Line %d of %s: %s%n%s%n%s generated by command: %s\",\n                        lineNo, path.toAbsolutePath(), errorMessage, errorLine, path, quotedCommand);\n\n    }\n\n    /**\n     * Registers the JNI configuration for libgraal by parsing the output of the\n     * {@code -XX:JVMCILibDumpJNIConfig} VM option.\n     *\n     * @param loader used to resolve type names in the config\n     */\n    @SuppressWarnings(\"try\")\n    public static void register(ClassLoader loader, Path libgraalJavaHome) {\n        try (GetJNIConfig source = new GetJNIConfig(loader, libgraalJavaHome)) {\n            Map<String, Class<?>> classes = new EconomicHashMap<>();\n            for (String line : source.lines) {\n                source.lineNo++;\n                String[] tokens = line.split(\" \");\n                source.check(tokens.length >= 2, \"Expected at least 2 tokens\");","sourceCodeStart":169,"sourceCodeEnd":205,"githubUrl":"https://github.com/oracle/graal/blob/a66e9ccd1d7bf2552883939aa0788dfd0e294aab/compiler/src/jdk.graal.compiler.libgraal/src/jdk/graal/compiler/libgraal/GetJNIConfig.java#L169-L205","documentation":"Error \"Line %d of %s: %s%n%s%n%s generated by command: %s\" thrown in oracle/graal.","triggerScenarios":"Thrown at compiler/src/jdk.graal.compiler.libgraal/src/jdk/graal/compiler/libgraal/GetJNIConfig.java:187 when the library encounters an invalid state.","commonSituations":"Occurs when a caller violates the contract guarded by this check: Line {} of {}: {} {} {} generated by command: {}","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."],"exampleFix":"Validate inputs and environment so that the failing condition does not occur: Line {} of {}: {} {} {} generated by command: {}","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a66e9ccd1d7bf2552883939aa0788dfd0e294aab","analyzedAt":"2026-08-14T13:58:47.161Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}