Subject | Re: [Firebird-Java] Newbie problem: unable to complete network request on MAC OS |
---|---|
Author | Christian Stengel |
Post date | 2006-08-31T19:49:07Z |
Hi,
this simply means, that your firebird is not running. The problem with
Mac OS X is, that launchd has replaced xinetd in current versions of
MacOS X 10.4.
If you execute the fb_inet_server process manually, you should be able
to execute your java program.
or
write the following to a textfile in /etc/xinetd.d/firebird
-- snip --
service gds_db
{
only_from = 127.0.0.1
user = firebird
group = firebird
server =
/Library/Frameworks/Firebird.framework/Resources/bin/fb_inet_server
}
-- snip --
and start xinetd.
Chris
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
this simply means, that your firebird is not running. The problem with
Mac OS X is, that launchd has replaced xinetd in current versions of
MacOS X 10.4.
If you execute the fb_inet_server process manually, you should be able
to execute your java program.
or
write the following to a textfile in /etc/xinetd.d/firebird
-- snip --
service gds_db
{
only_from = 127.0.0.1
user = firebird
group = firebird
server =
/Library/Frameworks/Firebird.framework/Resources/bin/fb_inet_server
}
-- snip --
and start xinetd.
Chris
> 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
>
>
>
>
>
>
>
>
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de