From e7f24fd95cf133cfa474d4a758b6602c0748d141 Mon Sep 17 00:00:00 2001 From: pesse Date: Thu, 26 Aug 2021 16:27:47 +0200 Subject: [PATCH] Catch "Incompatible version of libocijdbc" Error when trying to connect via thick driver --- .../org/utplsql/cli/datasource/TestedDataSourceProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/utplsql/cli/datasource/TestedDataSourceProvider.java b/src/main/java/org/utplsql/cli/datasource/TestedDataSourceProvider.java index 8ecfeca..14f7bf4 100644 --- a/src/main/java/org/utplsql/cli/datasource/TestedDataSourceProvider.java +++ b/src/main/java/org/utplsql/cli/datasource/TestedDataSourceProvider.java @@ -58,7 +58,7 @@ private void setThickOrThinJdbcUrl(OracleDataSource ds) throws SQLException { try (Connection ignored = ds.getConnection()) { logger.info("Use connection string {}", possibility.getMaskedConnectString(config)); return; - } catch (UnsatisfiedLinkError | Exception e) { + } catch (Error | Exception e) { errors.add(possibility.getMaskedConnectString(config) + ": " + e.getMessage()); lastException = e; }