Subject Re: [Firebird-Java] Problems with org.firebirdsql.gds.impl.wire.AbstractJavaGDSImpl.connect
Author Roman Rokytskyy

> Some implementation details causes an error like "Unable to complete
> network request to host "localhost""
> To build "user_id" the following expression is used:
> "InetAddress.getLocalHost().getHostName()".
> This expression throws an exception if there is no appropriate
> information about local host name in /etc/hosts.

The user_id, AFAIK, must be specified, but I doubt that it is used
anymore. If I understand things correctly, it was used to prevent some
hosts from connecting to server. But one has to check the Firebird sources.

> The problem is quite confusing because "isql" utility successfully
> connects to a database.

Via TCP or via local protocol? In other words, do you use 'localhost' in
connection string?

> I think that the thrown exception can be ignored or more informative
> error message should be used.

Can you please create a bug report for this problem, so it won't be

> From the other point of view there is another problem with the same code.
> For example, I can use Cyrillic host name (or user name). I have not a
> clear understanding of how "user_id" is used, but
> at any case String.length() can not be used to allocate enough space
> for a byte array.

And for this one a bug report, please :)