java.net.ConnectException

tip

host port isnt set

tip

Check if your MongoDB is available.


rp
tip

To restart the Selenium Webdriver mock browser in a testcase, first use 'driver.close()' and then reinstantiate the driver.

tip

Firewall might be blocking your connection, or MySQL it's not running on your server machine.


rafael
tip

Check if you have started your server, or if your server is set to listen to the port you're trying to connect and is waiting to accept connections and check if the firewall isn't blocking your connection.


rafael
tip

Check if ip adress is correct, if the port is correct, and if the server is up and running and waiting for connections. Also, check if there's no firewall blocking you and if your internet connection is working.


rafael
tip

spring-data-redis requires redis 2.6+ to work properly.

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

  • UCM & IPM Server url is not accessible
    via by Sanjeev-OFM,
  • BEA-001129:Received exception while creating connection for pool
    via by 22594585-d026-47cd-8968-40b4a8b46976,
  • weblogic 10g R3 to Oracle RAC 11G
    via by 652313,
  • OracleBamServer status is down
    via by 722716,
  • Disable and freeze users called on connection pool
    via by Jollysl -Oracle,
  • issue starting with soa11g
    via by 773779,
  • Miscellaneous « Middleware Magic
    via by Unknown author,
  • Refresh outline error in HP 11.1.2.3
    via by 887164,
    • 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.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 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)

    Users with the same issue

    Unknown visitor1 times, last one,
    Luka
    1 times, last one,
    Handemelindo
    2 times, last one,
    mortalman7
    1 times, last one,
    jedcua
    1 times, last one,
    479 more bugmates