{"record":{"id":"03076aafa9593ae2","repo":"oracle/graal","slug":"unknownkeyexception-serialization-is-not-supported","errorCode":null,"errorMessage":"UnknownKeyException serialization is not supported.","messagePattern":"UnknownKeyException serialization is not supported\\.","errorType":"exception","errorClass":"NotSerializableException","httpStatus":null,"severity":"error","filePath":"espresso/src/com.oracle.truffle.espresso.polyglot/src/com/oracle/truffle/espresso/polyglot/UnknownKeyException.java","lineNumber":123,"sourceCode":"     * <p>\n     * In addition a cause may be provided. The cause should only be set if the guest language code\n     * caused this problem. An example for this is a language specific proxy mechanism that invokes\n     * guest language code to describe an object. If the guest language code fails to execute and\n     * this interop exception is a valid interpretation of the error, then the error should be\n     * provided as cause.\n     *\n     * @param unknownKey the key that could not be accessed\n     * @param cause the guest language exception that caused the error\n     * @since 21.1.0\n     */\n    @SuppressWarnings(\"deprecation\")\n    public static UnknownKeyException create(Object unknownKey, Throwable cause) {\n        return new UnknownKeyException(unknownKey, cause);\n    }\n\n    @SuppressWarnings({\"static-method\", \"unused\"})\n    private void writeObject(ObjectOutputStream outputStream) throws IOException {\n        throw new NotSerializableException(UnknownKeyException.class.getSimpleName() + \" serialization is not supported.\");\n    }\n}\n","sourceCodeStart":105,"sourceCodeEnd":126,"githubUrl":"https://github.com/oracle/graal/blob/a66e9ccd1d7bf2552883939aa0788dfd0e294aab/espresso/src/com.oracle.truffle.espresso.polyglot/src/com/oracle/truffle/espresso/polyglot/UnknownKeyException.java#L105-L126","documentation":"Error \"UnknownKeyException serialization is not supported.\" thrown in oracle/graal.","triggerScenarios":"Thrown at espresso/src/com.oracle.truffle.espresso.polyglot/src/com/oracle/truffle/espresso/polyglot/UnknownKeyException.java:123 when the library encounters an invalid state.","commonSituations":"Occurs when a caller violates the contract guarded by this check: UnknownKeyException serialization is not supported.","solutions":["Fix the condition reported by the error: UnknownKeyException serialization is not supported.","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: UnknownKeyException serialization is not supported.","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"}