Skip to content

Re-enable openjdk test - jdk_bean  #20531

Open

Description

@llxia

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)

Activity

  1. github-actions commented on Nov 7, 2024

    @github-actions

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

  2. llxia commented on Nov 7, 2024

    @llxia
    ContributorAuthor

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

  3. llxia commented on Nov 8, 2024

    @llxia
    ContributorAuthor
    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 
    
  4. pshipton commented on Nov 8, 2024

    @pshipton
    Member

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

    @babsingh pls take a look at the jdk11 failures.

  5. llxia commented on Nov 8, 2024

    @llxia
    ContributorAuthor

    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
    
  6. added a commit that references this issue on Nov 8, 2024
  7. added a commit that references this issue on Nov 12, 2024
  8. 82 remaining items

  9. pshipton commented on Mar 17, 2025

    @pshipton
    Member

    @llxia is there something that needs to be done from the vm side for 0.51, can this be moved forward?

  10. llxia commented on Mar 17, 2025

    @llxia
    ContributorAuthor

    I moved this to 0.52. Currently, we just disabled the failed tests. We will need help to sort out the failures.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions