• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.sql.SQLRecoverableException: IO Error: Got minus one from a read call

 
Kiran Yadav
Ranch Hand
Posts: 35
Eclipse IDE Firefox Browser Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have source code, in which I have created one main thread. The main thread contains 10 (ten) child Threads. Each child thread call database and process data from data base. Now in such case, the almost 50% data get processed, and later on "java.sql.SQLRecoverableException: IO Error: Got minus one from a read call" error get thrown from code. For getting connection, I tried to use connection pool as well as single connection. However, using both connection ways, I am getting same error.

Below is the error details :
java.sql.SQLRecoverableException: IO Error: Got minus one from a read call
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:458)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:546)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:236)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:185)


Kindly provide your opinion, what get wrong in this case?
 
Ron McLeod
Bartender
Pie
Posts: 1026
64
Android Eclipse IDE Java Linux MySQL Database Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How many simultaneous connections does your database support? Maybe you are trying to make more connections that it is configured for.

If would be helpful to provide more information such as which particular database and version, and code which demonstratesthe problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic