Subject Re: [Firebird-Java] hostname resolving jaybird
Author Mark Rotteveel
Roman Rokytskyy wrote:
>> Could it be that your host also supports IPv6? I was recently looking
>> into the Jaybird sourcecode and the Firebird wire-protocol. I might be
>> wrong, but it looks like IPv6 is not supported.

> Right, there is no code to directly support IPv6.

Yes, but I also believe the wire protocol somewhere requires four bytes
for the IP-address of either the host or the server (example:
AbstractJavaGDSImpl.iscQueueEvents(..) )

>> Since Jaybird uses mostly old-school (pre Java 1.4) Exception chaining,
>> you might also want to call getNext() on your GDSException or
>> getInternalException for FBSQLException and descendants to see if there
>> is more info.
>
> What do you mean by "old-school" exception chaining?

Before Java 1.4 there was no API-defined Exception-chaining in Java, so
a lot of people rolled their own, Java 1.4 introduced a standard for
chaining. JDBC specifies a specific way of chaining but that is not
followed by Jaybird as far as I can see. Starting with JDBC 4.0 a
combination of the old JDBC chaining and the new chaining should be used.

The 'old-school' style in Jaybird uses getNext() in GDSException and
getInternalException in FBSQLException. Under the 'new'
Exception-chaining, one would normally use getCause() or in case of JDBC
specific Exceptions: getNextException() in combination with getCause().
See also the explanation in
http://java.sun.com/javase/6/docs/api/java/lang/Throwable.html and
paragraph 8.1.2 in the JDBC 4.0 spec.

Mark
--
Mark Rotteveel