NativeJdbcExtractorAdapter .getNativeConnectionConnection() returning a null [SPR-4597] #9274
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Caesar Loh opened SPR-4597 and commented
In line 108 of NativeJdbcExtractorAdapter, it will return a null for connection.
This occur when the datasource is being retrieved from another server rather than the holding server. The metadata.getConnection() will return a null, and obviously by comparing it with the original connection, it will be different. Thus, this method will return a null.
How about doing a simple check for null before returning the connection? In any case, metadataConnection will simply return the same connection.
Affects: 2.0.6, 2.0.7, 2.0.8, 2.5.1, 2.5.2
Issue Links:
Backported to: 2.0.9
The text was updated successfully, but these errors were encountered: