Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JDBC and the fly likes java.sql.SQLException: Io exception: Got minus one from a read call Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "java.sql.SQLException: Io exception: Got minus one from a read call" Watch "java.sql.SQLException: Io exception: Got minus one from a read call" New topic
Author

java.sql.SQLException: Io exception: Got minus one from a read call

Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 672
Hello,

I am receiving the following error. Please advise.



Thanks in anticipation
Martin Vajsar
Bartender

Joined: Aug 22, 2010
Posts: 2331
    
    2

Looks like some obscure network/connection problem. Googling Got minus one from a read call brings up several interesting threads.

Also, check out Oracle's driver compatibility matrix to make sure your DB and driver can talk to each other.
Farakh khan
Ranch Hand

Joined: Mar 22, 2008
Posts: 672
Thanks Martin.

By following your suggestions I googled many posts and found that I was not closing connection that was opening too many processes in Oracle that were causing this error. I closed connection to each class and now its fixed.

Thanks again
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: java.sql.SQLException: Io exception: Got minus one from a read call
 
Similar Threads
SQLException: Io exception: There is no process to read data written to a pipe.
Need JDBC driver for JDK 6 Oracle 10g (10.2.0.4)
java.sql.SQLException: Io exception: Got minus one from a read call
java. lang. Class Not FoundException:
Got minus one from a read call - IO Exception