• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

io exception got minus one from a read call

 
archit thakur
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2586
11
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be easy on the emoticons.

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

 
mahesh shinde
Ranch Hand
Posts: 69
Eclipse IDE Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is that correct port number?
try this one 1521
I always use this one for oracle
I think problem is related to port number
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic