java.sql.SQLRecoverableException

IO 错误: The Network Adapter could not establish the connection

Samebug tips9

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

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

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

Solutions on the web532

  • IO : The Network Adapter could not establish the connection
  • IO : The Network Adapter could not establish the connectionDSRA0010E: SQL 状态:08006,码:17,002。 [14-3-20 14:08:28:810 CST] 0000001e SystemErr     R
  • via Coderanch by Amirr Rafique, 11 months ago
    IO Error: The Network Adapter could not establish the connection
  • Stack trace

    • java.sql.SQLRecoverableException: IO 错误: The Network Adapter could not establish the connection at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419) at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:538) at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:228) at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32) at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521) at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:280) at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:207) at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:157) at oracle.sysman.omsca.util.CoreOMSConfigAssistantUtil.checkRepository(CoreOMSConfigAssistantUtil.java:2353) at oracle.sysman.omsca.framework.OMSGenericAdapter.doPreRequisiteChecks(OMSGenericAdapter.java:189) at oracle.sysman.omsca.framework.OMSCAFreshInstall.execute(OMSCAFreshInstall.java:90) at oracle.sysman.omsca.framework.OMSConfigAssistantDriver.main(OMSConfigAssistantDriver.java:210) Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:375) at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:422) at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:686) at oracle.net.ns.NSProtocol.connect(NSProtocol.java:246) at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1056) at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308) ... 11 more Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:150) at oracle.net.nt.ConnOption.connect(ConnOption.java:130) at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:353) ... 16 more

    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

    12 times, 10 months ago
    17 times, 3 days ago
    3 times, 4 days ago
    11 times, 2 weeks ago
    3 times, 3 weeks ago
    485 more bugmates