Subject | Getting started with JayBird, Netbeans 4.1, IB6 |
---|---|
Author | digitry |
Post date | 2005-08-04T17:22:29Z |
I'm trying unsuccessfully to use JayBird with InterBase 6.0,
NetBeans 4.1 and Java 1.5. To be specific, I'm using
JayBird-2.0.0beta2JDK_1.5 (because that seems to be the
version that supports Java 1.5) on a Windows 2000 platform.
I'm new at trying to combine all these together and am
finding it somewhat daunting.
The following snippet of code fails
try {
Class.forName("org.firebirdsql.jdbc.FBDriver");
Connection conn =
DriverManager.getConnection("jdbc:firebirdsql:loca
lhost/3050:/IntrBase/TestDB.GDB",
"SYSDBA", "masterkey");
} catch (ClassNotFoundException e0) {
System.out.println("*** Error connecting driver *** " +
e0.getMessage());
return;
} catch(SQLException e1) {
System.out.println("*** Error logging in *** " +
e1.getMessage());
return;
}
System.out.println("Connected!");
with the message
*** Error logging in *** GDS Exception. 335544583. SQLDA missing or
incorrect version, or incorrect number/type of variables
Reason: SQLDA missing or incorrect version, or incorrect number/type
of variables
I have tried this with various different databases, and they all
failed the same way. However, most of them are several years old
and were created by older versions of Interbase, so I created
TestDB with IB6, put in one row of data, and tried it out with
the results above.
HELP! and thanks,
- Richard
NetBeans 4.1 and Java 1.5. To be specific, I'm using
JayBird-2.0.0beta2JDK_1.5 (because that seems to be the
version that supports Java 1.5) on a Windows 2000 platform.
I'm new at trying to combine all these together and am
finding it somewhat daunting.
The following snippet of code fails
try {
Class.forName("org.firebirdsql.jdbc.FBDriver");
Connection conn =
DriverManager.getConnection("jdbc:firebirdsql:loca
lhost/3050:/IntrBase/TestDB.GDB",
"SYSDBA", "masterkey");
} catch (ClassNotFoundException e0) {
System.out.println("*** Error connecting driver *** " +
e0.getMessage());
return;
} catch(SQLException e1) {
System.out.println("*** Error logging in *** " +
e1.getMessage());
return;
}
System.out.println("Connected!");
with the message
*** Error logging in *** GDS Exception. 335544583. SQLDA missing or
incorrect version, or incorrect number/type of variables
Reason: SQLDA missing or incorrect version, or incorrect number/type
of variables
I have tried this with various different databases, and they all
failed the same way. However, most of them are several years old
and were created by older versions of Interbase, so I created
TestDB with IB6, put in one row of data, and tried it out with
the results above.
HELP! and thanks,
- Richard