My Oracle Support Banner

Intermittent "SQLState: null ErrorCode: 17002 Message: Io exception: The Network Adapter could not establish the connection" In A JDBC Thin Application (Doc ID 761775.1)

Last updated on SEPTEMBER 14, 2018

Applies to:

JDBC - Version 10.2.0.3 and later
Information in this document applies to any platform.

Symptoms


An application using Oracle JDBC driver for connections to the database is getting the next error in an intermittent manner:

SQLState: null ErrorCode: 17002
Message: Io exception: The Network Adapter could not establish the connection


The section on the log with the error is as follows:

ERROR
2009-01-08 11:17:09,041 ERROR java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:439)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at atg.common.access.JDBCConnection.<init>(JDBCConnection.java:161)
at atg.common.access.JDBCConnectionPool.createItem(JDBCConnectionPool.java:56)
at atg.common.access.JDBCConnectionPool.checkOut(JDBCConnectionPool.java:412)
at atg.common.access.JDBCTransaction.<init>(JDBCTransaction.java:119)
at atg.common.access.JDBCAccessManager.getTransaction(JDBCAccessManager.java:142)
at jsp_servlet._sys.__dbconnect._jspService(__dbconnect.java:195)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at hbs.common.servlet.util.FilterBase.doFilter(FilterBase.java:59)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at hbs.common.servlet.util.FilterBase.doFilter(FilterBase.java:59)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at hbs.common.servlet.util.FilterBase.doFilter(FilterBase.java:59)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6458)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
2009-01-08 11:17:09,044 ERROR
atg.common.access.JDBCAccessException:
>>> One or more database errors have occurred <<<
++++++++++++++++++++++++++++++
SQLState: null ErrorCode: 17002
Message: Io exception: The Network Adapter could not establish the connection
<<<< end of database errors>>>>

at atg.common.access.JDBCConnection.<init>(JDBCConnection.java:185)
at atg.common.access.JDBCConnectionPool.createItem(JDBCConnectionPool.java:56)
at atg.common.access.JDBCConnectionPool.checkOut(JDBCConnectionPool.java:412)
at atg.common.access.JDBCTransaction.<init>(JDBCTransaction.java:119)
at atg.common.access.JDBCAccessManager.getTransaction(JDBCAccessManager.java:142)
at jsp_servlet._sys.__dbconnect._jspService(__dbconnect.java:195)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:996)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at hbs.common.servlet.util.FilterBase.doFilter(FilterBase.java:59)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at hbs.common.servlet.util.FilterBase.doFilter(FilterBase.java:59)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at hbs.common.servlet.util.FilterBase.doFilter(FilterBase.java:59)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6458)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3661)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2630)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.