[
https://issues.apache.org/jira/browse/OPENJPA-2580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Richard Zowalla resolved OPENJPA-2580.
--------------------------------------
Resolution: Fixed
Already fixed on master: The NPE came from DelegatingConnection.unwrap
returning null. e98845758 (on master) changed it to recurse via
getDelegate().unwrap(iface) (DelegatingConnection.java:518-523), so
PostgresDictionary.getPGConnection's unwrapConnection(conn, PGConnection.class)
at :1228 reaches the driver connection. Closing; please reopen if this still
happens with OpenJPA 4.x.
> Null Pointer Exception when accessing Postgresql Large Object Manager on a
> DelegatingConnection
> -----------------------------------------------------------------------------------------------
>
> Key: OPENJPA-2580
> URL: https://issues.apache.org/jira/browse/OPENJPA-2580
> Project: OpenJPA
> Issue Type: Bug
> Affects Versions: 2.3.0
> Reporter: Steven Branda
> Priority: Major
>
> I'm using the OpenJPA 2.3.0 with Postgresql 9.3 and Bitronix Transaction
> Manager 2.1.4. I'm using BLOB streaming to write binary data into a
> LargeObject in the database. When OpenJPA calls
> PostgresDictionary.getLargeObjectManager( ... ) I get a NullPointerException.
> The problem appears to be in PostgresDictionary.getPGConnection( ... ). The
> last line of that method passes the DelegatingConnection into the
> unwrapConnection(...) method. It should pass the innerConn that gets
> resolved at the start of the method into the unwrapConnection(...) method.
> I recompiled the class with this change and now OpenJPA 2.3.0 works with blob
> streaming in my setup.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)