Subject Re: Debugging connection failure
Author Roman Rokytskyy <rrokytskyy@acm.org>
Dave,

> try {
> Class.forName("org.firebirdsql.jdbc.FBDriver");
> DriverManager.getConnection(
> "jdbc:firebirdsql:localhost:/home/david/dev/test/db-
ojb/data/test.gdb",
> "sysdba",
> "masterkey");
>
> System.out.println("Got Connection");
> }
> catch (Exception e) {
> System.out.println("Exception: " + e);
> }
>
> When I run I see
>
> Exception: java.sql.SQLException: Problem getting connection:
Unable to
> complete network request to host "localhost"
>
> I am sure I have done/am doing something stupid but I can't see it
> at the moment.
>
> Any ideas?

Check if localhost is correctly resolved and there is no ip filtering
rules that block connection to port 3050. isql will not start the
server via inetd when used with localhost. JayBird uses normal
network connection to connect to database. Test if you can connect to
your database from another machine.

Best regards,
Roman Rokytskyy