{"record":{"id":"39fbefeded8a2ae5","repo":"oracle/graal","slug":"no-such-method-methodname","errorCode":null,"errorMessage":"No such method: <methodName>","messagePattern":"No such method: <methodName>","errorType":"exception","errorClass":"InternalError","httpStatus":null,"severity":"error","filePath":"sdk/src/org.graalvm.jniutils/src/org/graalvm/jniutils/JNIExceptionWrapper.java","lineNumber":576,"sourceCode":"    private static final class JNIMethodResolver implements JNIMethod {\n\n        private final String methodName;\n        private final String methodSignature;\n        private volatile JNI.JMethodID methodId;\n\n        private JNIMethodResolver(String methodName, String methodSignature) {\n            this.methodName = methodName;\n            this.methodSignature = methodSignature;\n        }\n\n        JNIMethodResolver resolve(JNIEnv jniEnv) {\n            JNI.JMethodID res = methodId;\n            if (res.isNull()) {\n                JNI.JClass entryPointClass = getEntryPoints(jniEnv);\n                try (CTypeConversion.CCharPointerHolder name = toCString(methodName); CTypeConversion.CCharPointerHolder sig = toCString(methodSignature)) {\n                    res = GetStaticMethodID(jniEnv, entryPointClass, name.get(), sig.get());\n                    if (res.isNull()) {\n                        throw new InternalError(\"No such method: \" + methodName);\n                    }\n                    methodId = res;\n                }\n            }\n            return this;\n        }\n\n        @Override\n        public JNI.JMethodID getJMethodID() {\n            return methodId;\n        }\n\n        @Override\n        public String getDisplayName() {\n            return methodName;\n        }\n\n        static JNIMethodResolver create(String methodName, Class<?> returnType, Class<?>... parameterTypes) {","sourceCodeStart":558,"sourceCodeEnd":594,"githubUrl":"https://github.com/oracle/graal/blob/a66e9ccd1d7bf2552883939aa0788dfd0e294aab/sdk/src/org.graalvm.jniutils/src/org/graalvm/jniutils/JNIExceptionWrapper.java#L558-L594","documentation":"Error \"No such method: <methodName>\" thrown in oracle/graal.","triggerScenarios":"Thrown at sdk/src/org.graalvm.jniutils/src/org/graalvm/jniutils/JNIExceptionWrapper.java:576 when the library encounters an invalid state.","commonSituations":"Occurs when a caller violates the contract guarded by this check: No such method: <methodName>","solutions":["Fix the condition reported by the error: No such method: <methodName>","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: No such method: <methodName>","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"}