{"record":{"id":"948ba8ee23078bb9","repo":"oracle/graal","slug":"compilationrequestresult-getfailuremessage","errorCode":null,"errorMessage":"compilationRequestResult.getFailureMessage()","messagePattern":"compilationRequestResult\\.getFailureMessage\\(\\)","errorType":"panic","errorClass":"GraalError","httpStatus":null,"severity":"error","filePath":"compiler/src/jdk.graal.compiler.libgraal/src/jdk/graal/compiler/libgraal/LibGraalEntryPoints.java","lineNumber":202,"sourceCode":"            HotSpotResolvedJavaMethod method = runtime.unhand(HotSpotResolvedJavaMethod.class, methodHandle);\n            HotSpotCompilationRequest request = new HotSpotCompilationRequest(method, entryBCI, 0L);\n            try (CompilationContext ignored = HotSpotGraalServices.openLocalCompilationContext(request)) {\n                CompilationTask task = new CompilationTask(runtime, compiler, request, useProfilingInfo, false, false, eagerResolving, installAsDefault);\n                long allocatedBytesBefore = 0;\n                long timeBefore = 0;\n                if (timeAndMemBufferAddress != 0) {\n                    allocatedBytesBefore = isThreadAllocatedMemorySupported() ? getCurrentThreadAllocatedBytes() : -1;\n                    timeBefore = System.nanoTime();\n                }\n                OptionValues options = decodeOptions(optionsAddress, optionsSize, optionsHash);\n                if (profilePathBufferAddress > 0) {\n                    String profileLoadPath = CTypeConversion.toJavaString(Word.pointer(profilePathBufferAddress));\n                    options = new OptionValues(options, ProfileReplaySupport.Options.LoadProfiles, profileLoadPath);\n                }\n                HotSpotCompilationRequestResult compilationRequestResult = task.runCompilation(options);\n                if (compilationRequestResult.getFailure() != null) {\n                    retry = compilationRequestResult.getRetry();\n                    throw new GraalError(compilationRequestResult.getFailureMessage());\n                }\n                if (timeAndMemBufferAddress != 0) {\n                    long allocatedBytesAfter = allocatedBytesBefore == -1 ? -1 : getCurrentThreadAllocatedBytes();\n                    long bytesAllocated = allocatedBytesAfter - allocatedBytesBefore;\n                    long timeAfter = System.nanoTime();\n                    long timeSpent = timeAfter - timeBefore;\n                    Unsafe.getUnsafe().putLong(timeAndMemBufferAddress, bytesAllocated);\n                    Unsafe.getUnsafe().putLong(timeAndMemBufferAddress + 8, timeSpent);\n                }\n                HotSpotInstalledCode installedCode = task.getInstalledCode();\n                if (printMetrics) {\n                    GlobalMetrics metricValues = ((HotSpotGraalRuntime) compiler.getGraalRuntime()).getMetricValues();\n                    metricValues.print(options);\n                    metricValues.clear();\n                }\n                return runtime.translate(installedCode);\n            }\n        } catch (Throwable t) {","sourceCodeStart":184,"sourceCodeEnd":220,"githubUrl":"https://github.com/oracle/graal/blob/a66e9ccd1d7bf2552883939aa0788dfd0e294aab/compiler/src/jdk.graal.compiler.libgraal/src/jdk/graal/compiler/libgraal/LibGraalEntryPoints.java#L184-L220","documentation":"Error \"compilationRequestResult.getFailureMessage()\" thrown in oracle/graal.","triggerScenarios":"Thrown at compiler/src/jdk.graal.compiler.libgraal/src/jdk/graal/compiler/libgraal/LibGraalEntryPoints.java:202 when the library encounters an invalid state.","commonSituations":"Occurs when a caller violates the contract guarded by this check: compilationRequestResult.getFailureMessage()","solutions":["Fix the condition reported by the error: compilationRequestResult.getFailureMessage()","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: compilationRequestResult.getFailureMessage()","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"}