java.net.ConnectException

Connection refused


Samebug tips9

host port isnt set

Check if your MongoDB is available.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web13471

Solution icon of github
via GitHub by richtera
, 5 months ago
Connection refused (Connection refused)

Solution icon of github
via GitHub by gbrost
, 8 months ago
Connection refused (Connection refused)

Solution icon of github
via GitHub by jpolchlo
, 6 days ago
Connection refused (Connection refused)

Solution icon of github
via GitHub by Patheek1971
, 5 months ago
Connection refused (Connection refused)

Solution icon of github
via GitHub by yshussain
, 4 months ago
Connection refused (Connection refused)

Solution icon of github
Connection refused (Connection refused)

Solution icon of github
Connection refused (Connection refused)

Solution icon of github
Connection refused (Connection refused)

Solution icon of github
via GitHub by djeang
, 1 week ago
Connection refused (Connection refused)

Solution icon of github
via GitHub by damianoneill
, 6 months ago
Connection refused (Connection refused)

Stack trace

  • 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.<init>(PhysicalConnection.java:678) at oracle.jdbc.driver.T4CConnection.<init>(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.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: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 com.sun.jmx.mbeanserver.JmxMBeanServer.getAttributes(JmxMBeanServer.java:705) at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$13.run(WLSMBeanServerInterceptorBase.java:353) at java.security.AccessController.doPrivileged(Native Method) 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 java.security.AccessController.doPrivileged(Native Method) 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 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at oracle.dms.aggregator.DmsThreadFactory$1$1.run(DmsThreadFactory.java:56) at java.security.AccessController.doPrivileged(Native Method) at oracle.dms.aggregator.DmsThreadFactory$1.run(DmsThreadFactory.java:51) at java.lang.Thread.run(Thread.java:745)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 4 months ago
2 times, 8 months ago
Once, 1 year ago
Once, 1 year ago
491 more bugmates