Re: problem in getting Large Object from pooled PostgreSQL / Tomcat 6
От | Albe Laurenz |
---|---|
Тема | Re: problem in getting Large Object from pooled PostgreSQL / Tomcat 6 |
Дата | |
Msg-id | D960CB61B694CF459DCFB4B0128514C202E27D5B@exadv11.host.magwien.gv.at обсуждение исходный текст |
Ответ на | problem in getting Large Object from pooled PostgreSQL / Tomcat 6 (ahmettemiz88@gmail.com) |
Ответы |
Re: problem in getting Large Object from pooled PostgreSQL / Tomcat 6
|
Список | pgsql-jdbc |
ahmettemiz88 wrote: > I am trying to Retrieve image ( Large Object) from pooled PostgreSQL / > tomcat 6: > > I am having some exceptions from following > > ds = (DataSource) ctx.lookup("java:comp/env/jdbc/bzk2"); > Connection conn = ds.getConnection(); > PGConnection pgCon = (PGConnection) ((DelegatingConnection)conn) // > ****exception > .getInnermostDelegate(); > > lobj = ((org.postgresql.PGConnection)pgCon).getLargeObjectAPI(); > [...] > org.apache.tomcat.dbcp.dbcp.PoolingDataSource > $PoolGuardConnectionWrapper cannot be cast to > org.apache.commons.dbcp.DelegatingConnection > > > how can I solve the problem ? I don't thing that this has anything to do with PostgreSQL. Neither an org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper nor an org.apache.commons.dbcp.DelegatingConnection are part of the PostgreSQL JDBC driver. Yours, Laurenz Albe
В списке pgsql-jdbc по дате отправления: