Skip to Main Content

Oracle Database Express Edition (XE)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Got minus one from a read call

490365Feb 24 2006 — edited Feb 24 2006
I 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2006
Added on Feb 24 2006
8 comments
691 views