File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes io exception got minus one from a read call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "io exception got minus one from a read call" Watch "io exception got minus one from a read call" New topic
Author

io exception got minus one from a read call

archit thakur
Greenhorn

Joined: Jul 10, 2010
Posts: 24
hi,
when i tried to make connection using the statements

Class.forName("oracle.jdbc.driver.OracleDriver");
con=DriverManager.getConnection("jdbcracle:thin:@localhost:8080:XE","uname","pword");

i got an SqlException that is "io exception got minus one from a read call".

how to solve it
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2491
    
    8

Please be easy on the emoticons.

Can you show us the full error message, and the piece of code where the error is happening?


OCUP UML fundamental and ITIL foundation
youtube channel
mahesh shinde
Ranch Hand

Joined: Jul 24, 2009
Posts: 69

is that correct port number?
try this one 1521
I always use this one for oracle
I think problem is related to port number
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: io exception got minus one from a read call
 
Similar Threads
error :SQLException caught:Io exception: Got minus one from a read call
java.sql.SQLException: Io exception: Got minus one from a read call
SQL Exception
Getting Hibernate Exception:Clear is not valid
java. lang. Class Not FoundException: