简体   繁体   English

ORA-01005:给出的密码为空; 使用Bouncy Castle作为安全提供程序时登录被拒绝

[英]ORA-01005: null password given; logon denied when using Bouncy Castle as security provider

The setup is simple: 设置很简单:

  • bc-fips-1.0.0.jar and bcpkix-fips-1.0.0.jar for the security provider 安全提供程序的bc-fips-1.0.0.jar和bcpkix-fips-1.0.0.jar
  • oracle jdbc driver version 12.1.0.2 oracle jdbc驱动程序版本12.1.0.2
  • server: Oracle Database 12c Standard Edition 12.1.0.2.0 服务器:Oracle Database 12c标准版12.1.0.2.0

The application: 应用程序:

Security.addProvider(new BouncyCastleFipsProvider());
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection connection = DriverManager.getConnection("jdbc:oracle:thin:@host:1521:db","user","pass");
connection.close();

The exception: 例外:

java.sql.SQLException: ORA-01005: null password given; logon denied

at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:450)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:392)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:385)
at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:1018)
at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:501)
at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:522)
at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:257)
at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:437)
at oracle.jdbc.driver.T4CTTIoauthenticate.doOAUTH(T4CTTIoauthenticate.java:954)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:639)
at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:666)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:566)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:247)
at Main.main(Main.java:56)

Any idea? 任何想法?

In the meantime, we found that the error occurs only using the version 12.1.0.2 of the JDBC driver. 同时,我们发现该错误仅在使用JDBC驱动程序的12.1.0.2版本时发生。

Version 12.1.0.1 works fine! 版本12.1.0.1可以正常工作!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM