Subject Linux Client Unable to complete network request problem
Author venushau
Hello everyone.

I've got a problem in using Firebird 2 Beta 2 with Jaybird 2 JRE 1.4
in the Linux environment. I tried to get a connection from a Linux
machine to both a Windows Firebird Server and a local Linux Firebird
Server, both fail. The connection can be established using the same
program in a Windows environment however ( connecting to the same
Windows Firebird Server and Linux Firebird Server ).

I've tried to shutdown the firewall in the Linux client. When using
the telnet command to connect to the Firebird Server, connection is
established successfully. Using the ping command to ping
using "localhost" and IP address can work also. I then tried to
connect the local Firebird Server with ISQL command tool, with the
following connection string:

CON>
CONNECT "localhost:/opt/firebird/examples/empbuild/employee.fdb"
user sysdba password masterkey

The connection is established successfully, queries can be performed.

I wonder if this is a problem in the Linux environment settings.
Does anyone have an idea?

Thanks very much.

-------------------------------
connection string in the class TestFBConnection.java:
"jdbc:firebirdsql:localhost:/opt/firebird/examples/empbuild/employee.
fdb"

-------------------------------
org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544721.
Unable to complete network request to host "localhost".
Reason: Unable to complete network request to host "localhost".
at org.firebirdsql.jdbc.FBDataSource.getConnection
(FBDataSource.java:122)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:131)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at TestFBConnection.getConnection(TestFBConnection.java:72)
at TestFBConnection.getConnection(TestFBConnection.java:48)
at TestFBConnection.main(TestFBConnection.java:31)
at org.firebirdsql.gds.GDSException: Unable to complete network
request to host "192.168.0.31".
at org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl.connect
(AbstractJavaGDSImpl.java:1948)
at
org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl.isc_attach_database
(AbstractJavaGDSImpl.java:387)
at
org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl.iscAttachDatabase
(AbstractJavaGDSImpl.java:363)
at org.firebirdsql.jca.FBManagedConnection.<init>
(FBManagedConnection.java:90)
at
org.firebirdsql.jca.FBManagedConnectionFactory.createManagedConnectio
n(FBManagedConnectionFactory.java:466)
at
org.firebirdsql.jca.FBStandAloneConnectionManager.allocateConnection
(FBStandAloneConnectionManager.java:69)
at org.firebirdsql.jdbc.FBDataSource.getConnection
(FBDataSource.java:119)
at org.firebirdsql.jdbc.FBDriver.connect(FBDriver.java:131)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at TestFBConnection.getConnection(TestFBConnection.java:72)
at TestFBConnection.getConnection(TestFBConnection.java:48)
at TestFBConnection.main(TestFBConnection.java:31)
Exception in thread "main" java.lang.NullPointerException
at TestFBConnection.main(TestFBConnection.java:31)