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

Re-enable openjdk test - jdk_bean #20531

Open
llxia opened this issue Nov 7, 2024 · 5 comments
Open

Re-enable openjdk test - jdk_bean #20531

llxia opened this issue Nov 7, 2024 · 5 comments

Comments

@llxia
Copy link
Contributor

llxia commented Nov 7, 2024

jdk_beans got excluded as part of the general exclude a while back via #10757.

https://github.com/adoptium/aqa-tests/blob/a498becc695f7bdeaa7c4b3752c827e65aa7e123/openjdk/playlist.xml#L755

My limited testing can pass on xlinux JDK17, 21 and 23. We still need to look into xlinux JDK8 and JDK11 failures. But I think we should look into re-enabling this test.

This would help us to discover issues like https://bugs.openjdk.org/browse/JDK-8336862 early.
Presumably, we will hit the same issue on Windows: adoptium/aqa-tests#5690 (comment)

@llxia llxia added the comp:test label Nov 7, 2024
Copy link

github-actions bot commented Nov 7, 2024

Issue Number: 20531
Status: Open
Recommended Components: comp:test, comp:build, comp:vm
Recommended Assignees: pshipton, llxia, longyuzhang

@llxia
Copy link
Contributor Author

llxia commented Nov 7, 2024

@annaibm could you run the test on all platforms? Thanks

@llxia
Copy link
Contributor Author

llxia commented Nov 8, 2024

00:01:43.717  TESTING:
00:01:44.127  Directory "/home/jenkins/workspace/Grinder/aqa-tests/TKG/../TKG/output_17309940512732/jdk_beans_0/work" not found: creating
00:01:44.127  Directory "/home/jenkins/workspace/Grinder/aqa-tests/TKG/../TKG/output_17309940512732/jdk_beans_0/report" not found: creating
00:01:44.539  Error: Unexpected exception occurred! java.lang.UnsatisfiedLinkError: jdk/crypto/jniprovider/NativeCrypto.isOpenSSLFIPS()Z
00:01:44.539  java.lang.UnsatisfiedLinkError: jdk/crypto/jniprovider/NativeCrypto.isOpenSSLFIPS()Z
00:01:44.539  	at jdk.crypto.jniprovider.NativeCrypto.<clinit>(NativeCrypto.java:89)
00:01:44.539  	at sun.security.provider.SunEntries.<clinit>(SunEntries.java:104)
00:01:44.539  	at sun.security.provider.Sun.<init>(Sun.java:56)
00:01:44.539  	at java.lang.J9VMInternals.newInstanceImpl(Native Method)
00:01:44.539  	at java.lang.Class.newInstance(Class.java:2130)
00:01:44.540  	at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:237)
00:01:44.540  	at sun.security.jca.ProviderConfig$2.run(ProviderConfig.java:222)
00:01:44.540  	at java.security.AccessController.doPrivileged(AccessController.java:690)
00:01:44.540  	at sun.security.jca.ProviderConfig.doLoadProvider(ProviderConfig.java:222)
00:01:44.540  	at sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:203)
00:01:44.540  	at sun.security.jca.ProviderList.getProvider(ProviderList.java:256)
00:01:44.540  	at sun.security.jca.ProviderList$3.get(ProviderList.java:171)
00:01:44.540  	at sun.security.jca.ProviderList$3.get(ProviderList.java:166)
00:01:44.540  	at java.util.AbstractList$Itr.next(AbstractList.java:358)
00:01:44.540  	at java.security.SecureRandom.getPrngAlgorithm(SecureRandom.java:574)
00:01:44.540  	at java.security.SecureRandom.getDefaultPRNG(SecureRandom.java:208)
00:01:44.540  	at java.security.SecureRandom.<init>(SecureRandom.java:170)
00:01:44.540  	at java.io.File$TempDirectory.<clinit>(File.java:1940)
00:01:44.540  	at java.io.File.createTempFile(File.java:2049)
00:01:44.540  	at com.sun.javatest.WorkDirectory.saveInfo(WorkDirectory.java:1200)
00:01:44.540  	at com.sun.javatest.WorkDirectory.doWDinfo(WorkDirectory.java:692)
00:01:44.540  	at com.sun.javatest.WorkDirectory.<init>(WorkDirectory.java:130)
00:01:44.540  	at com.sun.javatest.WorkDirectory.createOrConvert(WorkDirectory.java:310)
00:01:44.540  	at com.sun.javatest.WorkDirectory.convert(WorkDirectory.java:259)
00:01:44.540  	at com.sun.javatest.regtest.config.TestManager.getWorkDirectory(TestManager.java:207)
00:01:44.540  	at com.sun.javatest.regtest.tool.Tool.createParameters(Tool.java:1737)
00:01:44.540  	at com.sun.javatest.regtest.tool.Tool.run(Tool.java:1328)
00:01:44.540  	at com.sun.javatest.regtest.tool.Tool.run(Tool.java:1075)
00:01:44.540  	at com.sun.javatest.regtest.tool.Tool.main(Tool.java:147)
00:01:44.540  	at com.sun.javatest.regtest.Main.main(Main.java:58)
00:01:44.540  -----------------------------------
00:01:44.540  jdk_beans_0_FAILED
00:01:44.540  -----------------------------------
  1. java/beans/XMLDecoder/8028054/TestConstructorFinder.java.TestConstructorFinder
