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?