Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local host identification problems causes a error with confusing error message [JDBC120] #160

Closed
firebird-automations opened this issue Jul 22, 2008 · 3 comments

Comments

@firebird-automations
Copy link

Submitted by: Serge Bogatyrev (sergebg)

Assigned to: Roman Rokytskyy (rrokytskyy)

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 problem is quite confusing because "isql" utility successfully connects to a database. In both cases (java and isql) the same connection string is used: "localhost:alias".

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

---
The host name of my work station is "toronto". I am removing it from hosts and trying to connect via "localhost:alias". Then I am getting "Unable to complete network request to host "localhost"". Really the problem is "Unable to complete network request to host "toronto"". But why I need to describe "toronto" when I am using "localhost" or even explicit IP of the remote host.

Commits: 2663f31

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

Fix Version: Jaybird 2.2 [ 10053 ]

timeestimate: 0 [ 0 ]

timeoriginalestimate: 0 [ 0 ]

@firebird-automations
Copy link
Author

Modified by: Roman Rokytskyy (rrokytskyy)

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Author

Modified by: @mrotteveel

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant