Got minus one from a read call
490365Feb 24 2006 — edited Feb 24 2006I am getting a Got minus one from a read call when I run my java program. Here is a portion of the code.
...................
String dbName = "hahaha";
String url = "jdbc:oracle:thin:@localhost:8080:" + dbName ;
String userName = "bababa";
String passWord = "cacaca";
try
{
DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
System.out.println(url);
System.out.println("Connecting to FAPACMS database....");
con = DriverManager.getConnection(url,userName,passWord);
System.out.println("Successfully connected...");
st = con.createStatement();
rs = st.executeQuery("SELECT * FROM 'Courses'");
System.out.println("Getting data fom courses"); .....} catch .....
I am unable to find any documentation for this Got minus one from a read call error.
Any help is truly appreciated.
Thanks.