Firebird connection - Unable to complete network request to host
843854Apr 26 2004 — edited Apr 26 2004
Dear all
I have installed FirebirdCS-1.5.0.4290-0.i686.rpm in my Linux 7.2 machine.
My server is up and running and I am able to connect thru isql and create a database and everything. Now I am trying to create a JDBC connection to this server using the following test program.
import java.sql.*;
class ConnFire{
static public void main (String args[]) throws Exception {
Class.forName("org.firebirdsql.jdbc.FBDriver").newInstance();
Connection connection=DriverManager.getConnection("jdbc:firebirdsql:mpc/3050:/opt/firebird/bin/NetUtilsDB", "sysdba","masterkey");
Statement statement=connection.createStatement();
}
}
When I run this program I get one of the following two exceptions.
My driver version - FirebirdSQL-1.5_20031030.zip
Whats wrong with my server????
Please help me out :(
1.
-------Exception in thread "main" org.firebirdsql.jdbc.FBSQLException: Resource Exception. Unable to complete network request to host "sharadan".
Reason: Unable to complete network request to host "sharadan".
at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:105)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:200)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at ConnFire.main(ConnFire.java:8)
at org.firebirdsql.gds.GDSException: Unable to complete network request to host "sharadan".
at org.firebirdsql.jgds.GDS_Impl.connect(GDS_Impl.java:1658)
at org.firebirdsql.jgds.GDS_Impl.isc_attach_database(GDS_Impl.java:279)
at org.firebirdsql.jgds.GDS_Impl.isc_attach_database(GDS_Impl.java:255)
2.
-----------
Exception in thread "main" org.firebirdsql.jdbc.FBSQLException: Resource Exception. connection rejected by remote interface
Reason: connection rejected by remote interface
at org.firebirdsql.jdbc.FBDataSource.getConnection(FBDataSource.java:105)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:200)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at ConnFire.main(ConnFire.java:8)
at org.firebirdsql.gds.GDSException: connection rejected by remote interface
at org.firebirdsql.jgds.GDS_Impl.connect(GDS_Impl.java:1654)