java.lang.IllegalStateException: cannot resolve or generate proxy With 21C UCP11.JAR and JDK 11
(Doc ID 2859797.1)
Last updated on APRIL 04, 2022
Applies to:
Universal Connection Pool - Version 21.1 to 21.5 [Release 21]Information in this document applies to any platform.
Symptoms
The objective is to migrate a Java product from Java8 to Java11.
In the process, UCP JAR was also upgraded to ucp11.jar.
After the UCP upgrade, the service is unable to get the connection.
Exception stack seen at service start:
java.lang.IllegalStateException: cannot resolve or generate proxy
at oracle.ucp.proxy.ProxyFactory.prepareProxy(ProxyFactory.java:618)
at oracle.ucp.proxy.ProxyFactory.createProxy(ProxyFactory.java:571)
at oracle.ucp.proxy.ProxyFactory.proxyForCreate(ProxyFactory.java:266)
at oracle.ucp.jdbc.proxy.oracle.OracleConnectionProxyFactory.proxyForCreate(OracleConnectionProxyFactory.java:60)
at oracle.ucp.jdbc.proxy.oracle.OracleConnectionProxyFactory.proxyForConnection(OracleConnectionProxyFactory.java:66)
at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:1858)
at oracle.ucp.jdbc.PoolDataSourceImpl$3.build(PoolDataSourceImpl.java:3999)
at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:1801)
at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:1756)
at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:1742)
at com.<NAME>.jdbc.datasource.MyPoolDataSource.getConnectionOnSuper(MyPoolDataSource.java:126)
at com.<NAME>.jdbc.datasource.MyPoolDataSource.getConnection(MyPoolDataSource.java:207)
...
Changes
The UCP JAR was upgraded to ucp11.jar.
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 |