My Oracle Support Banner

UCP Ignores Exceptions During 'initPdbSession' (Doc ID 2909144.1)

Last updated on NOVEMBER 21, 2022

Applies to:

Universal Connection Pool - Version 21.5 and later
Information in this document applies to any platform.

Symptoms

Using the UCP/JDBC version 21.5, when borrowing a connection from UCP, any exceptions in the onBorrow callback are just logged and ignored.

 

ORA-01924: role 'ROLE' not granted or does not exist
  : [oracle.ucp.common.CoreConnectionImpl.onBorrow(CoreConnectionImpl.java:673), oracle.ucp.common.Core.growBorrowed(Core.java:1325), oracle.ucp.common.UniversalConnectionPoolImpl.helpGrowBorrowed(UniversalConnectionPoolImpl.java:407), oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnectionWithoutCountingRequests(UniversalConnectionPoolImpl.java:350), oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnectionAndValidateHelper(UniversalConnectionPoolImpl.java:206), oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnectionAndValidate(UniversalConnectionPoolImpl.java:166), oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnection(UniversalConnectionPoolImpl.java:139), oracle.ucp.jdbc.JDBCConnectionPool.borrowConnection(JDBCConnectionPool.java:185), oracle.ucp.jdbc.oracle.OracleJDBCConnectionPool.borrowConnection(OracleJDBCConnectionPool.java:611), oracle.ucp.jdbc.oracle.OracleConnectionConnectionPool.borrowConnection(OracleConnectionConnectionPool.java:119), oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:1876), oracle.ucp.jdbc.PoolDataSourceImpl.access$300(PoolDataSourceImpl.java:225), oracle.ucp.jdbc.PoolDataSourceImpl$3.build(PoolDataSourceImpl.java:4046), oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:1821), oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:1777), oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:1763),

...

 

 

 



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.