Subject | Inoltra: Problems with release FireBird 1.5 |
---|---|
Author | Luca Campagnaro |
Post date | 2004-03-22T09:50:35Z |
Hi,
i try to use the new relase 1.5 of FireBird.
My problems became from java.
I create a java class, like this
import org.firebirdsql.jdbc.FBConnection;
public class connect {
public static void main(String[] args) {
try{
Class.forName("org.firebirdsql.jdbc.FBDriver");
}
catch(ClassNotFoundException clsNFNDEXCP){
System.out.println(clsNFNDEXCP.getMessage());
}
String URL = "jdbc:firebirdsql://127.0.0
1/d:/programmi/Firebird/DBase/build.fdb";
String User = "SYSDBA";
String Pwd = "masterkey";
try{
Connection conn = DriverManager.getConnection(URL, User, Pwd);
String sql = "select * from build";
CallableStatement cs = conn.prepareCall(sql);
cs.execute();
ResultSet rs = cs.getResultSet();
rs.next();
System.out.println(rs.getObject(1).toString());
cs.close();
conn.close();
}
catch(SQLException sqlEXCPN){
System.out.println(sqlEXCPN.getErrorCode());
}
}
}
What can i do? or where is my error?
Ho can help me?
Thanks in advance..
[Non-text portions of this message have been removed]
i try to use the new relase 1.5 of FireBird.
My problems became from java.
I create a java class, like this
>>>>import java.sql.*;
import org.firebirdsql.jdbc.FBConnection;
public class connect {
public static void main(String[] args) {
try{
Class.forName("org.firebirdsql.jdbc.FBDriver");
}
catch(ClassNotFoundException clsNFNDEXCP){
System.out.println(clsNFNDEXCP.getMessage());
}
String URL = "jdbc:firebirdsql://127.0.0
1/d:/programmi/Firebird/DBase/build.fdb";
String User = "SYSDBA";
String Pwd = "masterkey";
try{
Connection conn = DriverManager.getConnection(URL, User, Pwd);
String sql = "select * from build";
CallableStatement cs = conn.prepareCall(sql);
cs.execute();
ResultSet rs = cs.getResultSet();
rs.next();
System.out.println(rs.getObject(1).toString());
cs.close();
conn.close();
}
catch(SQLException sqlEXCPN){
System.out.println(sqlEXCPN.getErrorCode());
}
}
}
>>>but the resultset gives me an SQLException whith this errorcode 335544569
What can i do? or where is my error?
Ho can help me?
Thanks in advance..
[Non-text portions of this message have been removed]