{"record":{"id":"a7b1d55ac4d88bcf","repo":"oracle/graal","slug":"no-primitive-type-for-basic-type","errorCode":null,"errorMessage":"No primitive type for basic type ","messagePattern":"No primitive type for basic type ","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"espresso-compiler-stub/src/com.oracle.truffle.espresso.vmaccess/src/com/oracle/truffle/espresso/vmaccess/EspressoExternalVMAccess.java","lineNumber":963,"sourceCode":"                 * that in the guest helper.\n                 */\n                throw new LinkageError(\"Could not resolve type \" + name);\n            }\n            return UnresolvedJavaType.create(name);\n        }\n        return new EspressoExternalResolvedInstanceType(this, meta);\n    }\n\n    EspressoExternalResolvedPrimitiveType forPrimitiveKind(JavaKind kind) {\n        if (!kind.isPrimitive()) {\n            throw new IllegalArgumentException(\"Not a primitive kind: \" + kind);\n        }\n        return forPrimitiveBasicType(kind.getBasicType());\n    }\n\n    private EspressoExternalResolvedPrimitiveType forPrimitiveBasicType(int basicType) {\n        if (primitives[basicType] == null) {\n            throw new IllegalArgumentException(\"No primitive type for basic type \" + basicType);\n        }\n        return primitives[basicType];\n    }\n\n    Value invokeJVMCIHelper(String method, Object... args) {\n        try {\n            return jvmciHelper.invokeMember(method, args);\n        } catch (PolyglotException e) {\n            throw throwHostException(e);\n        }\n    }\n\n    JavaType toJavaType(Value value) {\n        if (value.isNull()) {\n            return null;\n        }\n        if (value.isString()) {\n            return UnresolvedJavaType.create(value.asString());","sourceCodeStart":945,"sourceCodeEnd":981,"githubUrl":"https://github.com/oracle/graal/blob/a66e9ccd1d7bf2552883939aa0788dfd0e294aab/espresso-compiler-stub/src/com.oracle.truffle.espresso.vmaccess/src/com/oracle/truffle/espresso/vmaccess/EspressoExternalVMAccess.java#L945-L981","documentation":"Error \"No primitive type for basic type \" thrown in oracle/graal.","triggerScenarios":"Thrown at espresso-compiler-stub/src/com.oracle.truffle.espresso.vmaccess/src/com/oracle/truffle/espresso/vmaccess/EspressoExternalVMAccess.java:963 when the library encounters an invalid state.","commonSituations":"Occurs when a caller violates the contract guarded by this check: No primitive type for basic type","solutions":["Fix the condition reported by the error: No primitive type for basic type","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 primitive type for basic type","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"}