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_restricted_security_0 FAILED openj9/internal/security/TestProviders.java RuntimeException: The order numbers of providers in profile RestrictedSecurity.Test-Profile.Extended_2 (or a base profile) are not consecutive #20808

Open
JasonFengJ9 opened this issue Dec 10, 2024 · 1 comment

Comments

@JasonFengJ9
Copy link
Member

JasonFengJ9 commented Dec 10, 2024

Failure link

From internal Test_openjdk11_j9_special.openjdk_aarch64_linux (sles15-aarch64-2)

java version "11.0.26-beta" 2025-01-21
IBM Semeru Runtime Certified Edition 11.0.26+3-202412070209 (build 11.0.26-beta+3)
Eclipse OpenJ9 VM 11.0.26+3-202412070209 (build master-81ab91c3b3, JRE 11 Linux aarch64-64-Bit Compressed References 20241207_752 (JIT enabled, AOT enabled)
OpenJ9   - 81ab91c3b3
OMR      - b893b2be2
JCL      - 0ee1c65d17 based on jdk-11.0.26+3)

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

Optional info

Failure output (captured from console output)

[2024-12-07T03:44:04.661Z] variation: NoOptions
[2024-12-07T03:44:04.661Z] JVM_OPTIONS:  -Xverbosegclog 

[2024-12-07T03:44:26.184Z] TEST: openj9/internal/security/TestProviders.java

[2024-12-07T03:44:26.185Z] STDERR:
[2024-12-07T03:44:26.185Z] STARTED    TestProviders::shouldContain_expectedExitValue0 '[1] TestBase.Version, /home/jenkins/workspace/Test_openjdk11_j9_special.openjdk_aarch64_linux/aqa-tests/openjdk/openjdk-jdk/closed/test/jdk/openj9/internal/security/provider-java.security, (?s)(?=.*Sun)(?=.*\bSunJCE\b)(?=.*SunJSSE)'
[2024-12-07T03:44:26.185Z]  stdout: [Provider Name: SUN
[2024-12-07T03:44:26.185Z] Provider Version: 11
[2024-12-07T03:44:26.185Z] Provider Name: SunJCE
[2024-12-07T03:44:26.185Z] Provider Version: 11
[2024-12-07T03:44:26.185Z] ];
[2024-12-07T03:44:26.185Z]  stderr: []
[2024-12-07T03:44:26.185Z]  exitValue = 0
[2024-12-07T03:44:26.185Z] 
[2024-12-07T03:44:26.185Z]  stdout: [Provider Name: SUN
[2024-12-07T03:44:26.185Z] Provider Version: 11
[2024-12-07T03:44:26.185Z] Provider Name: SunJCE
[2024-12-07T03:44:26.185Z] Provider Version: 11
[2024-12-07T03:44:26.185Z] ];
[2024-12-07T03:44:26.185Z]  stderr: []
[2024-12-07T03:44:26.185Z]  exitValue = 0
[2024-12-07T03:44:26.185Z] 
[2024-12-07T03:44:26.185Z] java.lang.RuntimeException: '(?s)(?=.*Sun)(?=.*\bSunJCE\b)(?=.*SunJSSE)' missing from stdout/stderr 
[2024-12-07T03:44:26.185Z] 
[2024-12-07T03:44:26.185Z] 	at jdk.test.lib.process.OutputAnalyzer.shouldMatch(OutputAnalyzer.java:282)
[2024-12-07T03:44:26.185Z] 	at TestProviders.shouldContain_expectedExitValue0(TestProviders.java:133)

....

[2024-12-07T03:44:26.190Z] STARTED    TestProviders::shouldContain_expectedExitValue1 '[3] Test-Profile.Extended_2, /home/jenkins/workspace/Test_openjdk11_j9_special.openjdk_aarch64_linux/aqa-tests/openjdk/openjdk-jdk/closed/test/jdk/openj9/internal/security/provider-java.security, The order numbers of providers in profile RestrictedSecurity.Test-Profile.Extended_2 \(or a base profile\) are not consecutive.'
[2024-12-07T03:44:26.190Z]  stdout: [];
[2024-12-07T03:44:26.190Z]  stderr: [java.lang.RuntimeException: The order numbers of providers in profile RestrictedSecurity.Test-Profile.Extended_2 (or a base profile) are not consecutive.
[2024-12-07T03:44:26.190Z] 	at java.base/openj9.internal.security.RestrictedSecurity.printStackTraceAndExit(RestrictedSecurity.java:665)
[2024-12-07T03:44:26.190Z] 	at java.base/openj9.internal.security.RestrictedSecurity$ProfileParser.checkProfileCheck(RestrictedSecurity.java:1807)
[2024-12-07T03:44:26.190Z] 	at java.base/openj9.internal.security.RestrictedSecurity$ProfileParser.<init>(RestrictedSecurity.java:1037)
[2024-12-07T03:44:26.190Z] 	at java.base/openj9.internal.security.RestrictedSecurity.configure(RestrictedSecurity.java:482)
[2024-12-07T03:44:26.190Z] 	at java.base/java.security.Security.initialize(Security.java:128)
[2024-12-07T03:44:26.190Z] 	at java.base/java.security.Security$1.run(Security.java:91)
[2024-12-07T03:44:26.190Z] 	at java.base/java.security.Security$1.run(Security.java:89)
[2024-12-07T03:44:26.190Z] 	at java.base/java.security.AccessController.doPrivileged(AccessController.java:693)
[2024-12-07T03:44:26.190Z] 	at java.base/java.security.Security.<clinit>(Security.java:89)
[2024-12-07T03:44:26.190Z] 	at TestProviders.main(TestProviders.java:151)
[2024-12-07T03:44:26.190Z] ]
[2024-12-07T03:44:26.190Z]  exitValue = 1

[2024-12-07T03:44:29.044Z] -----------------------------------
[2024-12-07T03:44:29.044Z] jdk_restricted_security_0_FAILED

FYI @jasonkatonica

Copy link

Issue Number: 20808
Status: Open
Recommended Components: comp:test, comp:jclextensions, comp:infra

@taoliult
Copy link
Contributor

This is the test case issue, the provider SunJSSE fully qualified name is different between JDK11 and JDK17 and later version. Update the test case to correct this by PR ibmruntimes/openj9-openjdk-jdk11#854. Waiting for merge.

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

3 participants