Subject | Re: [Firebird-Java] Re: Unable to complete network request to host |
---|---|
Author | Lutz Müller |
Post date | 2010-06-01T11:30:29Z |
had this problem before... if i recall correctly it has something to do with
java and its implementation of getHostByName()
Am Samstag, 13. Februar 2010, um 10:42:02 schrieben Sie:
java and its implementation of getHostByName()
Am Samstag, 13. Februar 2010, um 10:42:02 schrieben Sie:
> > Does your /etc/hosts contain an entry for localhost?
>
> Yes
>
> > I remember seeing issues where not being able to (reverse)resolve the
> > hostname of the IP address caused problems.
>
> Bingo!
> The problem was the hostname (servidor.XXXXXXXX.com.br) was not listed in
> hosts file.
>
> I did check the hostname:
>
> # uname -a
> Linux servidor.XXXXXXXX.com.br 2.6.20-1.2320.fc5 #1 Tue Jun 12 18:50:38 EDT
> 2007 i686 i686 i386 GNU/Linux
>
> And then checked /etc/hosts file:
>
> # cat /etc/hosts
> 127.0.0.1 localhost XXXXXXXX.dyndns.org
>
> And figured out that 'servidor.XXXXXXXX.com.br' wasn´t there.
>
> After change /etc/hosts file, everything works:
>
> # cat /etc/hosts
> 127.0.0.1 localhost XXXXXXXX.dyndns.org servidor.XXXXXXXX.com.br
>
> Thanks for the help.
>
> Is this problem related to Java or to Jaybird itself?
>
> Regards,
>
> Fabiano.