Thread: BUG #11680: PostgreSQL JDBC Driver issue

BUG #11680: PostgreSQL JDBC Driver issue

From
kentoj@gmail.com
Date:
The following bug has been logged on the website:

Bug reference:      11680
Logged by:          Kent Johnson
Email address:      kentoj@gmail.com
PostgreSQL version: 9.3.1
Operating system:   Mac OS X
Description:

When using the PostgreSQL JDBC driver in my project i get a weird error
stating "Unexpected error trying to gauge level of JDBC REF_CURSOR support :
null"

It causes my application to hang when starting up for anywhere between
eighty to three hundred seconds. After startup everything works fine. I am
using the following driver version:

(Gradle Dependency style)
'org.postgresql:postgresql:9.3-1102-jdbc41'

My application is a Spring Boot application and the hanging happens upon
starting that application.

I saw the error after turning on Hibernate logging. The full log is at the
following paste.

http://pastebin.com/CAjSyQw9

Does this sort of an error seem like an issue with the JDBC driver?

Re: BUG #11680: PostgreSQL JDBC Driver issue

From
jaime soler
Date:
El jue, 16-10-2014 a las 14:13 +0000, kentoj@gmail.com escribió:
> The following bug has been logged on the website:
>
> Bug reference:      11680
> Logged by:          Kent Johnson
> Email address:      kentoj@gmail.com
> PostgreSQL version: 9.3.1
> Operating system:   Mac OS X
> Description:
>
> When using the PostgreSQL JDBC driver in my project i get a weird error
> stating "Unexpected error trying to gauge level of JDBC REF_CURSOR support :
> null"
>
> It causes my application to hang when starting up for anywhere between
> eighty to three hundred seconds. After startup everything works fine. I am
> using the following driver version:
>
> (Gradle Dependency style)
> 'org.postgresql:postgresql:9.3-1102-jdbc41'
>
> My application is a Spring Boot application and the hanging happens upon
> starting that application.
>
> I saw the error after turning on Hibernate logging. The full log is at the
> following paste.
>
> http://pastebin.com/CAjSyQw9
>
> Does this sort of an error seem like an issue with the JDBC driver?

Sorry are you using Mysql5Dialect instead of PostgreSQLDialect ?

2014-10-16 08:05:50.560 DEBUG 36916 --- [ost-startStop-1]
o.h.b.r.s.internal.StrategySelectorImpl  : Registering named strategy
selector [org.hibernate.dialect.Dialect] : [MySQL5] ->
[org.hibernate.dialect.MySQL5Dialect] (replacing
[org.hibernate.dialect.MySQL5Dialect])
2014-10-16 08:05:50.561 DEBUG 36916 --- [ost-startStop-1]
o.h.b.r.s.internal.StrategySelectorImpl  : Registering named strategy
selector [org.hibernate.dialect.Dialect] : [MySQL5InnoDB] ->
[org.hibernate.dialect.MySQL5InnoDBDialect] (replacing
[org.hibernate.dialect.MySQL5InnoDBDialect])
>
>