java.sql.SQLException: Io exception: Got minus one from a read call
kannan vinayagam Duraiswamy
Ranch Hand
Joined: Jan 12, 2009
Posts: 52
posted
0
hi All,
The exception occurred when the application try to get new db connection.
we have db connection pool mechanism.
at the time of getting a connection - the application checks any free 'connection' object in pool.
But there is no free 'connection' in pool, so application try to create a new connection object, but fails with the above exception.
it retries for three times and gets failed to create the db connection.
we are using oracle as db and thin client as driver.
where do i check for the root cause for this problem.
at the time of getting a connection - the application checks any free 'connection' object in pool.
But there is no free 'connection' in pool, so application try to create a new connection object, but fails with the above exception.
I did not get the point ..why would app create a new connection if there are no available connections in pool..
What made you to come to this conclusion ? any logs output ?
kannan vinayagam Duraiswamy
Ranch Hand
Joined: Jan 12, 2009
Posts: 52
posted
0
in the "connection" pool all the connection obj are active (in use!).
so it try to create a new "connection" object using the following code
stack trace of the exception
SQL EXCEPTION
ANSI-92 SQL State : null
Vendor error code : 17002
java.sql.SQLException: Io exception: Got minus one from a read call
java.sql.SQLException: Io exception: Got minus one from a read call
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)
atoracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at DbConnection.createConnection(DbConnection.java:419)