Subject | Debugging connection failure |
---|---|
Author | David Warnock |
Post date | 2003-02-06T02:41:41Z |
Hi,
I am trying to get Jaybird to work on a new machine runing firebird CS
1.0.2 on linux.
Using isql this works
SQL> connect localhost:/home/david/dev/test/db-ojb/data/test.gdb;
Database: localhost:/home/david/dev/test/db-ojb/data/test.gdb
SQL>
Using really basic java code as a first test this does not work:
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?
Thanks
Dave
--
David Warnock, Sundayta Ltd. http://www.sundayta.com
iDocSys for Document Management. VisibleResults for Fundraising.
Development and Hosting of Web Applications and Sites.
I am trying to get Jaybird to work on a new machine runing firebird CS
1.0.2 on linux.
Using isql this works
SQL> connect localhost:/home/david/dev/test/db-ojb/data/test.gdb;
Database: localhost:/home/david/dev/test/db-ojb/data/test.gdb
SQL>
Using really basic java code as a first test this does not work:
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?
Thanks
Dave
--
David Warnock, Sundayta Ltd. http://www.sundayta.com
iDocSys for Document Management. VisibleResults for Fundraising.
Development and Hosting of Web Applications and Sites.