JDBC and interbase.

Hello.

I'm trying to learn JDBC, i'm using interbase 6.0 on a linux Suse 7.0 and i have no problems conecting with Delphi. But when i try to get a connection with interbase i get allways the same error message.

The code is:

//: Conecta.java

import interbase.interclient.*;

import java.util.*;

public class Conecta {

public static void main(String[] args) {

try {

String dbUrl = "jdbc:interbase://10.0.129.1//BBDD/pruebasBeni.gdb";

String user = "SYSDBA";

String password = "asinforuser";

Properties props = new Properties();

// Load the driver (registers itself)

Class.forName("interbase.interclient.Driver");

props.setProperty("USERNAME", user);

props.setProperty("PASSWORD", password);

java.sql.Connection c = java.sql.DriverManager.getConnection(dbUrl, props);

} catch (Exception e) {

System.out.println(e);

}

}

} ///:~

And the error message is:

C:\WINDOWS\TEMP\Pruebas Interbase>java Conecta

Exception in thread "main" java.lang.VerifyError: (class: interbase/interclient/

ErrorKey, method: _$372 signature: (Ljava/lang/String;Ljava/lang/String;I)V) Exp

ecting to find unitialized object on stack

at interbase.interclient.Driver.connect(Driver.java:180)

at java.sql.DriverManager.getConnection(Unknown Source)

at java.sql.DriverManager.getConnection(Unknown Source)

at Conecta.main(Conecta.java:16)

Thanks.

Beni.

[1548 byte] By [benitodarder] at [2007-9-26 3:32:52]
# 1
There is an error in the class file you are trying to use. The error is in interbase.interclient.Driver.connect. Let interbase know about this problem so they can fix it.
schapel at 2007-6-29 12:00:50 > top of Java-index,Archived Forums,New To Java Technology Archive...