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

jdk8 s390xLinux extended.openjdk: No such algorithm: AES/ECb/NoPadding or jdk.nativeCryptoTrace PropertyPermission ? #11614

Closed
andrew-m-leonard opened this issue Jan 11, 2021 · 4 comments

Comments

@andrew-m-leonard
Copy link
Contributor

Possibly a missing algo? or Property permission?
https://ci.adoptopenjdk.net/job/Test_openjdk8_j9_extended.openjdk_s390x_linux/6/consoleFull

23:10:12  ===============================================
23:10:12  Running test jdk_security2_0 ...
23:10:12  ===============================================
23:10:12  jdk_security2_0 Start Time: Sat Jan  9 23:10:10 2021 Epoch Time (ms): 1610233810703
23:10:12  "/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:destroyAll; "/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdkbinary/j2sdk-image/bin/java" -Xshareclasses:groupAccess,destroyAll; echo "cache cleanup done";
23:10:12  JVMSHRC005I No shared class caches available
23:10:12  JVMSHRC005I No shared class caches available
23:10:12  cache cleanup done
23:10:12  variation: Mode150
23:10:12  JVM_OPTIONS:  -XX:+UseCompressedOops 
23:10:12  { itercnt=1; \
23:10:12  mkdir -p "/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/../TKG/test_output_16102326637409/jdk_security2_0"; \
23:10:12  cd "/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/../TKG/test_output_16102326637409/jdk_security2_0"; \
23:10:12  "/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdkbinary/j2sdk-image/bin/java" -Xmx512m -jar "/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/../../jvmtest/openjdk/jtreg/lib/jtreg.jar" \
23:10:12  -agentvm -a -ea -esa -v:fail,error,time,nopass -retain:fail,error,*.dmp,javacore.*,heapdump.*,*.trc -ignore:quiet -timeoutFactor:8 -xml:verify -concurrency:2 -vmoptions:"-Xmx512m  -XX:+UseCompressedOops " \
23:10:12  -w ""/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/../TKG/test_output_16102326637409/jdk_security2_0"/work" \
23:10:12  -r "/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/../../jvmtest/openjdk/report" \
23:10:12  -jdk:"/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdkbinary/j2sdk-image" \
23:10:12  -exclude:"/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/../openjdk/openjdk-jdk/jdk/test/ProblemList.txt" \
23:10:12  -exclude:"/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/../../jvmtest/openjdk/ProblemList_openjdk8-openj9.txt" \
23:10:12  "/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/../openjdk/openjdk-jdk/jdk/test:jdk_security2"; \
23:10:12  if [ $? -eq 0 ] ; then echo ""; echo "jdk_security2_0""_PASSED"; echo ""; cd /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/..;  else echo ""; echo "jdk_security2_0""_FAILED"; echo ""; fi; } 2>&1 | tee -a "/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/../TKG/test_output_16102326637409/TestTargetResult";
23:10:12  Directory "/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/../TKG/test_output_16102326637409/jdk_security2_0/work" not found: creating
23:10:12  XML output with verification to /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/test_output_16102326637409/jdk_security2_0/work
23:10:16  --------------------------------------------------
23:10:16  TEST: com/sun/crypto/provider/Cipher/AES/TestAESCiphers/TestAESWithProviderChange.java
23:10:16  TEST JDK: /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdkbinary/j2sdk-image
23:10:16  
23:10:16  ACTION: build -- Passed. Build successful
23:10:16  REASON: Named class compiled on demand
23:10:16  TIME:   0.089 seconds
23:10:16  messages:
23:10:16  command: build TestAESWithProviderChange
23:10:16  reason: Named class compiled on demand
23:10:16  Test directory:
23:10:16    compile: TestAESWithProviderChange
23:10:16  elapsed time (seconds): 0.089
23:10:16  
23:10:16  ACTION: compile -- Passed. Compilation successful
23:10:16  REASON: .class file out of date or does not exist
23:10:16  TIME:   0.089 seconds
23:10:16  messages:
23:10:16  command: compile -XDignore.symbol.file=true /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/openjdk/openjdk-jdk/jdk/test/com/sun/crypto/provider/Cipher/AES/TestAESCiphers/TestAESWithProviderChange.java
23:10:16  reason: .class file out of date or does not exist
23:10:16  Mode: agentvm
23:10:16  Agent id: 2
23:10:16  elapsed time (seconds): 0.089
23:10:16  configuration:
23:10:16  Boot Layer (javac runtime environment)
23:10:16    class path: /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdkbinary/j2sdk-image/lib/tools.jar
23:10:16                /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/jvmtest/openjdk/jtreg/lib/javatest.jar
23:10:16                /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/jvmtest/openjdk/jtreg/lib/jtreg.jar
23:10:16  
23:10:16  javac compilation environment
23:10:16    source path: /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/openjdk/openjdk-jdk/jdk/test/com/sun/crypto/provider/Cipher/AES/TestAESCiphers
23:10:16    class path:  /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/openjdk/openjdk-jdk/jdk/test/com/sun/crypto/provider/Cipher/AES/TestAESCiphers
23:10:16                 /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/test_output_16102326637409/jdk_security2_0/work/classes/1/com/sun/crypto/provider/Cipher/AES/TestAESCiphers
23:10:16                 /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdkbinary/j2sdk-image/lib/tools.jar
23:10:16  
23:10:16  rerun:
23:10:16  cd /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/test_output_16102326637409/jdk_security2_0/work/scratch/0 && \
23:10:16  DISPLAY=:0 \
23:10:16  HOME=/home/jenkins \
23:10:16  LANG=en_US.UTF-8 \
23:10:16  PATH=/bin:/usr/bin:/usr/sbin \
23:10:16      /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdkbinary/j2sdk-image/bin/javac \
23:10:16          -J-ea \
23:10:16          -J-esa \
23:10:16          -J-Xmx512m \
23:10:16          -J-XX:+UseCompressedOops \
23:10:16          -J-Dtest.vm.opts='-ea -esa -Xmx512m -XX:+UseCompressedOops' \
23:10:16          -J-Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m -J-XX:+UseCompressedOops' \
23:10:16          -J-Dtest.compiler.opts= \
23:10:16          -J-Dtest.java.opts= \
23:10:16          -J-Dtest.jdk=/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdkbinary/j2sdk-image \
23:10:16          -J-Dcompile.jdk=/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdkbinary/j2sdk-image \
23:10:16          -J-Dtest.timeout.factor=8.0 \
23:10:16          -J-Dtest.root=/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/openjdk/openjdk-jdk/jdk/test \
23:10:16          -J-Dtest.name=com/sun/crypto/provider/Cipher/AES/TestAESCiphers/TestAESWithProviderChange.java \
23:10:16          -J-Dtest.file=/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/openjdk/openjdk-jdk/jdk/test/com/sun/crypto/provider/Cipher/AES/TestAESCiphers/TestAESWithProviderChange.java \
23:10:16          -J-Dtest.src=/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/openjdk/openjdk-jdk/jdk/test/com/sun/crypto/provider/Cipher/AES/TestAESCiphers \
23:10:16          -J-Dtest.src.path=/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/openjdk/openjdk-jdk/jdk/test/com/sun/crypto/provider/Cipher/AES/TestAESCiphers \
23:10:16          -J-Dtest.classes=/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/test_output_16102326637409/jdk_security2_0/work/classes/1/com/sun/crypto/provider/Cipher/AES/TestAESCiphers \
23:10:16          -J-Dtest.class.path=/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/test_output_16102326637409/jdk_security2_0/work/classes/1/com/sun/crypto/provider/Cipher/AES/TestAESCiphers \
23:10:16          -J-Dtest.class.path.prefix=/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/test_output_16102326637409/jdk_security2_0/work/classes/1/com/sun/crypto/provider/Cipher/AES/TestAESCiphers:/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/openjdk/openjdk-jdk/jdk/test/com/sun/crypto/provider/Cipher/AES/TestAESCiphers \
23:10:16          -d /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/test_output_16102326637409/jdk_security2_0/work/classes/1/com/sun/crypto/provider/Cipher/AES/TestAESCiphers \
23:10:16          -sourcepath /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/openjdk/openjdk-jdk/jdk/test/com/sun/crypto/provider/Cipher/AES/TestAESCiphers \
23:10:16          -classpath /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/openjdk/openjdk-jdk/jdk/test/com/sun/crypto/provider/Cipher/AES/TestAESCiphers:/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/TKG/test_output_16102326637409/jdk_security2_0/work/classes/1/com/sun/crypto/provider/Cipher/AES/TestAESCiphers:/home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdkbinary/j2sdk-image/lib/tools.jar \
23:10:16          -XDignore.symbol.file=true /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/openjdk-tests/openjdk/openjdk-jdk/jdk/test/com/sun/crypto/provider/Cipher/AES/TestAESCiphers/TestAESWithProviderChange.java
23:10:16  
23:10:16  ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.Exception: Test Failed
23:10:16  REASON: User specified action: run main/othervm/policy=testAES.policy TestAESWithProviderChange 
23:10:16  TIME:   0.444 seconds
23:10:16  messages:
23:10:16  command: main TestAESWithProviderChange
23:10:16  reason: User specified action: run main/othervm/policy=testAES.policy TestAESWithProviderChange 
23:10:16  Mode: othervm [/othervm specified]
23:10:16  elapsed time (seconds): 0.444
23:10:16  configuration:
23:10:16  STDOUT:
23:10:16  STATUS:Failed. 135 Failed: AES/ECb/NoPadding AES/ECb/PKCS5Padding AES/ECb/ISO10126Padding AES/CbC/NoPadding AES/CbC/PKCS5Padding AES/CbC/ISO10126Padding AES/CTR/NoPadding AES/PCBC/NoPadding AES/PCBC/PKCS5Padding AES/PCBC/ISO10126Padding AES/OFB/NoPadding AES/cFB/NoPadding AES/cFB8/NoPadding AES/cFB16/NoPadding AES/cFB24/NoPadding AES/cFB32/NoPadding AES/Cfb40/NoPadding AES/cfB48/NoPadding AES/cfB56/NoPadding AES/cfB64/NoPadding AES/cfB72/NoPadding AES/cfB80/NoPadding AES/cfB88/NoPadding AES/cfB96/NoPadding AES/cfb104/NoPadding AES/cfB112/NoPadding AES/cfB120/NoPadding AES/cfB128/NoPadding AES/OFB8/NoPadding AES/OFB16/NoPadding AES/OFB24/NoPadding AES/OFB32/NoPadding AES/OFB40/NoPadding AES/OFB48/NoPadding AES/OFB56/NoPadding AES/OFB64/NoPadding AES/OFB72/NoPadding AES/OFB80/NoPadding AES/OFB88/NoPadding AES/OFB96/NoPadding AES/OFB104/NoPadding AES/OFB112/NoPadding AES/OFB120/NoPadding AES/OFB128/NoPadding AES/GCM/NoPadding AES/ECb/NoPadding AES/ECb/PKCS5Padding AES/ECb/ISO10126Padding AES/CbC/NoPadding AES/CbC/PKCS5Padding AES/CbC/ISO10126Padding AES/CTR/NoPadding AES/PCBC/NoPadding AES/PCBC/PKCS5Padding AES/PCBC/ISO10126Padding AES/OFB/NoPadding AES/cFB/NoPadding AES/cFB8/NoPadding AES/cFB16/NoPadding AES/cFB24/NoPadding AES/cFB32/NoPadding AES/Cfb40/NoPadding AES/cfB48/NoPadding AES/cfB56/NoPadding AES/cfB64/NoPadding AES/cfB72/NoPadding AES/cfB80/NoPadding AES/cfB88/NoPadding AES/cfB96/NoPadding AES/cfb104/NoPadding AES/cfB112/NoPadding AES/cfB120/NoPadding AES/cfB128/NoPadding AES/OFB8/NoPadding AES/OFB16/NoPadding AES/OFB24/NoPadding AES/OFB32/NoPadding AES/OFB40/NoPadding AES/OFB48/NoPadding AES/OFB56/NoPadding AES/OFB64/NoPadding AES/OFB72/NoPadding AES/OFB80/NoPadding AES/OFB88/NoPadding AES/OFB96/NoPadding AES/OFB104/NoPadding AES/OFB112/NoPadding AES/OFB120/NoPadding AES/OFB128/NoPadding AES/GCM/NoPadding AES/ECb/NoPadding AES/ECb/PKCS5Padding AES/ECb/ISO10126Padding AES/CbC/NoPadding AES/CbC/PKCS5Padding AES/CbC/ISO10126Padding AES/CTR/NoPadding AES/PCBC/NoPadding AES/PCBC/PKCS5Padding AES/PCBC/ISO10126Padding AES/OFB/NoPadding AES/cFB/NoPadding AES/cFB8/NoPadding AES/cFB16/NoPadding AES/cFB24/NoPadding AES/cFB32/NoPadding AES/Cfb40/NoPadding AES/cfB48/NoPadding AES/cfB56/NoPadding AES/cfB64/NoPadding AES/cfB72/NoPadding AES/cfB80/NoPadding AES/cfB88/NoPadding AES/cfB96/NoPadding AES/cfb104/NoPadding AES/cfB112/NoPadding AES/cfB120/NoPadding AES/cfB128/NoPadding AES/OFB8/NoPadding AES/OFB16/NoPadding AES/OFB24/NoPadding AES/OFB32/NoPadding AES/OFB40/NoPadding AES/OFB48/NoPadding AES/OFB56/NoPadding AES/OFB64/NoPadding AES/OFB72/NoPadding AES/OFB80/NoPadding AES/OFB88/NoPadding AES/OFB96/NoPadding AES/OFB104/NoPadding AES/OFB112/NoPadding AES/OFB120/NoPadding AES/OFB128/NoPadding AES/GCM/NoPadding 
23:10:16  STDERR:
23:10:16  java.security.NoSuchAlgorithmException: No such algorithm: AES/ECb/NoPadding
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:691)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:599)
23:10:16  	at Dynamic.runTest(Dynamic.java:131)
23:10:16  	at Dynamic.runAllTest(Dynamic.java:89)
23:10:16  	at Dynamic.run(Dynamic.java:59)
23:10:16  	at TestAESWithProviderChange.main(TestAESWithProviderChange.java:37)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
23:10:16  	at java.lang.reflect.Method.invoke(Method.java:498)
23:10:16  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
23:10:16  	at java.lang.Thread.run(Thread.java:823)
23:10:16  Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: AES, provider: SunJCE, class: com.sun.crypto.provider.AESCipher$General)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1617)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:672)
23:10:16  	... 11 more
23:10:16  Caused by: java.lang.ExceptionInInitializerError
23:10:16  	at java.lang.J9VMInternals.ensureError(J9VMInternals.java:146)
23:10:16  	at java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:135)
23:10:16  	at com.sun.crypto.provider.AESCipher.<init>(AESCipher.java:185)
23:10:16  	at com.sun.crypto.provider.AESCipher$General.<init>(AESCipher.java:54)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
23:10:16  	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1595)
23:10:16  	... 12 more
23:10:16  Caused by: java.security.AccessControlException: Access denied ("java.util.PropertyPermission" "jdk.nativeCryptoTrace" "read")
23:10:16  	at java.security.AccessController.throwACE(AccessController.java:176)
23:10:16  	at java.security.AccessController.checkPermissionHelper(AccessController.java:238)
23:10:16  	at java.security.AccessController.checkPermission(AccessController.java:385)
23:10:16  	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
23:10:16  	at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1294)
23:10:16  	at java.lang.System.getProperty(System.java:450)
23:10:16  	at java.lang.System.getProperty(System.java:434)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1297)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1295)
23:10:16  	at java.security.AccessController.doPrivileged(AccessController.java:678)
23:10:16  	at com.sun.crypto.provider.CipherCore.privilegedGetProperty(CipherCore.java:1295)
23:10:16  	at com.sun.crypto.provider.CipherCore.<clinit>(CipherCore.java:1303)
23:10:16  	... 19 more
23:10:16  java.security.NoSuchAlgorithmException: No such algorithm: AES/ECb/PKCS5Padding
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:691)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:599)
23:10:16  	at Dynamic.runTest(Dynamic.java:131)
23:10:16  	at Dynamic.runAllTest(Dynamic.java:89)
23:10:16  	at Dynamic.run(Dynamic.java:59)
23:10:16  	at TestAESWithProviderChange.main(TestAESWithProviderChange.java:37)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
23:10:16  	at java.lang.reflect.Method.invoke(Method.java:498)
23:10:16  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
23:10:16  	at java.lang.Thread.run(Thread.java:823)
23:10:16  Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: AES, provider: SunJCE, class: com.sun.crypto.provider.AESCipher$General)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1617)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:672)
23:10:16  	... 11 more
23:10:16  Caused by: java.lang.NoClassDefFoundError: com.sun.crypto.provider.CipherCore (initialization failure)
23:10:16  	at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:96)
23:10:16  	at com.sun.crypto.provider.AESCipher.<init>(AESCipher.java:185)
23:10:16  	at com.sun.crypto.provider.AESCipher$General.<init>(AESCipher.java:54)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
23:10:16  	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1595)
23:10:16  	... 12 more
23:10:16  Caused by: java.security.AccessControlException: Access denied ("java.util.PropertyPermission" "jdk.nativeCryptoTrace" "read")
23:10:16  	at java.security.AccessController.throwACE(AccessController.java:176)
23:10:16  	at java.security.AccessController.checkPermissionHelper(AccessController.java:238)
23:10:16  	at java.security.AccessController.checkPermission(AccessController.java:385)
23:10:16  	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
23:10:16  	at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1294)
23:10:16  	at java.lang.System.getProperty(System.java:450)
23:10:16  	at java.lang.System.getProperty(System.java:434)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1297)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1295)
23:10:16  	at java.security.AccessController.doPrivileged(AccessController.java:678)
23:10:16  	at com.sun.crypto.provider.CipherCore.privilegedGetProperty(CipherCore.java:1295)
23:10:16  	at com.sun.crypto.provider.CipherCore.<clinit>(CipherCore.java:1303)
23:10:16  	... 19 more
23:10:16  java.security.NoSuchAlgorithmException: No such algorithm: AES/ECb/ISO10126Padding
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:691)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:599)
23:10:16  	at Dynamic.runTest(Dynamic.java:131)
23:10:16  	at Dynamic.runAllTest(Dynamic.java:89)
23:10:16  	at Dynamic.run(Dynamic.java:59)
23:10:16  	at TestAESWithProviderChange.main(TestAESWithProviderChange.java:37)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
23:10:16  	at java.lang.reflect.Method.invoke(Method.java:498)
23:10:16  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
23:10:16  	at java.lang.Thread.run(Thread.java:823)
23:10:16  Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: AES, provider: SunJCE, class: com.sun.crypto.provider.AESCipher$General)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1617)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:672)
23:10:16  	... 11 more
23:10:16  Caused by: java.lang.NoClassDefFoundError: com.sun.crypto.provider.CipherCore (initialization failure)
23:10:16  	at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:96)
23:10:16  	at com.sun.crypto.provider.AESCipher.<init>(AESCipher.java:185)
23:10:16  	at com.sun.crypto.provider.AESCipher$General.<init>(AESCipher.java:54)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
23:10:16  	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1595)
23:10:16  	... 12 more
23:10:16  Caused by: java.security.AccessControlException: Access denied ("java.util.PropertyPermission" "jdk.nativeCryptoTrace" "read")
23:10:16  	at java.security.AccessController.throwACE(AccessController.java:176)
23:10:16  	at java.security.AccessController.checkPermissionHelper(AccessController.java:238)
23:10:16  	at java.security.AccessController.checkPermission(AccessController.java:385)
23:10:16  	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
23:10:16  	at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1294)
23:10:16  	at java.lang.System.getProperty(System.java:450)
23:10:16  	at java.lang.System.getProperty(System.java:434)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1297)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1295)
23:10:16  	at java.security.AccessController.doPrivileged(AccessController.java:678)
23:10:16  	at com.sun.crypto.provider.CipherCore.privilegedGetProperty(CipherCore.java:1295)
23:10:16  	at com.sun.crypto.provider.CipherCore.<clinit>(CipherCore.java:1303)
23:10:16  	... 19 more
23:10:16  java.security.NoSuchAlgorithmException: No such algorithm: AES/CbC/NoPadding
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:691)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:599)
23:10:16  	at Dynamic.runTest(Dynamic.java:131)
23:10:16  	at Dynamic.runAllTest(Dynamic.java:89)
23:10:16  	at Dynamic.run(Dynamic.java:59)
23:10:16  	at TestAESWithProviderChange.main(TestAESWithProviderChange.java:37)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
23:10:16  	at java.lang.reflect.Method.invoke(Method.java:498)
23:10:16  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
23:10:16  	at java.lang.Thread.run(Thread.java:823)
23:10:16  Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: AES, provider: SunJCE, class: com.sun.crypto.provider.AESCipher$General)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1617)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:672)
23:10:16  	... 11 more
23:10:16  Caused by: java.lang.NoClassDefFoundError: com.sun.crypto.provider.CipherCore (initialization failure)
23:10:16  	at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:96)
23:10:16  	at com.sun.crypto.provider.AESCipher.<init>(AESCipher.java:185)
23:10:16  	at com.sun.crypto.provider.AESCipher$General.<init>(AESCipher.java:54)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
23:10:16  	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1595)
23:10:16  	... 12 more
23:10:16  Caused by: java.security.AccessControlException: Access denied ("java.util.PropertyPermission" "jdk.nativeCryptoTrace" "read")
23:10:16  	at java.security.AccessController.throwACE(AccessController.java:176)
23:10:16  	at java.security.AccessController.checkPermissionHelper(AccessController.java:238)
23:10:16  	at java.security.AccessController.checkPermission(AccessController.java:385)
23:10:16  	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
23:10:16  	at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1294)
23:10:16  	at java.lang.System.getProperty(System.java:450)
23:10:16  	at java.lang.System.getProperty(System.java:434)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1297)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1295)
23:10:16  	at java.security.AccessController.doPrivileged(AccessController.java:678)
23:10:16  	at com.sun.crypto.provider.CipherCore.privilegedGetProperty(CipherCore.java:1295)
23:10:16  	at com.sun.crypto.provider.CipherCore.<clinit>(CipherCore.java:1303)
23:10:16  	... 19 more
23:10:16  java.security.NoSuchAlgorithmException: No such algorithm: AES/CbC/PKCS5Padding
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:691)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:599)
23:10:16  	at Dynamic.runTest(Dynamic.java:131)
23:10:16  	at Dynamic.runAllTest(Dynamic.java:89)
23:10:16  	at Dynamic.run(Dynamic.java:59)
23:10:16  	at TestAESWithProviderChange.main(TestAESWithProviderChange.java:37)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
23:10:16  	at java.lang.reflect.Method.invoke(Method.java:498)
23:10:16  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
23:10:16  	at java.lang.Thread.run(Thread.java:823)
23:10:16  Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: AES, provider: SunJCE, class: com.sun.crypto.provider.AESCipher$General)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1617)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:672)
23:10:16  	... 11 more
23:10:16  Caused by: java.lang.NoClassDefFoundError: com.sun.crypto.provider.CipherCore (initialization failure)
23:10:16  	at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:96)
23:10:16  	at com.sun.crypto.provider.AESCipher.<init>(AESCipher.java:185)
23:10:16  	at com.sun.crypto.provider.AESCipher$General.<init>(AESCipher.java:54)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
23:10:16  	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1595)
23:10:16  	... 12 more
23:10:16  Caused by: java.security.AccessControlException: Access denied ("java.util.PropertyPermission" "jdk.nativeCryptoTrace" "read")
23:10:16  	at java.security.AccessController.throwACE(AccessController.java:176)
23:10:16  	at java.security.AccessController.checkPermissionHelper(AccessController.java:238)
23:10:16  	at java.security.AccessController.checkPermission(AccessController.java:385)
23:10:16  	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
23:10:16  	at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1294)
23:10:16  	at java.lang.System.getProperty(System.java:450)
23:10:16  	at java.lang.System.getProperty(System.java:434)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1297)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1295)
23:10:16  	at java.security.AccessController.doPrivileged(AccessController.java:678)
23:10:16  	at com.sun.crypto.provider.CipherCore.privilegedGetProperty(CipherCore.java:1295)
23:10:16  	at com.sun.crypto.provider.CipherCore.<clinit>(CipherCore.java:1303)
23:10:16  	... 19 more
23:10:16  java.security.NoSuchAlgorithmException: No such algorithm: AES/CbC/ISO10126Padding
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:691)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:599)
23:10:16  	at Dynamic.runTest(Dynamic.java:131)
23:10:16  	at Dynamic.runAllTest(Dynamic.java:89)
23:10:16  	at Dynamic.run(Dynamic.java:59)
23:10:16  	at TestAESWithProviderChange.main(TestAESWithProviderChange.java:37)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
23:10:16  	at java.lang.reflect.Method.invoke(Method.java:498)
23:10:16  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
23:10:16  	at java.lang.Thread.run(Thread.java:823)
23:10:16  Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: AES, provider: SunJCE, class: com.sun.crypto.provider.AESCipher$General)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1617)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:672)
23:10:16  	... 11 more
23:10:16  Caused by: java.lang.NoClassDefFoundError: com.sun.crypto.provider.CipherCore (initialization failure)
23:10:16  	at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:96)
23:10:16  	at com.sun.crypto.provider.AESCipher.<init>(AESCipher.java:185)
23:10:16  	at com.sun.crypto.provider.AESCipher$General.<init>(AESCipher.java:54)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
23:10:16  	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1595)
23:10:16  	... 12 more
23:10:16  Caused by: java.security.AccessControlException: Access denied ("java.util.PropertyPermission" "jdk.nativeCryptoTrace" "read")
23:10:16  	at java.security.AccessController.throwACE(AccessController.java:176)
23:10:16  	at java.security.AccessController.checkPermissionHelper(AccessController.java:238)
23:10:16  	at java.security.AccessController.checkPermission(AccessController.java:385)
23:10:16  	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
23:10:16  	at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1294)
23:10:16  	at java.lang.System.getProperty(System.java:450)
23:10:16  	at java.lang.System.getProperty(System.java:434)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1297)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1295)
23:10:16  	at java.security.AccessController.doPrivileged(AccessController.java:678)
23:10:16  	at com.sun.crypto.provider.CipherCore.privilegedGetProperty(CipherCore.java:1295)
23:10:16  	at com.sun.crypto.provider.CipherCore.<clinit>(CipherCore.java:1303)
23:10:16  	... 19 more
23:10:16  java.security.NoSuchAlgorithmException: No such algorithm: AES/CTR/NoPadding
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:691)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:599)
23:10:16  	at Dynamic.runTest(Dynamic.java:131)
23:10:16  	at Dynamic.runAllTest(Dynamic.java:89)
23:10:16  	at Dynamic.run(Dynamic.java:59)
23:10:16  	at TestAESWithProviderChange.main(TestAESWithProviderChange.java:37)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
23:10:16  	at java.lang.reflect.Method.invoke(Method.java:498)
23:10:16  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
23:10:16  	at java.lang.Thread.run(Thread.java:823)
23:10:16  Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: AES, provider: SunJCE, class: com.sun.crypto.provider.AESCipher$General)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1617)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:672)
23:10:16  	... 11 more
23:10:16  Caused by: java.lang.NoClassDefFoundError: com.sun.crypto.provider.CipherCore (initialization failure)
23:10:16  	at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:96)
23:10:16  	at com.sun.crypto.provider.AESCipher.<init>(AESCipher.java:185)
23:10:16  	at com.sun.crypto.provider.AESCipher$General.<init>(AESCipher.java:54)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
23:10:16  	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1595)
23:10:16  	... 12 more
23:10:16  Caused by: java.security.AccessControlException: Access denied ("java.util.PropertyPermission" "jdk.nativeCryptoTrace" "read")
23:10:16  	at java.security.AccessController.throwACE(AccessController.java:176)
23:10:16  	at java.security.AccessController.checkPermissionHelper(AccessController.java:238)
23:10:16  	at java.security.AccessController.checkPermission(AccessController.java:385)
23:10:16  	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
23:10:16  	at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1294)
23:10:16  	at java.lang.System.getProperty(System.java:450)
23:10:16  	at java.lang.System.getProperty(System.java:434)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1297)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1295)
23:10:16  	at java.security.AccessController.doPrivileged(AccessController.java:678)
23:10:16  	at com.sun.crypto.provider.CipherCore.privilegedGetProperty(CipherCore.java:1295)
23:10:16  	at com.sun.crypto.provider.CipherCore.<clinit>(CipherCore.java:1303)
23:10:16  	... 19 more
23:10:16  java.security.NoSuchAlgorithmException: No such algorithm: AES/PCBC/NoPadding
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:691)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:599)
23:10:16  	at Dynamic.runTest(Dynamic.java:131)
23:10:16  	at Dynamic.runAllTest(Dynamic.java:89)
23:10:16  	at Dynamic.run(Dynamic.java:59)
23:10:16  	at TestAESWithProviderChange.main(TestAESWithProviderChange.java:37)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
23:10:16  	at java.lang.reflect.Method.invoke(Method.java:498)
23:10:16  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
23:10:16  	at java.lang.Thread.run(Thread.java:823)
23:10:16  Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: AES, provider: SunJCE, class: com.sun.crypto.provider.AESCipher$General)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1617)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:672)
23:10:16  	... 11 more
23:10:16  Caused by: java.lang.NoClassDefFoundError: com.sun.crypto.provider.CipherCore (initialization failure)
23:10:16  	at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:96)
23:10:16  	at com.sun.crypto.provider.AESCipher.<init>(AESCipher.java:185)
23:10:16  	at com.sun.crypto.provider.AESCipher$General.<init>(AESCipher.java:54)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
23:10:16  	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1595)
23:10:16  	... 12 more
23:10:16  Caused by: java.security.AccessControlException: Access denied ("java.util.PropertyPermission" "jdk.nativeCryptoTrace" "read")
23:10:16  	at java.security.AccessController.throwACE(AccessController.java:176)
23:10:16  	at java.security.AccessController.checkPermissionHelper(AccessController.java:238)
23:10:16  	at java.security.AccessController.checkPermission(AccessController.java:385)
23:10:16  	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
23:10:16  	at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1294)
23:10:16  	at java.lang.System.getProperty(System.java:450)
23:10:16  	at java.lang.System.getProperty(System.java:434)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1297)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1295)
23:10:16  	at java.security.AccessController.doPrivileged(AccessController.java:678)
23:10:16  	at com.sun.crypto.provider.CipherCore.privilegedGetProperty(CipherCore.java:1295)
23:10:16  	at com.sun.crypto.provider.CipherCore.<clinit>(CipherCore.java:1303)
23:10:16  	... 19 more
23:10:16  java.security.NoSuchAlgorithmException: No such algorithm: AES/PCBC/PKCS5Padding
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:691)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:599)
23:10:16  	at Dynamic.runTest(Dynamic.java:131)
23:10:16  	at Dynamic.runAllTest(Dynamic.java:89)
23:10:16  	at Dynamic.run(Dynamic.java:59)
23:10:16  	at TestAESWithProviderChange.main(TestAESWithProviderChange.java:37)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
23:10:16  	at java.lang.reflect.Method.invoke(Method.java:498)
23:10:16  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
23:10:16  	at java.lang.Thread.run(Thread.java:823)
23:10:16  Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: AES, provider: SunJCE, class: com.sun.crypto.provider.AESCipher$General)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1617)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:672)
23:10:16  	... 11 more
23:10:16  Caused by: java.lang.NoClassDefFoundError: com.sun.crypto.provider.CipherCore (initialization failure)
23:10:16  	at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:96)
23:10:16  	at com.sun.crypto.provider.AESCipher.<init>(AESCipher.java:185)
23:10:16  	at com.sun.crypto.provider.AESCipher$General.<init>(AESCipher.java:54)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
23:10:16  	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1595)
23:10:16  	... 12 more
23:10:16  Caused by: java.security.AccessControlException: Access denied ("java.util.PropertyPermission" "jdk.nativeCryptoTrace" "read")
23:10:16  	at java.security.AccessController.throwACE(AccessController.java:176)
23:10:16  	at java.security.AccessController.checkPermissionHelper(AccessController.java:238)
23:10:16  	at java.security.AccessController.checkPermission(AccessController.java:385)
23:10:16  	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
23:10:16  	at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1294)
23:10:16  	at java.lang.System.getProperty(System.java:450)
23:10:16  	at java.lang.System.getProperty(System.java:434)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1297)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1295)
23:10:16  	at java.security.AccessController.doPrivileged(AccessController.java:678)
23:10:16  	at com.sun.crypto.provider.CipherCore.privilegedGetProperty(CipherCore.java:1295)
23:10:16  	at com.sun.crypto.provider.CipherCore.<clinit>(CipherCore.java:1303)
23:10:16  	... 19 more
23:10:16  java.security.NoSuchAlgorithmException: No such algorithm: AES/PCBC/ISO10126Padding
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:691)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:599)
23:10:16  	at Dynamic.runTest(Dynamic.java:131)
23:10:16  	at Dynamic.runAllTest(Dynamic.java:89)
23:10:16  	at Dynamic.run(Dynamic.java:59)
23:10:16  	at TestAESWithProviderChange.main(TestAESWithProviderChange.java:37)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
23:10:16  	at java.lang.reflect.Method.invoke(Method.java:498)
23:10:16  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
23:10:16  	at java.lang.Thread.run(Thread.java:823)
23:10:16  Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: AES, provider: SunJCE, class: com.sun.crypto.provider.AESCipher$General)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1617)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:672)
23:10:16  	... 11 more
23:10:16  Caused by: java.lang.NoClassDefFoundError: com.sun.crypto.provider.CipherCore (initialization failure)
23:10:16  	at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:96)
23:10:16  	at com.sun.crypto.provider.AESCipher.<init>(AESCipher.java:185)
23:10:16  	at com.sun.crypto.provider.AESCipher$General.<init>(AESCipher.java:54)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
23:10:16  	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1595)
23:10:16  	... 12 more
23:10:16  Caused by: java.security.AccessControlException: Access denied ("java.util.PropertyPermission" "jdk.nativeCryptoTrace" "read")
23:10:16  	at java.security.AccessController.throwACE(AccessController.java:176)
23:10:16  	at java.security.AccessController.checkPermissionHelper(AccessController.java:238)
23:10:16  	at java.security.AccessController.checkPermission(AccessController.java:385)
23:10:16  	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
23:10:16  	at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1294)
23:10:16  	at java.lang.System.getProperty(System.java:450)
23:10:16  	at java.lang.System.getProperty(System.java:434)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1297)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1295)
23:10:16  	at java.security.AccessController.doPrivileged(AccessController.java:678)
23:10:16  	at com.sun.crypto.provider.CipherCore.privilegedGetProperty(CipherCore.java:1295)
23:10:16  	at com.sun.crypto.provider.CipherCore.<clinit>(CipherCore.java:1303)
23:10:16  	... 19 more
23:10:16  java.security.NoSuchAlgorithmException: No such algorithm: AES/OFB/NoPadding
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:691)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:599)
23:10:16  	at Dynamic.runTest(Dynamic.java:131)
23:10:16  	at Dynamic.runAllTest(Dynamic.java:89)
23:10:16  	at Dynamic.run(Dynamic.java:59)
23:10:16  	at TestAESWithProviderChange.main(TestAESWithProviderChange.java:37)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
23:10:16  	at java.lang.reflect.Method.invoke(Method.java:498)
23:10:16  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
23:10:16  	at java.lang.Thread.run(Thread.java:823)
23:10:16  Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: AES, provider: SunJCE, class: com.sun.crypto.provider.AESCipher$General)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1617)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:672)
23:10:16  	... 11 more
23:10:16  Caused by: java.lang.NoClassDefFoundError: com.sun.crypto.provider.CipherCore (initialization failure)
23:10:16  	at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:96)
23:10:16  	at com.sun.crypto.provider.AESCipher.<init>(AESCipher.java:185)
23:10:16  	at com.sun.crypto.provider.AESCipher$General.<init>(AESCipher.java:54)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
23:10:16  	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1595)
23:10:16  	... 12 more
23:10:16  Caused by: java.security.AccessControlException: Access denied ("java.util.PropertyPermission" "jdk.nativeCryptoTrace" "read")
23:10:16  	at java.security.AccessController.throwACE(AccessController.java:176)
23:10:16  	at java.security.AccessController.checkPermissionHelper(AccessController.java:238)
23:10:16  	at java.security.AccessController.checkPermission(AccessController.java:385)
23:10:16  	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
23:10:16  	at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1294)
23:10:16  	at java.lang.System.getProperty(System.java:450)
23:10:16  	at java.lang.System.getProperty(System.java:434)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1297)
23:10:16  	at com.sun.crypto.provider.CipherCore$1.run(CipherCore.java:1295)
23:10:16  	at java.security.AccessController.doPrivileged(AccessController.java:678)
23:10:16  	at com.sun.crypto.provider.CipherCore.privilegedGetProperty(CipherCore.java:1295)
23:10:16  	at com.sun.crypto.provider.CipherCore.<clinit>(CipherCore.java:1303)
23:10:16  	... 19 more
23:10:16  java.security.NoSuchAlgorithmException: No such algorithm: AES/cFB/NoPadding
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:691)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:599)
23:10:16  	at Dynamic.runTest(Dynamic.java:131)
23:10:16  	at Dynamic.runAllTest(Dynamic.java:89)
23:10:16  	at Dynamic.run(Dynamic.java:59)
23:10:16  	at TestAESWithProviderChange.main(TestAESWithProviderChange.java:37)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
23:10:16  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
23:10:16  	at java.lang.reflect.Method.invoke(Method.java:498)
23:10:16  	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
23:10:16  	at java.lang.Thread.run(Thread.java:823)
23:10:16  Caused by: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: AES, provider: SunJCE, class: com.sun.crypto.provider.AESCipher$General)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1617)
23:10:16  	at javax.crypto.Cipher.getInstance(Cipher.java:672)
23:10:16  	... 11 more
23:10:16  Caused by: java.lang.NoClassDefFoundError: com.sun.crypto.provider.CipherCore (initialization failure)
23:10:16  	at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:96)
23:10:16  	at com.sun.crypto.provider.AESCipher.<init>(AESCipher.java:185)
23:10:16  	at com.sun.crypto.provider.AESCipher$General.<init>(AESCipher.java:54)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
23:10:16  	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
23:10:16  	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
23:10:16  	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
23:10:16  	at java.security.Provider$Service.newInstance(Provider.java:1595)
23:10:16  	... 12 more
23:10:16  Caused by: java.security.AccessControlException: Access denied ("java.util.PropertyPermission" "jdk.nativeCryptoTrace" "read")
23:10:16  	at java.security.AccessController.throwACE(AccessController.java:176)
23:10:16  	at java.security.AccessController.checkPermissionHelper(AccessController.java:238)
23:10:16  	at java.security.AccessController.checkPermission(AccessController.java:385)
23:10:16  	at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
23:10:16  	at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1294)
23:10:16  	at java.lang.System.getProperty(System.java:450)
23:10:16  	at java.
@pshipton
Copy link
Member

