Troubleshoot JDBC 4.x
The following table describes connection and result errors.
| Symptom | Action |
|---|---|
| Workgroup lookup fails | Check Region, WorkGroup, credentials, and athena:GetWorkGroup permission. ConnectionTest=false does not skip this lookup. |
| Unsupported engine or result fetcher | Connect to an engine version 3 or DuckDB workgroup. Check EngineVersion and the fetcher/storage compatibility table. |
| Arrow buffers unavailable | Add --add-opens=java.base/java.nio=ALL-UNNAMED on Java 9 or later. Use GetQueryResults if Arrow cannot be enabled; auto can fall back for managed DuckDB results. |
| Conflicting credential sources | Use CredentialsProvider=ProfileCredentials with ProfileName, or remove ProfileName when using another provider. |
| Class or dependency cannot be loaded | Add the with-dependencies JAR, or the lean driver JAR and runtime-dependencies JARs, to the application's classpath. |
| Endpoint conflict or invalid scheme | Supply either a URL host or AthenaEndpoint. Use HTTPS for endpoint overrides. |
| Getter conversion fails | Check the DuckDB type mapping and use a supported getter or cast the value in SQL. |
For driver file logs, set LogPath. Its default level is TRACE; set LogLevel to reduce detail. If the application uses SLF4J, configure its logging implementation as well.