chia7712 commented on PR #23015:
URL: https://github.com/apache/kafka/pull/23015#issuecomment-5152169798
```
Gradle Test Run :core:test > Gradle Test Executor 1 > UserClientIdQuotaTest
> testThrottledRequest(String) >
testThrottledRequest(String).groupProtocol=consumer FAILED
java.lang.NoClassDefFoundError: Could not initialize class
org.bouncycastle.operator.DefaultSignatureAlgorithmIdentifierFinder
at
org.apache.kafka.test.TestSslUtils$CertificateBuilder.generate(TestSslUtils.java:441)
at
org.apache.kafka.test.TestSslUtils$CertificateBuilder.generate(TestSslUtils.java:428)
at
org.apache.kafka.test.TestSslUtils$SslConfigsBuilder.buildJks(TestSslUtils.java:666)
at
org.apache.kafka.test.TestSslUtils$SslConfigsBuilder.build(TestSslUtils.java:656)
at
org.apache.kafka.security.JaasTestUtils.sslConfigs(JaasTestUtils.java:291)
at
org.apache.kafka.security.JaasTestUtils.securityConfigs(JaasTestUtils.java:342)
at
org.apache.kafka.security.JaasTestUtils.securityConfigs(JaasTestUtils.java:315)
at
kafka.api.IntegrationTestHarness.clientSecurityProps(IntegrationTestHarness.scala:174)
at
kafka.api.IntegrationTestHarness.doSetup(IntegrationTestHarness.scala:133)
at
kafka.api.IntegrationTestHarness.setUp(IntegrationTestHarness.scala:118)
at kafka.api.BaseQuotaTest.setUp(BaseQuotaTest.scala:85)
at
kafka.api.UserClientIdQuotaTest.setUp(UserClientIdQuotaTest.scala:35)
Caused by:
java.lang.ExceptionInInitializerError: Exception
java.lang.NoSuchFieldError: Class
org.bouncycastle.asn1.x509.X509ObjectIdentifiers does not have member field
'org.bouncycastle.asn1.ASN1ObjectIdentifier id_rsassa_pss_shake128' [in thread
"Test worker"]
at
org.bouncycastle.operator.DefaultSignatureAlgorithmIdentifierFinder.<clinit>(Unknown
Source)
... 12 more
8 tests completed, 8 failed
```
I guess the dependency order changed during the upgrade. We need to exclude
`bcprov-jdk15on` from the core module.
```
configurations {
// To prevent a UniqueResourceException due the same resource existing
in both
// org.apache.directory.api/api-all and
org.apache.directory.api/api-ldap-schema-data
testRuntimeOnly.exclude module: 'api-ldap-schema-data'
testFixturesImplementation.exclude group: 'org.bouncycastle', module:
'bcprov-jdk15on'
testCompileClasspath.exclude group: 'org.bouncycastle', module:
'bcprov-jdk15on'
testRuntimeClasspath.exclude group: 'org.bouncycastle', module:
'bcprov-jdk15on'
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]