Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jdk_security3_0_FAILED javax/net/ssl/TLS/TLSDataExchangeTest.java ClassCastException: sun.security.rsa.RSAPublicKeyImpl incompatible with java.security.interfaces.RSAPrivateKey #19881

Open
JasonFengJ9 opened this issue Jul 19, 2024 · 0 comments

Comments

@JasonFengJ9
Copy link
Member

JasonFengJ9 commented Jul 19, 2024

Failure link

From an internal build(paix816):

java version "11.0.24-beta" 2024-07-16
IBM Semeru Runtime Certified Edition 11.0.24+7-202407130823 (build 11.0.24-beta+7-202407130823)
Eclipse OpenJ9 VM 11.0.24+7-202407130823 (build master-d2b02cf3c7, JRE 11 AIX ppc64-64-Bit Compressed References 20240713_886 (JIT enabled, AOT enabled)
OpenJ9   - d2b02cf3c7
OMR      - de311dd2b
JCL      - 10dcb53639 based on jdk-11.0.24+7)

Rerun in Grinder - Change TARGET to run only the failed test targets.

Optional info

Failure output (captured from console output)

[2024-07-13T16:05:25.528Z] variation: Mode150
[2024-07-13T16:05:25.528Z] JVM_OPTIONS:  -XX:+UseCompressedOops -Xverbosegclog 

[2024-07-13T16:23:06.945Z] TEST: javax/net/ssl/TLS/TLSDataExchangeTest.java

[2024-07-13T16:23:06.975Z] STDERR:
[2024-07-13T16:23:06.975Z] Test Exception for SSL_RSA_EXPORT_WITH_DES40_CBC_SHA
[2024-07-13T16:23:06.975Z] java.lang.ClassCastException: sun.security.rsa.RSAPublicKeyImpl incompatible with java.security.interfaces.RSAPrivateKey
[2024-07-13T16:23:06.975Z] 	at java.base/com.sun.crypto.provider.RSACipher.init(RSACipher.java:274)
[2024-07-13T16:23:06.975Z] 	at java.base/com.sun.crypto.provider.RSACipher.engineInit(RSACipher.java:211)
[2024-07-13T16:23:06.975Z] 	at java.base/javax.crypto.Cipher.implInit(Cipher.java:839)
[2024-07-13T16:23:06.975Z] 	at java.base/javax.crypto.Cipher.chooseProvider(Cipher.java:901)
[2024-07-13T16:23:06.975Z] 	at java.base/javax.crypto.Cipher.init(Cipher.java:1286)
[2024-07-13T16:23:06.975Z] 	at java.base/sun.security.ssl.RSAKeyExchange$RSAPremasterSecret.getEncoded(RSAKeyExchange.java:113)
[2024-07-13T16:23:06.976Z] 	at java.base/sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeMessage.<init>(RSAClientKeyExchange.java:67)
[2024-07-13T16:23:06.976Z] 	at java.base/sun.security.ssl.RSAClientKeyExchange$RSAClientKeyExchangeProducer.produce(RSAClientKeyExchange.java:186)
[2024-07-13T16:23:06.976Z] 	at java.base/sun.security.ssl.ClientKeyExchange$ClientKeyExchangeProducer.produce(ClientKeyExchange.java:65)
[2024-07-13T16:23:06.976Z] 	at java.base/sun.security.ssl.SSLHandshake.produce(SSLHandshake.java:436)
[2024-07-13T16:23:06.976Z] 	at java.base/sun.security.ssl.ServerHelloDone$ServerHelloDoneConsumer.consume(ServerHelloDone.java:182)
[2024-07-13T16:23:06.976Z] 	at java.base/sun.security.ssl.SSLHandshake.consume(SSLHandshake.java:392)
[2024-07-13T16:23:06.976Z] 	at java.base/sun.security.ssl.HandshakeContext.dispatch(HandshakeContext.java:443)
[2024-07-13T16:23:06.976Z] 	at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(SSLEngineImpl.java:1076)
[2024-07-13T16:23:06.976Z] 	at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask$DelegatedAction.run(SSLEngineImpl.java:1063)
[2024-07-13T16:23:06.976Z] 	at java.base/java.security.AccessController.doPrivileged(AccessController.java:782)
[2024-07-13T16:23:06.976Z] 	at java.base/sun.security.ssl.SSLEngineImpl$DelegatedTask.run(SSLEngineImpl.java:1010)
[2024-07-13T16:23:06.976Z] 	at SSLEngineTestCase.runDelegatedTasks(SSLEngineTestCase.java:1125)
[2024-07-13T16:23:06.976Z] 	at SSLEngineTestCase.handshakeProcess(SSLEngineTestCase.java:1113)
[2024-07-13T16:23:06.976Z] 	at SSLEngineTestCase.doHandshake(SSLEngineTestCase.java:598)
[2024-07-13T16:23:06.976Z] 	at SSLEngineTestCase.doHandshake(SSLEngineTestCase.java:531)
[2024-07-13T16:23:06.976Z] 	at DataExchangeTest.testOneCipher(DataExchangeTest.java:50)
[2024-07-13T16:23:06.976Z] 	at SSLEngineTestCase.testSomeCiphers(SSLEngineTestCase.java:936)
[2024-07-13T16:23:06.976Z] 	at SSLEngineTestCase.runTests(SSLEngineTestCase.java:720)
[2024-07-13T16:23:06.976Z] 	at SSLEngineTestCase.runTests(SSLEngineTestCase.java:745)
[2024-07-13T16:23:06.976Z] 	at DataExchangeTest.main(DataExchangeTest.java:37)
[2024-07-13T16:23:06.976Z] 	at TLSDataExchangeTest.main(TLSDataExchangeTest.java:50)
[2024-07-13T16:23:06.976Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2024-07-13T16:23:06.976Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2024-07-13T16:23:06.976Z] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2024-07-13T16:23:06.976Z] 	at java.base/java.lang.reflect.Method.invoke(Method.java:572)
[2024-07-13T16:23:06.976Z] 	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
[2024-07-13T16:23:06.976Z] 	at java.base/java.lang.Thread.run(Thread.java:839)

[2024-07-13T16:23:06.978Z] TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: 6 of 88 tests failed!
[2024-07-13T16:23:06.978Z] --------------------------------------------------
[2024-07-13T17:26:34.465Z] Test results: passed: 771; failed: 1
[2024-07-13T17:26:34.465Z] Report written to /home/jenkins/workspace/Test_openjdk11_j9_extended.openjdk_ppc64_aix_testList_1/aqa-tests/TKG/output_17208848335044/jdk_security3_0/report/html/report.html
[2024-07-13T17:26:34.465Z] Results written to /home/jenkins/workspace/Test_openjdk11_j9_extended.openjdk_ppc64_aix_testList_1/aqa-tests/TKG/output_17208848335044/jdk_security3_0/work
[2024-07-13T17:26:34.465Z] Error: Some tests failed or other problems occurred.
[2024-07-13T17:26:34.465Z] -----------------------------------
[2024-07-13T17:26:34.465Z] jdk_security3_0_FAILED

50x internal grinder - 1 failure reproduced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant