Boa tarde…
Estou tentando fazer uma conexão com interbase, porém ocorre o seguinte erro:
[color=red]
org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544721. Unable to complete network request to host “localhost”.
Reason: Unable to complete network request to host “localhost”.
[/color]
Segui o código abaixo da conexão:
public java.sql.Connection getConexao() throws IllegalAccessException, InstantiationException{
java.sql.Connection con = null;
try {
Class.forName("org.firebirdsql.jdbc.FBDriver");
String url = "jdbc:firebirdsql:localhost/3050:c:/BANCO.GDB";
con = (java.sql.Connection) DriverManager.getConnection(url, "SYSDBA", "MASTERKEY");
} catch (SQLException ex) {
ex.printStackTrace();
} catch (ClassNotFoundException ex) {
ex.printStackTrace();
}
return con;
}
Desde já, obrigada!