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

Samebug tips

  1. ,

    Check if your MongoDB is available.

  2. ,

    Check if your MariaDB is running and available.

Solutions on the web

via Google Groups by Shannon Ma, 1 year ago
Connection refused
java.net.ConnectException: Connection refused	at java.net.PlainSocketImpl.socketConnect(Native Method)	at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)	at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)	at java.net.AbstractPlainSocketImpl.connect(Unknown Source)	at java.net.SocksSocketImpl.connect(Unknown Source)	at java.net.Socket.connect(Unknown Source)	at sun.net.NetworkClient.doConnect(Unknown Source)	at sun.net.www.http.HttpClient.openServer(Unknown Source)	at sun.net.www.http.HttpClient.openServer(Unknown Source)	at sun.net.www.http.HttpClient.(Unknown Source)	at sun.net.www.http.HttpClient.New(Unknown Source)	at sun.net.www.http.HttpClient.New(Unknown Source)	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)	at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)	at java.net.HttpURLConnection.getResponseCode(Unknown Source)	at org.glassfish.jersey.client.HttpUrlConnector._apply(HttpUrlConnector.java:335)	at org.glassfish.jersey.client.HttpUrlConnector.access$000(HttpUrlConnector.java:91)	at org.glassfish.jersey.client.HttpUrlConnector$3.run(HttpUrlConnector.java:254)	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)	at java.util.concurrent.FutureTask.run(Unknown Source)	at jersey.repackaged.com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299)	at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)	at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:50)	at jersey.repackaged.com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:37)	at org.glassfish.jersey.client.HttpUrlConnector.apply(HttpUrlConnector.java:250)	at org.glassfish.jersey.client.ClientRuntime$2.run(ClientRuntime.java:177)	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)	at org.glassfish.jersey.internal.Errors.process(Errors.java:315)	at org.glassfish.jersey.internal.Errors.process(Errors.java:297)	at org.glassfish.jersey.internal.Errors.process(Errors.java:267)	at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:340)	at org.glassfish.jersey.client.ClientRuntime$3.run(ClientRuntime.java:209)	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)	at java.util.concurrent.FutureTask.run(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)	at java.lang.Thread.run(Unknown Source)