wood burning stoves 2.0*
The moose likes JDBC and the fly likes The Network Adapter could not establish the connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "The Network Adapter could not establish the connection" Watch "The Network Adapter could not establish the connection" New topic
Author

The Network Adapter could not establish the connection

Mangesh Deshmukh
Greenhorn

Joined: Oct 07, 2011
Posts: 3
Hi There,

We have an application with client -server model. Application server uses JBoss as web server and the DB uses Oracle 10g as database. Currently we are facing a peculiar problem. Intermittently [and suprisingly at off-peak hours] we get the below mentioned error for few seconds and everything works fine thereon. This happens even though we have tried to run the application and DB on the same machine.

2011-10-07 00:00:11,046 DEBUG [org.jboss.resource.connectionmanager.IdleRemover] run: IdleRemover notifying pools, interval: 90000
2011-10-07 00:00:11,046 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Unable to fill pool
org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (java.sql.SQLException: Io exception: The Network Adapter could not establish the connection)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:177)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:539)
at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.fillToMin(InternalManagedConnectionPool.java:486)
at org.jboss.resource.connectionmanager.PoolFiller.run(PoolFiller.java:74)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:162)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:274)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:328)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:366)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:563)
at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:169)
... 4 more

Please revert back if anybody has any solution. Also would like to mention that this application was running for last 3 years without this kind of issue and no major setup related changes were done.

Thanks
Mangesh
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2495
    
    8

Welcome to the Ranch, Mangesh!


OCUP UML fundamental and ITIL foundation
youtube channel
Mangesh Deshmukh
Greenhorn

Joined: Oct 07, 2011
Posts: 3
The application and database servers are hosted in managed network and administrator says that on their part everything is fine... confused no way to go... have checked all possible configuration files...
Santhosh ayiappan
Ranch Hand

Joined: Jan 30, 2007
Posts: 80

Does the exception is thrown in mid of a transaction ?

Regards
Santhosh
Mangesh Deshmukh
Greenhorn

Joined: Oct 07, 2011
Posts: 3
Hi Santhosh
Thanks for reply

It happens intermittently not specific to any transaction... the system was up and running perfectly suddenly we started encountering mentioned network adapter issue, checked all possible grounds which are prone to this issue...

Regards
Mangesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: The Network Adapter could not establish the connection