java.net.ConnectException: Connection refused

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

,
via GitHub by rawlingsj

host port isnt set

,

Check if your MongoDB is available.

Solutions on the web

via Oracle Community by Sanjeev-OFM, 1 year ago
via giraph-user by Flavian Jacquot, 4 months ago
via Apache's JIRA Issue Tracker by Michael Han, 1 year ago
Connection refused
via hadoop-hdfs-user by Roberto Gonzalez, 1 year ago
via hadoop-mapreduce-user by Roberto Gonzalez, 1 year ago
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
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.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at oracle.net.nt.MetricsEnabledSocket.connect(TcpNTAdapter.java:631)
at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:164)
at oracle.net.nt.ConnOption.connect(ConnOption.java:137)
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:374)
at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:438)
at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:711)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:257)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1229)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:326)
at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:678)
at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:234)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:34)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:567)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.makeConnection(ConnectionEnvFactory.java:357)
at weblogic.jdbc.common.internal.ConnectionEnvFactory.createResource(ConnectionEnvFactory.java:239)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1310)
at weblogic.common.resourcepool.ResourcePoolImpl.makeResources(ResourcePoolImpl.java:1227)
at weblogic.common.resourcepool.ResourcePoolImpl.reserveResourceInternal(ResourcePoolImpl.java:451)
at weblogic.common.resourcepool.ResourcePoolImpl.reserveResource(ResourcePoolImpl.java:343)
at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:471)
at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:368)
at weblogic.jdbc.common.internal.ConnectionPool.reserve(ConnectionPool.java:353)
at weblogic.jdbc.common.internal.DataSourceRuntimeMBeanImpl.lookupMetaData(DataSourceRuntimeMBeanImpl.java:740)
at weblogic.jdbc.common.internal.DataSourceRuntimeMBeanImpl.getMetaData(DataSourceRuntimeMBeanImpl.java:762)
at weblogic.jdbc.common.internal.DataSourceRuntimeMBeanImpl.getDriverName(DataSourceRuntimeMBeanImpl.java:794)
at sun.reflect.GeneratedMethodAccessor648.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at weblogic.management.jmx.modelmbean.WLSModelMBean.getAttribute(WLSModelMBean.java:525)
at weblogic.management.jmx.modelmbean.WLSModelMBean.getAttributes(WLSModelMBean.java:585)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttributes(DefaultMBeanServerInterceptor.java:709)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$13.run(WLSMBeanServerInterceptorBase.java:353)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.getAttributes(WLSMBeanServerInterceptorBase.java:351)
at weblogic.management.mbeanservers.internal.JMXContextInterceptor.getAttributes(JMXContextInterceptor.java:192)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$13.run(WLSMBeanServerInterceptorBase.java:353)
at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.getAttributes(WLSMBeanServerInterceptorBase.java:351)
at weblogic.management.mbeanservers.internal.SecurityInterceptor.getAttributes(SecurityInterceptor.java:307)
at weblogic.management.jmx.mbeanserver.WLSMBeanServer.getAttributes(WLSMBeanServer.java:292)
at oracle.as.jmx.framework.generic.BaseMBeanServerInterceptor.getAttributes(BaseMBeanServerInterceptor.java:191)
at oracle.as.jmx.framework.wls.spi.security.SuperPrivilegedMBeanServerInterceptor$2.run(SuperPrivilegedMBeanServerInterceptor.java:94)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at oracle.as.jmx.framework.wls.spi.security.SuperPrivilegedMBeanServerInterceptor.getAttributes(SuperPrivilegedMBeanServerInterceptor.java:99)
at oracle.dms.impl.producer.MetricConvertor.getColumnValues(MetricConvertor.java:384)
at oracle.dms.impl.producer.MetricConvertor.getTable(MetricConvertor.java:342)
at oracle.dms.impl.producer.J2EETableSource.getTable(J2EETableSource.java:91)
at oracle.dms.table.MultiTableSource.getTable(MultiTableSource.java:107)
at oracle.dms.table.TableSource.getTables(TableSource.java:276)
at oracle.dms.aggregator.Storage.getTables(Storage.java:712)
at oracle.dms.aggregator.Sampler._sampleTable(Sampler.java:710)
at oracle.dms.aggregator.Sampler._setOff(Sampler.java:675)
at oracle.dms.aggregator.Sampler.access$200(Sampler.java:43)
at oracle.dms.aggregator.Sampler$SampleTask.run(Sampler.java:846)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at oracle.dms.aggregator.DmsThreadFactory$1$1.run(DmsThreadFactory.java:56)
at oracle.dms.aggregator.DmsThreadFactory$1.run(DmsThreadFactory.java:51)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 7 months ago
2 times, 11 months ago
Once, 1 year ago
Once, 1 year ago
590 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.