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 Stack Overflow by Draken
, 1 year ago
via Stack Overflow by Ajay Yadav
, 2 years ago
Connection timed out: connect
via Oracle Community by 22b0e2af-f3a3-4cf2-8718-cdafa95404ef, 1 year ago
via Google Groups by Gary, 7 months ago
Connection refused: connect
via Google Groups by Gary Frederick, 7 months ago
java.net.ConnectException: Connection refused: connect	at java.net.DualStackPlainSocketImpl.connect0(Native Method)	at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:69)	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:157)	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)	at java.net.Socket.connect(Socket.java:579)	at java.net.Socket.connect(Socket.java:528)	at sun.net.NetworkClient.doConnect(NetworkClient.java:180)	at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)	at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)	at sun.net.www.http.HttpClient.(HttpClient.java:203)	at sun.net.www.http.HttpClient.New(HttpClient.java:290)	at sun.net.www.http.HttpClient.New(HttpClient.java:306)	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:995)	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:849)	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)	at java.net.URL.openStream(URL.java:1035)	at net.sf.sahi.test.TestRunner.execute(TestRunner.java:328)	at net.sf.sahi.test.TestRunner.execute(TestRunner.java:310)	at net.sf.sahi.ant.RunSahiTask.startServer(RunSahiTask.java:119)	at net.sf.sahi.ant.RunSahiTask.execute(RunSahiTask.java:94)	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)	at org.apache.tools.ant.Task.perform(Task.java:348)	at org.apache.tools.ant.Target.execute(Target.java:435)	at org.apache.tools.ant.Target.performTasks(Target.java:456)	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)	at org.apache.tools.ant.Project.executeTargets(Project.java:1248)	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)	at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)	at org.apache.tools.ant.Task.perform(Task.java:348)	at org.apache.tools.ant.Target.execute(Target.java:435)	at org.apache.tools.ant.Target.performTasks(Target.java:456)	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)	at org.apache.tools.ant.Project.executeTargets(Project.java:1248)	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:441)	at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:601)	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)	at org.apache.tools.ant.Task.perform(Task.java:348)	at org.apache.tools.ant.Target.execute(Target.java:435)	at org.apache.tools.ant.Target.performTasks(Target.java:456)	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)	at org.apache.tools.ant.Project.executeTarget(Project.java:1364)	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)	at org.apache.tools.ant.Project.executeTargets(Project.java:1248)	at org.apache.tools.ant.Main.runBuild(Main.java:851)	at org.apache.tools.ant.Main.startAnt(Main.java:235)	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)