Pg JDBC 3 driver, JDK 1.6, Glassfish v2 incompatability

Поиск
Список
Период
Сортировка
От Thor-Michael Støre
Тема Pg JDBC 3 driver, JDK 1.6, Glassfish v2 incompatability
Дата
Msg-id BF48396AA1F0CD4EA23C6093A992E4DDE38B95@ex-srv-02.exchangemail.no
обсуждение исходный текст
Ответы Re: Pg JDBC 3 driver, JDK 1.6, Glassfish v2 incompatability
Список pgsql-jdbc

Hello,

 

Could some dev take a look at the following bug in the Glassfish Applicationserver, and either clear the JDBC PostgreSQL driver of any wrongdoing, or fix any problem that may be present in the driver? It’s really no big deal since I have no problem working around it, but even just getting a comment on it would put one of my worries at rest.

 

https://glassfish.dev.java.net/issues/show_bug.cgi?id=2779

 

The relevant part of it is:

CAUSE:
On further investigation, Postgres jdbc driver's Connection from
ConnectionPoolDataSource/XADataSource is a proxy of java.sql.Connection, 
This proxy, in jdk 1.6 will list all methods of jdbc 4.0 connection (even though
the datasource is only jdbc 30)
This makes GlassFish to decide (during initialization of datasource) that it is
a jdbc 4.0 compatible connection and calls jdbc 4.0 methods of Connection,
causing AbstractMethodError thrown.

 

Thanks,

Thor Michael Støre

 

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Bellur Ashwin
Дата:
Сообщение: Problem with Running Query
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Pg JDBC 3 driver, JDK 1.6, Glassfish v2 incompatability