Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by sundeepkmr
, 1 year ago
java.lang.RuntimeException: java.sql.SQLException: Unable to connect to database
via GitHub by samuraraujo
, 2 years ago
java.lang.RuntimeException: java.sql.SQLException: Unable to connect to specified elasticsearch host(s)
via GitHub by samuraraujo
, 2 years ago
java.lang.RuntimeException: java.sql.SQLException: Unable to connect to specified elasticsearch host(s)
via Stack Overflow by lcazarre
, 1 year ago
java.lang.RuntimeException: java.sql.SQLException: Unable to create connection. Check your URL.
via Stack Overflow by ratsstack
, 1 year ago
java.lang.RuntimeException: java.sql.SQLException: Unable to create connection. Check your URL.
java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.sql.SQLException: Unable to connect to database at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:206) at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.awaitConnection(OpenConnectionCommand.java:132) at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.access$100(OpenConnectionCommand.java:45) at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand$2.run(OpenConnectionCommand.java:115) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)Caused by: java.lang.RuntimeException: java.sql.SQLException: Unable to connect to database at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.executeConnect(OpenConnectionCommand.java:171) at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.access$000(OpenConnectionCommand.java:45) at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand$1.run(OpenConnectionCommand.java:104) ... 5 moreCaused by: java.sql.SQLException: Unable to connect to database at nl.anchormen.sql4es.jdbc.ESConnection.buildClient(ESConnection.java:129) at nl.anchormen.sql4es.jdbc.ESConnection.<init>(ESConnection.java:78) at nl.anchormen.sql4es.jdbc.ESDriver.connect(ESDriver.java:46) at net.sourceforge.squirrel_sql.fw.sql.SQLDriverManager.getConnection(SQLDriverManager.java:133) at net.sourceforge.squirrel_sql.client.mainframe.action.OpenConnectionCommand.executeConnect(OpenConnectionCommand.java:167) ... 7 moreCaused by: java.lang.NoSuchMethodError: com.google.common.util.concurrent.MoreExecutors.directExecutor()Ljava/util/concurrent/Executor; at org.elasticsearch.threadpool.ThreadPool.<clinit>(ThreadPool.java:190) at org.elasticsearch.client.transport.TransportClient$Builder.build(TransportClient.java:131) at nl.anchormen.sql4es.jdbc.ESConnection.buildClient(ESConnection.java:108) ... 11 more