Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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)

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 24 2004
Added on Apr 26 2004
1 comment
2,746 views