I am trying to connect java to interbase with the next code for the purpose of perform a test of connection to my database of interbase but in on this line of code "cnx = DriverManager.getConnection(databaseURL,user,password);" waits indefinitely without returning any error and never connects and also and tried to do using "Communication Diagnostics" of "InterServer", but the result is the same, waits indefinitely without returning any error and never connects
Someone who has the solution for this problem?
I have the following development environment
Eclipse SDK 3.2.2 InterClient version: 2.1 InterServer 1.51 InterBase 5.5 jre6 Windows XP Professional
Connection cnx; Statement stmt; ResultSet result;
String databaseURL = "jdbc:interbase://localhost:3060/c:/data/TEST.gdb"; //String databaseURL = "jdbc:interbase://localhost/c:/data/TEST.gdb";
try { try { Class.forName ("interbase.interclient.Driver"); } catch (java.lang.ClassNotFoundException e) { out.write( ("InterClient not found in class path"); out.write((e.getMessage ()); } cnx = DriverManager.getConnection(databaseURL,user,password);
} catch( SQLException SQLe ) { out.write(SQLe.getMessage()+" \n"+ " SQLState: " + SQLe.getSQLState()+"\n"+ " ErrorCode: " + SQLe.getErrorCode()); }
|