If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > jdbc -> progress String index out of bounds exception

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-11-02, 12:52
youngster youngster is offline
Registered User
 
Join Date: Sep 2002
Posts: 2
jdbc -> progress String index out of bounds exception

I'm trying to connect to the progress db through jdbc.
But I get the java.lang.StringIndexOutOfBoundsException

Can anybody please help me?!?

I'm using progress v9.1 and the JdbcProgressDriver!

Very much thanks in advance!

This is my script:

public sneltest4() {
try {
Class.forName("com.progress.sql.jdbc.JdbcProgressD river");
System.out.println("Opening db connection");

connection = DriverManager.getConnection("jdbc:JdbcProgress:T:a ctime");
s = connection.createStatement();

resultSet = s.executeQuery("SELECT persnr FROM persoon");

while (resultSet.next()) {
String st1 = resultSet.getString("persnr");
System.out.println(st1);
}


}
catch (ClassNotFoundException ex) {
System.err.println("Cannot find the database driver classes.");
System.err.println(ex);
}

catch (SQLException ex) {
System.err.println("Cannot connect to this database.");
System.err.println(ex);

}



}
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On