Seems like a missing doPrivileged().

@pshipton
Copy link
Member

pshipton commented Jan 11, 2021

There is a doPrivileged(), but it's not working. I assume this code isn't running in the bootstrap loader. This means lib/security/default.policy is missing a grant for the permission.

    private static String privilegedGetProperty(final String property) {
        return AccessController.doPrivileged(new PrivilegedAction<String>() {
            public String run() {
                return System.getProperty(property);        <---------- CipherCore.java:1297
            }
        });
    }

@pshipton
Copy link
Member

pshipton commented Jan 11, 2021

com.sun.crypto.provider.CipherCore is found in jre/lib/ext/sunjce_provider.jar
This is jdk8, so jre/lib/security/java.policy is the file, however it already contains the following which should cover it. Requires more investigation.

grant codeBase "file:${{java.ext.dirs}}/*" {
        permission java.security.AllPermission;
};

@pshipton
Copy link
Member

The test modifies the default policy. The test needs to be modified to support OpenJ9, or excluded.

https://github.com/ibmruntimes/openj9-openjdk-jdk8/blob/openj9/jdk/test/com/sun/crypto/provider/Cipher/AES/TestAESCiphers/testAES.policy needs to contain the following, and then the test passes.

grant codeBase "file:${{java.ext.dirs}}/sunjce_provider.jar" {
    permission java.util.PropertyPermission "jdk.nativeCrypto", "read";
    permission java.util.PropertyPermission "jdk.nativeCryptoTrace", "read";
    permission java.util.PropertyPermission "jdk.nativeCBC", "read";
    permission java.util.PropertyPermission "jdk.nativeGCM", "read";
    permission java.lang.RuntimePermission "accessClassInPackage.sun.misc";
};

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