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 Atlassian JIRA by Adrian Hempel [Atlassian], 2 years ago
via Mirth Project by Peter Scholz, 1 year ago
via Oracle Community by gmilitel - oracle, 1 year ago
Connection refused
java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method)[na:1.6.0_30] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)[na:1.6.0_30] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)[na:1.6.0_30] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)[na:1.6.0_30] at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)[na:1.6.0_30] at java.net.Socket.connect(Socket.java:529)[na:1.6.0_30] at java.net.Socket.connect(Socket.java:478)[na:1.6.0_30] at java.net.Socket.<init>(Socket.java:375)[na:1.6.0_30] at java.net.Socket.<init>(Socket.java:249)[na:1.6.0_30] at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(Unknown Source)[commons-httpclient-3.1.SONATYPE.jar:3.1] at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(Unknown Source)[commons-httpclient-3.1.SONATYPE.jar:3.1] at org.apache.commons.httpclient.HttpConnection.open(Unknown Source)[commons-httpclient-3.1.SONATYPE.jar:3.1] at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(Unknown Source)[commons-httpclient-3.1.SONATYPE.jar:3.1] at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Unknown Source)[commons-httpclient-3.1.SONATYPE.jar:3.1] at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(Unknown Source)[commons-httpclient-3.1.SONATYPE.jar:3.1] at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source)[commons-httpclient-3.1.SONATYPE.jar:3.1] at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source)[commons-httpclient-3.1.SONATYPE.jar:3.1] at com.noelios.restlet.ext.httpclient.HttpMethodCall.sendRequest(HttpMethodCall.java:313)[com.noelios.restlet.ext.httpclient-1.1.6-SONATYPE-5348-V4.jar:na] at com.noelios.restlet.http.HttpClientConverter.commit(HttpClientConverter.java:418)[com.noelios.restlet-1.1.6-SONATYPE-5348-V4.jar:na] at com.noelios.restlet.http.HttpClientHelper.handle(HttpClientHelper.java:108)[com.noelios.restlet-1.1.6-SONATYPE-5348-V4.jar:na] at org.restlet.Client.handle(Client.java:157)[org.restlet-1.1.6-SONATYPE-5348-V4.jar:na] at org.restlet.Uniform.handle(Uniform.java:108)[org.restlet-1.1.6-SONATYPE-5348-V4.jar:na] at org.sonatype.nexus.integrationtests.NexusRestClient.sendMessage(NexusRestClient.java:563)[nexus-test-utils-2.1-SNAPSHOT.jar:na] at org.sonatype.nexus.integrationtests.NexusRestClient.sendMessage(NexusRestClient.java:543)[nexus-test-utils-2.1-SNAPSHOT.jar:na] at org.sonatype.nexus.integrationtests.NexusRestClient.sendMessage(NexusRestClient.java:494)[nexus-test-utils-2.1-SNAPSHOT.jar:na] at org.sonatype.nexus.integrationtests.NexusRestClient.sendMessage(NexusRestClient.java:488)[nexus-test-utils-2.1-SNAPSHOT.jar:na] at org.sonatype.nexus.integrationtests.NexusRestClient.sendMessage(NexusRestClient.java:470)[nexus-test-utils-2.1-SNAPSHOT.jar:na] at org.sonatype.nexus.integrationtests.NexusRestClient.doGetForStatus(NexusRestClient.java:250)[nexus-test-utils-2.1-SNAPSHOT.jar:na] at org.sonatype.nexus.integrationtests.NexusRestClient.doGetForStatus(NexusRestClient.java:230)[nexus-test-utils-2.1-SNAPSHOT.jar:na] at org.sonatype.nexus.test.utils.TasksNexusRestClient.waitForAllTasksToStop(TasksNexusRestClient.java:209)[nexus-test-utils-2.1-SNAPSHOT.jar:na] at org.sonatype.nexus.test.utils.TasksNexusRestClient.waitForAllTasksToStop(TasksNexusRestClient.java:180)[nexus-test-utils-2.1-SNAPSHOT.jar:na] at org.sonatype.nexus.test.utils.TasksNexusRestClient.waitForAllTasksToStop(TasksNexusRestClient.java:158)[nexus-test-utils-2.1-SNAPSHOT.jar:na] at org.sonatype.nexus.test.utils.TaskScheduleUtil.waitForAllTasksToStop(TaskScheduleUtil.java:88)[nexus-test-harness-launcher-2.1-SNAPSHOT.jar:na] at org.sonatype.nexus.integrationtests.AbstractNexusIntegrationTest.oncePerClassTearDown(AbstractNexusIntegrationTest.java:417)[nexus-test-harness-launcher-2.1-SNAPSHOT.jar:na] at sun.reflect.GeneratedMethodAccessor135.invoke(Unknown Source)[na:na] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_30] at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_30] at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)[testng-6.1.1.jar:na] at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:525)[testng-6.1.1.jar:na] at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)[testng-6.1.1.jar:na] at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)[testng-6.1.1.jar:na] at org.testng.internal.TestMethodWorker.invokeAfterClassMethods(TestMethodWorker.java:222)[testng-6.1.1.jar:na] at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:112)[testng-6.1.1.jar:na] at org.testng.TestRunner.runWorkers(TestRunner.java:1178)[testng-6.1.1.jar:na] at org.testng.TestRunner.privateRun(TestRunner.java:757)[testng-6.1.1.jar:na] at org.testng.TestRunner.run(TestRunner.java:608)[testng-6.1.1.jar:na] at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)[testng-6.1.1.jar:na] at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)[testng-6.1.1.jar:na] at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)[testng-6.1.1.jar:na] at org.testng.SuiteRunner.run(SuiteRunner.java:240)[testng-6.1.1.jar:na] at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)[testng-6.1.1.jar:na] at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)[testng-6.1.1.jar:na] at org.testng.TestNG.runSuitesSequentially(TestNG.java:1158)[testng-6.1.1.jar:na] at org.testng.TestNG.runSuitesLocally(TestNG.java:1083)[testng-6.1.1.jar:na] at org.testng.TestNG.run(TestNG.java:999)[testng-6.1.1.jar:na] at org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:70)[surefire-testng-2.10.jar:2.10] at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeMulti(TestNGDirectoryTestSuite.java:158)[surefire-testng-2.10.jar:2.10] at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:98)[surefire-testng-2.10.jar:2.10] at org.apache.maven.surefire.testng.TestNGProvider.invoke(TestNGProvider.java:111)[surefire-testng-2.10.jar:2.10] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.6.0_30] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)[na:1.6.0_30] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)[na:1.6.0_30] at java.lang.reflect.Method.invoke(Method.java:597)[na:1.6.0_30] at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)[surefire-api-2.10.jar:2.10] at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)[surefire-booter-2.10.jar:2.10] at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175)[surefire-booter-2.10.jar:2.10] at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107)[surefire-booter-2.10.jar:2.10] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68)[surefire-booter-2.10.jar:2.10]