{"record":{"id":"9302491da7140732","repo":"oracle/graal","slug":"s-does-not-contain-the-expected-libjavavm-interfa","errorCode":null,"errorMessage":"%s does not contain the expected libjavavm interface: missing ","messagePattern":"(.+?) does not contain the expected libjavavm interface: missing ","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"espresso/src/com.oracle.truffle.espresso.mokapot/src/mokapot.c","lineNumber":1885,"sourceCode":"        return NULL;\n    }\n    char espresso_path[MAX_PATH];\n    strncpy(espresso_path, mokapot_path, prefix_len);\n    strncpy(espresso_path + prefix_len, lib_path, MAX_PATH - prefix_len);\n    espresso_path[prefix_len + lib_name_len] = '\\0';\n\n    OS_DL_HANDLE libjavavm = os_dl_open(espresso_path);\n    if (libjavavm == NULL) {\n        fprintf(stderr, \"Failed to open %s: %s\" OS_NEWLINE_STR, espresso_path, os_dl_error());\n        return NULL;\n    }\n\n#define BIND_LIBJAVAVM_SVM_API(X) \\\n    graal_ ## X ## _fn_t graal_ ## X = os_dl_sym(libjavavm, \"graal_\" #X); \\\n    if (graal_ ## X == NULL) { \\\n        graal_ ## X = os_dl_sym(libjavavm, \"truffle_isolate_\" #X); \\\n        if (graal_ ## X == NULL) { \\\n            fprintf(stderr, \"%s does not contain the expected libjavavm interface: missing \" #X OS_NEWLINE_STR, espresso_path); \\\n            return NULL; \\\n        } \\\n    }\n\n#define BIND_LIBJAVAVM(X) \\\n    X ## _fn_t X = os_dl_sym(libjavavm, #X); \\\n    if (X == NULL) { \\\n        fprintf(stderr, \"%s does not contain the expected libjavavm interface: missing \" #X OS_NEWLINE_STR, espresso_path); \\\n        return NULL; \\\n    }\n\n    BIND_LIBJAVAVM_SVM_API(create_isolate)\n    BIND_LIBJAVAVM_SVM_API(attach_thread)\n    BIND_LIBJAVAVM_SVM_API(detach_thread)\n    BIND_LIBJAVAVM_SVM_API(get_current_thread)\n    BIND_LIBJAVAVM_SVM_API(tear_down_isolate)\n    BIND_LIBJAVAVM_SVM_API(detach_all_threads_and_tear_down_isolate)\n    BIND_LIBJAVAVM(Espresso_CreateJavaVM)","sourceCodeStart":1867,"sourceCodeEnd":1903,"githubUrl":"https://github.com/oracle/graal/blob/a66e9ccd1d7bf2552883939aa0788dfd0e294aab/espresso/src/com.oracle.truffle.espresso.mokapot/src/mokapot.c#L1867-L1903","documentation":"Error \"%s does not contain the expected libjavavm interface: missing \" thrown in oracle/graal.","triggerScenarios":"Thrown at espresso/src/com.oracle.truffle.espresso.mokapot/src/mokapot.c:1885 when the library encounters an invalid state.","commonSituations":"Occurs when a caller violates the contract guarded by this check: {} does not contain the expected libjavavm interface: missing","solutions":["Fix the condition reported by the error: {} does not contain the expected libjavavm interface: missing","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: {} does not contain the expected libjavavm interface: missing","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"}