Re: PGConnection (LargeObject) / JNDI Tomcat Issue

From: "peter(dot)penzov" <peter(dot)penzov(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: PGConnection (LargeObject) / JNDI Tomcat Issue
Date: 2016-05-02 18:55:04
Message-ID: 1462215304379-5901537.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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.

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message peter.penzov 2016-05-02 19:30:48 Re: pgsql jdbc db connection weird behaviour
Previous Message peter.penzov 2016-05-02 18:29:10 Cast java.sql.Connection to PGConnection