My Oracle Support Banner

Connection Labelling Cannot Be Used With PoolXADataSource from Universal Connection Pool Resulting in Null Connection (Doc ID 1573094.1)

Last updated on NOVEMBER 15, 2021

Applies to:

JDBC - Version 11.2.0.3.0 to 11.2.0.3.0 [Release 11.2]
Universal Connection Pool - Version 11.2.0.3.0 to 11.2.0.3.0 [Release 11.2]
Information in this document applies to any platform.

Symptoms

With version 11.2.0.3 of the Thin JDBC driver and Universal Connection Pool (UCP), using PoolXADataSource from Universal Connection Pool returns NULL connection when ConnectionLabellingCallback is called.
A database connection should be returned when using PoolXADataSource.

To check if you are seeing this problem, you can try running the following standalone Java program:

 

If you are seeing the problem, then the output from the program will look like:

$ java -cp .:ojdbc6.jar:ucp.jar LabelTest
----------------
using dataSource
----------------
'configure' called
  requestedLabels: {IMPORTANT_FEATURE=DESIRED_VALUE}
  connection: $Proxy0@4036afc5

------------------
using xaDataSource
------------------
'configure' called
  requestedLabels: {IMPORTANT_FEATURE=DESIRED_VALUE}
  connection: null

The connection for XADataSource is NULL. This is incorrect behaviour.

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.