Drivers oracle atualizados recentemente de ojdbc8 para ojdbc17 e ucp17.jar, para o servidor tocmat onde um aplicativo baseado em Java17 é implantado. Mas a conexão com o banco de dados agora mostra o seguinte erro. Outros jars no classpath são
org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLException: UCP-0: Unable to start the Universal Connection Pool
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:83)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:646)
at org.springframework.jdbc.core.JdbcTemplate.update(JdbcTemplate.java:960)
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: when l value specified, it must be less than bitlength(p)
at oracle.net.aso.DiffieHellman$DHJCEWrapper.getPublicKey(DiffieHellman.java:148)
at oracle.net.ano.DataIntegrityService.receiveServiceData(DataIntegrityService.java:253)
at oracle.net.ano.Service.receiveSelection(Service.java:360)
And the last caused by is :
Caused by: java.lang.IllegalArgumentException: when l value specified, it must be less than bitlength(p)
at org.bouncycastle.crypto.params.DHParameters.<init>(Unknown Source)
at org.bouncycastle.crypto.params.DHParameters.<init>(Unknown Source)
at org.bouncycastle.jce.provider.JDKKeyPairGenerator$DH.initialize(Unknown Source)
at java.base/java.security.KeyPairGenerator.initialize(KeyPairGenerator.java:436)
Eu tinha o antigo jar bouncy castle bcprov-jdk16:1.46. Atualizei para bcprov-jdk18on. Continuo recebendo o mesmo erro. Qualquer ajuda é bem-vinda.