My Oracle Support Banner

NullPointerException Getting Sharded Connection Statistics In UCP (Doc ID 2876437.1)

Last updated on JUNE 16, 2022

Applies to:

Universal Connection Pool - Version 21.1 to 21.5 [Release 21]
JDBC - Version 21.1 to 21.5 [Release 21]
Information in this document applies to any platform.

Symptoms

In Universal Connection Pool (UCP) Version 21c calling statistics UniversalConnectionPoolStatisticsImpl.getShardConnectionStats() without starting the pool fails with NullPointerException.

Exception trace:

java.lang.NullPointerException: null
at oracle.ucp.common.Topology.getShardConnectionStats(Topology.java:919)
at
oracle.ucp.common.UniversalConnectionPoolBase.getShardConnectionStats(UniversalConnectionPoolBase.java:2709)
at
oracle.ucp.common.UniversalConnectionPoolStatisticsImpl.getShardConnectionStats(UniversalConnectionPoolStatisticsImpl.java:313)

 




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
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.