Execution failed: `main' threw exception: java.lang.InternalError: Compile stub invoked! Apart from deliberate reflective access, this should not happen. Please report this to the project so it can be addressed 
java.lang.InternalError: Compile stub invoked! Apart from deliberate reflective access, this should not happen. Please report this to the project so it can be addressed
	at java.base/java.lang.invoke.OpenJDKCompileStub.OpenJDKCompileStubThrowError(OpenJDKCompileStub.java:38)
	at java.base/java.lang.invoke.MethodHandle.intrinsicName(MethodHandle.java:930)
	at java.base/java.lang.invoke.MethodHandleImpl.makeIntrinsic(MethodHandleImpl.java:1450)
	at java.base/java.lang.invoke.MethodHandleImpl$ArrayAccessor.<clinit>(MethodHandleImpl.java:164)
	at java.base/java.lang.Class.forNameImpl(Native Method)
	at java.base/java.lang.Class.forName(Class.java:347)
	at Task.getClasses(Task.java:134)
	at TestConstructorFinder.main(TestConstructorFinder.java:43)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:572)
	at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
	at java.base/java.lang.Thread.run(Thread.java:835)

JavaTest Message: Test threw exception: java.lang.InternalError: Compile stub invoked! Apart from deliberate reflective access, this should not happen. Please report this to the project so it can be addressed
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.InternalError: Compile stub invoked! Apart from deliberate reflective access, this should not happen. Please report this to the project so it can be addressed
  1. java/beans/XMLDecoder/8028054/TestMethodFinder.java.TestMethodFinder
Execution failed: `main' threw exception: java.lang.InternalError: Compile stub invoked! Apart from deliberate reflective access, this should not happen. Please report this to the project so it can be addressed 

@pshipton
Copy link
Member

pshipton commented Nov 8, 2024

The failure on jdk8 is already resolved via ibmruntimes/openj9-openjdk-jdk8#780

@babsingh pls take a look at the jdk11 failures.

@llxia
Copy link
Contributor Author

llxia commented Nov 8, 2024

Thanks @pshipton

With the latest JDK8, the NativeCrypto.isOpenSSLFIPS error is gone. However, there are 4 subtest failures, 2 of which are the same as those in JDK11. (link).

00:01:16.905  openjdk version "1.8.0_442-internal"
00:01:16.905  OpenJDK Runtime Environment (build 1.8.0_442-internal-_2024_11_08_03_05-b00)
00:01:16.905  Eclipse OpenJ9 VM (build master-26133ff75ca, JRE 1.8.0 Linux amd64-64-Bit Compressed References 20241108_912 (JIT enabled, AOT enabled)
00:01:16.905  OpenJ9   - 26133ff75ca
00:01:16.905  OMR      - a34c903d0c8
00:01:16.905  JCL      - 70a9dda9400 based on jdk8u442-b01)
00:06:30.188  FAILED test targets:
00:06:30.188  	jdk_beans_0 - Test results: passed: 346; failed: 4 
00:06:30.188  		Failed test cases: 
00:06:30.188  			TEST: java/beans/Introspector/Test5102804.java
00:06:30.188          TEST: java/beans/PropertyEditor/Test6397609.java
00:06:30.188          TEST: java/beans/XMLDecoder/8028054/TestConstructorFinder.java
00:06:30.188          TEST: java/beans/XMLDecoder/8028054/TestMethodFinder.java

annaibm added a commit to annaibm/aqa-tests that referenced this issue Nov 8, 2024
- Enable jck_beans on xlinux except for java version 8 and 11

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
babsingh added a commit to babsingh/openj9 that referenced this issue Nov 12, 2024
OpenJ9 JDK8 and JDK11 currently use OpenJ9 MethodHandles.

Enabling jdk_bean in JDK8 and JDK11 triggers certain OpenJDK
MethodHandles code paths. However, OpenJ9 MethodHandles are in use
for JDK8 and JDK11, so OpenJDK MethodHandles paths shouldn't be
activated. To address this, a MethodHandleImpl stub was added,
used only with OpenJ9 MethodHandles, and not when OpenJDK
MethodHandles are enabled.

Related: eclipse-openj9#20531

Signed-off-by: Babneet Singh <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Nov 12, 2024
- Enable jck_beans on xlinux except for java version 8 and 11

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
babsingh added a commit to babsingh/openj9 that referenced this issue Nov 12, 2024
OpenJ9 JDK8 and JDK11 currently use OpenJ9 MethodHandles.

Enabling jdk_bean in JDK8 and JDK11 triggers certain OpenJDK
MethodHandles code paths. However, OpenJ9 MethodHandles are in use
for JDK8 and JDK11, so OpenJDK MethodHandles paths shouldn't be
activated. To address this, a MethodHandleImpl stub was added,
used only with OpenJ9 MethodHandles, and not when OpenJDK
MethodHandles are enabled.

Related: eclipse-openj9#20531

Signed-off-by: Babneet Singh <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Nov 12, 2024
- Enable jdk_beans on xlinux except for java version 8 and 11

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Nov 12, 2024
- Enable jdk_beans on xlinux except for java version 8 and 11

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Nov 12, 2024
- Enable jdk_beans on xlinux except for java version 8 and 11

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Nov 12, 2024
- Enable jdk_beans on xlinux except for java version 8 and 11

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
annaibm added a commit to annaibm/aqa-tests that referenced this issue Nov 12, 2024
- Enable jdk_beans on xlinux for all java versions

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
LongyuZhang pushed a commit to adoptium/aqa-tests that referenced this issue Nov 12, 2024
- Enable jdk_beans on xlinux for all java versions

related: eclipse-openj9/openj9#20531

Signed-off-by: Anna Babu Palathingal <[email protected]>
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

2 participants