Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
10.2.1.6
-
None
-
None
Description
I ran the testSecMec test with client & 141 vm and hit this error.
This could probably be a documentation issue – that we document what level of algorithm support is required for secmec 8
T9: jdbc:derby://localhost:20000/wombat;user=neelima;password=lee;securityMechanism=8 - EXCEPTION Security exception encountered, see next exception for details.
java.sql.SQLException: Security exception encountered, see next exception for details.
at org.apache.derby.client.am.SQLExceptionFactory.getSQLException(SQLExceptionFactory.java:46)
at org.apache.derby.client.am.SqlException.getSQLException(SqlException.java:345)
at org.apache.derby.jdbc.ClientDriver.connect(ClientDriver.java:149)
at java.sql.DriverManager.getConnection(DriverManager.java:538)
at java.sql.DriverManager.getConnection(DriverManager.java:210)
at org.apache.derbyTesting.functionTests.tests.derbynet.testSecMec.getConnectionUsingDriverManager(testSecMec.java:471)
at org.apache.derbyTesting.functionTests.tests.derbynet.testSecMec.runTest(testSecMec.java:383)
at org.apache.derbyTesting.functionTests.tests.derbynet.testSecMec.main(testSecMec.java:260)
Caused by: org.apache.derby.client.am.SqlException: Security exception encountered, see next exception for details.
at org.apache.derby.client.am.EncryptionManager.<init>(EncryptionManager.java:156)
at org.apache.derby.client.net.NetConnection.initializeClientSeed(NetConnection.java:1426)
at org.apache.derby.client.net.NetConnection.flowUSRSSBPWDconnect(NetConnection.java:721)
at org.apache.derby.client.net.NetConnection.flowConnect(NetConnection.java:459)
at org.apache.derby.client.net.NetConnection.<init>(NetConnection.java:217)
at org.apache.derby.client.net.ClientJDBCObjectFactoryImpl.newNetConnection(ClientJDBCObjectFactoryImpl.java:201)
at org.apache.derby.jdbc.ClientDriver.connect(ClientDriver.java:140)
... 5 more
Caused by: java.security.NoSuchAlgorithmException: SHA1PRNG SecureRandom not available
at java.security.Security.getAlgClassName(Security.java:576)
at java.security.Security.getAlgClassName(Security.java:598)
at java.security.Security.getImpl(Security.java:1079)
at java.security.SecureRandom.getInstance(SecureRandom.java:241)
at org.apache.derby.client.am.EncryptionManager.<init>(EncryptionManager.java:148)
Attachments
Issue Links
- is related to
-
DERBY-1867 Document algorithm support required for using secmec 8(USRSSSBPWD) and limitation on ibm141 vm.
- Closed