{"record":{"id":"5fe83c55f8aa943e","repo":"prestodb/presto","slug":"no-wrapper-for-5fe83c","errorCode":null,"errorMessage":"No wrapper for ","messagePattern":"No wrapper for ","errorType":"exception","errorClass":"SQLException","httpStatus":null,"severity":"error","filePath":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoStatement.java","lineNumber":612,"sourceCode":"    }\n\n    @Override\n    public boolean isCloseOnCompletion()\n            throws SQLException\n    {\n        checkOpen();\n        return closeOnCompletion.get();\n    }\n\n    @SuppressWarnings(\"unchecked\")\n    @Override\n    public <T> T unwrap(Class<T> iface)\n            throws SQLException\n    {\n        if (isWrapperFor(iface)) {\n            return (T) this;\n        }\n        throw new SQLException(\"No wrapper for \" + iface);\n    }\n\n    @Override\n    public boolean isWrapperFor(Class<?> iface)\n            throws SQLException\n    {\n        return iface.isInstance(this);\n    }\n\n    public String getUpdateType()\n            throws SQLException\n    {\n        checkOpen();\n        return currentUpdateType.get();\n    }\n\n    public void partialCancel()\n            throws SQLException","sourceCodeStart":594,"sourceCodeEnd":630,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoStatement.java#L594-L630","documentation":"unwrap in PrestoStatement returns this when iface.isInstance(this) holds; otherwise this SQLException is thrown. It is the standard JDBC wrapper guard: it fires when the caller requests an interface (e.g. a vendor extension or optional JDBC feature) that PrestoStatement does not implement.","triggerScenarios":"Thrown at presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoStatement.java:612 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check isWrapperFor(iface) before calling unwrap","Only request interfaces actually implemented by PrestoStatement","Catch SQLException around unwrap when probing optional JDBC interfaces"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"55bb57d202de3b926896fa966c2c4a44c779634e","analyzedAt":"2026-09-04T12:50:26.162Z","contentChangedAt":"2026-09-04T12:50:26.162Z","schemaVersion":2},"datasetVersion":"2026-09-11T21:17:09.523Z"}