Re: PGConnection (LargeObject) / JNDI Tomcat Issue - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: PGConnection (LargeObject) / JNDI Tomcat Issue
Date
Msg-id CADK3HH+ExjtLYN-HmiJC_b_dm+8pB_4XvEaMvdqgGosGqOJzPw@mail.gmail.com
Whole thread Raw
In response to Re: PGConnection (LargeObject) / JNDI Tomcat Issue  ("peter.penzov" <peter.penzov@gmail.com>)
List pgsql-jdbc
I would suggest you use the latest driver to start with


On 2 May 2016 at 14:55, peter.penzov <peter.penzov@gmail.com> wrote:
I have the same issue. I tried to use PGConnection pgCon
=(PGConnection)((DelegatingConnection)conn).getInnermostDelegate();

But I get

Caused by: java.lang.ClassCastException:
org.apache.tomcat.dbcp.dbcp2.PoolingDataSource$PoolGuardConnectionWrapper
cannot be cast to org.apache.commons.dbcp.DelegatingConnection

I use 9.2-1002.jdbc4 and Tomcat 8.

Can you propose some solution?



--
View this message in context: http://postgresql.nabble.com/PGConnection-LargeObject-JNDI-Tomcat-Issue-tp2169889p5901537.html
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.


--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc

pgsql-jdbc by date:

Previous
From: Gavin Flower
Date:
Subject: Re: pgsql jdbc db connection weird behaviour
Next
From: "David G. Johnston"
Date:
Subject: Re: Cast java.sql.Connection to PGConnection