Re: PGConnection (LargeObject) / JNDI Tomcat Issue

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: "peter(dot)penzov" <peter(dot)penzov(at)gmail(dot)com>
Cc: List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: PGConnection (LargeObject) / JNDI Tomcat Issue
Date: 2016-05-03 00:38:16
Message-ID: CADK3HH+ExjtLYN-HmiJC_b_dm+8pB_4XvEaMvdqgGosGqOJzPw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I would suggest you use the latest driver to start with

Dave Cramer

davec(at)postgresintl(dot)com
www.postgresintl.com

On 2 May 2016 at 14:55, peter.penzov <peter(dot)penzov(at)gmail(dot)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(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-jdbc
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message David G. Johnston 2016-05-03 01:05:26 Re: Cast java.sql.Connection to PGConnection
Previous Message peter.penzov 2016-05-02 19:30:48 Re: pgsql jdbc db connection weird behaviour