aspose 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 Spring in Action this week in the Spring 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: 2503
    
    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