{"record":{"id":"9e722e780ef4b827","repo":"prestodb/presto","slug":"no-host-specified","errorCode":null,"errorMessage":"No host specified: ","messagePattern":"No host specified: ","errorType":"validation","errorClass":"SQLException","httpStatus":null,"severity":"error","filePath":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoDriverUri.java","lineNumber":366,"sourceCode":"                }\n            }\n        }\n\n        return result;\n    }\n\n    private static URI parseDriverUrl(String url)\n            throws SQLException\n    {\n        URI uri;\n        try {\n            uri = new URI(url.substring(JDBC_URL_START.length()));\n        }\n        catch (URISyntaxException e) {\n            throw new SQLException(\"Invalid JDBC URL: \" + url, e);\n        }\n        if (isNullOrEmpty(uri.getHost())) {\n            throw new SQLException(\"No host specified: \" + url);\n        }\n        if (uri.getPort() == -1) {\n            throw new SQLException(\"No port number specified: \" + url);\n        }\n        if ((uri.getPort() < 1) || (uri.getPort() > 65535)) {\n            throw new SQLException(\"Invalid port number: \" + url);\n        }\n        return uri;\n    }\n\n    private URI buildHttpUri()\n    {\n        String scheme = useSecureConnection ? \"https\" : \"http\";\n        try {\n            return new URI(scheme, null, address.getHost(), address.getPort(), null, null, null);\n        }\n        catch (URISyntaxException e) {\n            throw new RuntimeException(e);","sourceCodeStart":348,"sourceCodeEnd":384,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoDriverUri.java#L348-L384","documentation":"JDBC URL validation in parseDriverUrl: after stripping the jdbc:presto:// prefix and parsing the remainder as a URI, the host component is empty. The driver cannot determine which coordinator to connect to, so the malformed URL (appended to the message) is rejected as a SQLException.","triggerScenarios":"Thrown at presto-jdbc/src/main/java/com/facebook/presto/jdbc/PrestoDriverUri.java:366 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include the coordinator host in the URL: jdbc:presto://host:port/...","Check for typos that removed the host portion of the URL"],"exampleFix":null,"handlingStrategy":"validation","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"}