Subject Newbie problem: unable to complete network request on MAC OS
Author tpr1776
Hi,

I have already read many similar postings but neither of the answers
could solve my problem.

I just want to build a small java application with an SQL access to
Firebird. Everytime I get this exception:

--- ERROR ---
org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544721. Unable
to complete network request to host "localhost".
Reason: Unable to complete network request to host "localhost".
--- end of ERROR ---

My code is:
--- CODE ---
public static final String
cDBfile="/Users/thorstenreinsch/Documents/JPlan/test.fdb";

// ....

try {
Class.forName ("org.firebirdsql.jdbc.FBDriver");
} catch (Exception e) { //...
}
try {
c = DriverManager.getConnection(
"jdbc:firebirdsql:localhost/3050:"+cDBfile,
cDBuser,
cDBpassword);
System.out.println("q");
}
catch (Exception e){}
--- end of CODE ---

It does not matter if I use localhost, 127.0.0.1, my local IP or my
host name. I also shutdown my firewall, so this should not be the
problem...

I can work with my database with the command line tool isql without a
problem. But either my JDBC access nor Flamerobin is working.

I am working on Mac OS 10.4.7 and I downladed
Firebird-CS-1.5.1-MacOS.zip. I have Java 1.5.0_06 and use Jaybird
2.2.0 (I copied the file jaybird-full-2.2.0.jar to my application
directory).

I do not know if I have now a jdbc or database error (Maybe firebird
is not running or listing on port 3050). Unfortunately you can not
acces the MAC OS Howto on firebirdsql.org.

Thanks a lot

Thorsten