简体   繁体   English

出现IO错误:网络适配器无法建立连接

[英]getting IO Error: The Network Adapter could not establish the connection

HI i am getting the below error while trying to login to my application. 嗨,我在尝试登录我的应用程序时遇到以下错误。 i am using websphere7, java7, oracle11g with eclipse juno. 我正在使用带eclipse juno的websphere7,java7,oracle11g。

the error i got is as below. 我得到的错误如下。

[4/9/15 16:46:23:327 IST] 00000029 SystemOut O java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection [4/9/15 16:46:23:328 IST] 00000029 SystemOut O at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:458) [4/9/15 16:46:23:328 IST] 00000029 SystemOut O at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:546) [4/9/15 16:46:23:328 IST] 00000029 SystemOut O at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:236) [4/9/15 16:46:23:328 IST] 00000029 SystemOut O at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32) [4/9/15 16:46:23:328 IST] 00000029 SystemOut O at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521) [4/9/15 16:46:23:328 IST] 00000029 SystemOut O at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:280) [4/9/15 16:46:23:329 IST] 00000029 SystemOut O at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:207) [4/9/15 16:46: [4/9/15 16:46:23:327 IST] 00000029 SystemOut O java.sql.SQLRecoverableException:IO错误:网络适配器无法建立连接[4/9/15 16:46:23:328 IST] 00000029 SystemOut O在oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:458)[4/9/15 16:46:23:328 IST] 00000029 SystemOut O在oracle.jdbc.driver.PhysicalConnection。(PhysicalConnection。 java:546)[4/9/15 16:46:23:328 IST] 00000029 SystemOut O在oracle.jdbc.driver.T4CConnection。(T4CConnection.java:236)[4/9/15 16:46:23: 328 IST] 00000029 SystemOut O,位于oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)[4/9/15 16:46:23:328 IST] 00000029 SystemOut O,位于oracle.jdbc.driver.OracleDriver。 connect(OracleDriver.java:521)[4/9/15 16:46:23:328 IST] 00000029 SystemOut O在oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:280)[4/9/15 16 :46:23:329 IST] 00000029 SystemOut O在oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:207)[4/9/15 16:46: 23:331 IST] 00000029 SystemOut O at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:139) [4/9/15 16:46:23:331 IST] 00000029 SystemOut O at oracle.jdbc.pool.OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:88) 23:331 IST] 00000029 SystemOut O,位于oracle.jdbc.pool.OracleConnectionPoolDataSource.getPhysicalConnection(OracleConnectionPoolDataSource.java:139)[4/9/15 16:46:23:331 IST] 00000029 SystemOut O,位于oracle.jdbc.pool。 OracleConnectionPoolDataSource.getPooledConnection(OracleConnectionPoolDataSource.java:88)

There can be a number of reason why the connection between 2 systems fails. 2个系统之间的连接失败的原因可能有多种。 The first question that you should ask are: 您应该问的第一个问题是:

  • does it happen every time? 每次都会发生吗?
  • does it happen intermittently? 它会间歇发生吗? If it is intermittent, can you identify any commonality in the failure? 如果是断断续续的,您能否确定故障中的任何共性? Is it always for one user? 总是一个用户吗? is it always at a certain time? 总是在某个时间吗? and so on. 等等。
  • Can you do a ping to access the remote server? 您可以执行ping操作来访问远程服务器吗?
  • Can you do a telent to access the remote service? 您可以进行电话访问以访问远程服务吗?

Finally, in all cases where connection problem arise, the best way to investigate it is to use a packet sniffing tool (personally, I like wireshark). 最后,在所有出现连接问题的情况下,研究此问题的最佳方法是使用数据包嗅探工具(个人而言,我喜欢wireshark)。 This will give you information on what is actually happening on the wire. 这将为您提供有关在线实际发生的信息。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 IO 错误:网络适配器无法建立连接 - IO Error: The Network Adapter could not establish the connection io 错误:网络适配器无法建立连接 - io error:network adapter could not establish the connection 获取'java.sql.SQLRecoverableException:IO错误:网络适配器无法建立连接',同时连接oracle数据库 - Getting 'java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection' while connecting oracle database 无法连接到Oracle DB,因为java.sql.SQLException而出现错误:Io异常:网络适配器无法建立连接 - Not able to connect to Oracle DB getting error as java.sql.SQLException: Io exception: The Network Adapter could not establish the connection 获取“ java.sql.SQLException:Io异常:网络适配器无法建立连接” - Getting “java.sql.SQLException: Io exception: The Network Adapter could not establish the connection” Java:Io异常:网络适配器无法建立连接 - Java : Io exception: The Network Adapter could not establish the connection 无法创建 PoolableConnectionFactory(Io 异常:网络适配器无法建立连接) - Cannot create PoolableConnectionFactory (Io exception: The Network Adapter could not establish the connection) SQLException:Io异常:网络适配器无法建立连接 - SQLException: Io exception: The Network Adapter could not establish the connection 网络适​​配器无法建立连接 - The network adapter could not establish the connection IO 错误:将 oracle DB 作为 docker 容器运行时,网络适配器无法建立连接 - IO Error: The Network Adapter could not establish the connection when running oracle DB as docker container
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM