Giter VIP home page Giter VIP logo

Comments (10)

pshipton avatar pshipton commented on July 18, 2024

@groeges @andrew-m-leonard

from openj9-openjdk-jdk.

groeges avatar groeges commented on July 18, 2024

@smlambert Are these still causing issues? Also, was this just on Windows or on other platforms as well?

from openj9-openjdk-jdk.

groeges avatar groeges commented on July 18, 2024

@smlambert I have run all these tests on my local Windows system using JDK Next and all tests passed.
JDK version was:

openjdk 13-internal 2019-09-17
OpenJDK Runtime Environment (build 13-internal+0-adhoc.Administrator.openj9-openjdk-jdk)
Eclipse OpenJ9 VM (build master-ffeaf288e, JRE 13 Windows Server 2016 amd64-64-Bit Compressed References 20190610_000000 (JIT enabled, AOT enabled)
OpenJ9   - ffeaf288e
OMR      - adf08c9e
JCL      - 1031586d8c based on jdk-13+24)

Running jenkins test jobs to see if they fail using them.
If they do this may point to an infrastructure / test framework issue, as they do work locally.

from openj9-openjdk-jdk.

groeges avatar groeges commented on July 18, 2024

Strange. When running using the Jenkins grinder jobs, the tests do fail with the error stated above.
Investigating why this is the case for Jenkins and not locally!!

from openj9-openjdk-jdk.

groeges avatar groeges commented on July 18, 2024

Ran the test locally and they pass.
The tests are using the TEMP & TMP environment variable set as "C:\cygwin64\tmp".
However, if these are unset or set to "C:\Windows" , as per the jenkins test system that seems to be failing, the local tests also fail.
It seems that the 'jenkins' userid is unable to access the "C:\Windows" directory.
@smlambert Based on the above investigation, is it possible for the test systems be modified to use a different value for the TEMP and TMP environment variables, one which the 'jenkins' userid can access, which then should allow these tests to pass.

from openj9-openjdk-jdk.

smlambert avatar smlambert commented on July 18, 2024

Thanks for your investigation @groeges, will look and see what we can do to update value of TEMP/TMP to allow Jenkins user access & tests to pass. FYI @llxia

from openj9-openjdk-jdk.

groeges avatar groeges commented on July 18, 2024

@smlambert @llxia Did you manage to update the test machines and therefore get these tests passing.
If so, are we now able to close this issue and/or raise a test infrastructure issue for this, as it now seems it doesn't seem related to the jdk extensions repositories.

from openj9-openjdk-jdk.

llxia avatar llxia commented on July 18, 2024

fyi @LongyuZhang could you take a look of this issue? Thanks

from openj9-openjdk-jdk.

LongyuZhang avatar LongyuZhang commented on July 18, 2024

@groeges Hi Steve, we tried to set both TMP and TEMP to "C:\cygwin64\tmp" on Jenkins as you suggested, but jdk_security1 with jdk13 still failed with "access is denied". Following is the console output, could you check it? Thanks.

18:17:53  Eclipse OpenJ9 VM (build ibm_sdk-e8ab99c9c6, JRE 13 Windows Server 2012 R2 amd64-64-Bit Compressed References 20190710_8 (JIT enabled, AOT enabled)
18:17:53  OpenJ9   - e8ab99c9c6
18:17:53  OMR      - be27021a
18:17:53  JCL      - 1d0112e9684 based on jdk-13+28)

18:27:19  cd 'C:\Users\jenkins\workspace\Grinder_Sandbox\openjdk-tests\TestConfig\test_output_15632294373719\jdk_security1_0\work\scratch\4' && \
18:27:19  PATH='C:\cygwin64\bin;C:\Strawberry\perl\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Git\cmd;C:\openjdk\jdk8\bin;C:\apache-ant\apache-ant-1.10.5\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft Windows Performance Toolkit' \
18:27:19  SystemDrive=C: \
18:27:19  SystemRoot='C:\Windows' \
18:27:19  TEMP='C:\cygwin64\tmp' \
18:27:19  TMP='C:\cygwin64\tmp' \
18:27:19  windir='C:\Windows' \
18:27:19      'C:\Users\jenkins\workspace\Grinder_Sandbox\openjdkbinary\j2sdk-image\bin\java' \
18:27:19          -Dtest.class.path.prefix='C:\Users\jenkins\workspace\Grinder_Sandbox\openjdk-tests\TestConfig\test_output_15632294373719\jdk_security1_0\work\classes\6\java\security\KeyPairGenerator\FinalizeHalf.d;C:\Users\jenkins\workspace\Grinder_Sandbox\openjdk-tests\openjdk\openjdk-jdk\test\jdk\java\security\KeyPairGenerator' \
18:27:19          -Dtest.src='C:\Users\jenkins\workspace\Grinder_Sandbox\openjdk-tests\openjdk\openjdk-jdk\test\jdk\java\security\KeyPairGenerator' \
18:27:19          -Dtest.src.path='C:\Users\jenkins\workspace\Grinder_Sandbox\openjdk-tests\openjdk\openjdk-jdk\test\jdk\java\security\KeyPairGenerator' \
18:27:19          -Dtest.classes='C:\Users\jenkins\workspace\Grinder_Sandbox\openjdk-tests\TestConfig\test_output_15632294373719\jdk_security1_0\work\classes\6\java\security\KeyPairGenerator\FinalizeHalf.d' \
18:27:19          -Dtest.class.path='C:\Users\jenkins\workspace\Grinder_Sandbox\openjdk-tests\TestConfig\test_output_15632294373719\jdk_security1_0\work\classes\6\java\security\KeyPairGenerator\FinalizeHalf.d' \
18:27:19          -Dtest.vm.opts='-ea -esa -Xmx512m -Xcompressedrefs' \
18:27:19          -Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m -J-Xcompressedrefs' \
18:27:19          -Dtest.compiler.opts= \
18:27:19          -Dtest.java.opts= \
18:27:19          -Dtest.jdk='C:\Users\jenkins\workspace\Grinder_Sandbox\openjdkbinary\j2sdk-image' \
18:27:19          -Dcompile.jdk='C:\Users\jenkins\workspace\Grinder_Sandbox\openjdkbinary\j2sdk-image' \
18:27:19          -Dtest.timeout.factor=8.0 \
18:27:19          -Dtest.root='C:\Users\jenkins\workspace\Grinder_Sandbox\openjdk-tests\openjdk\openjdk-jdk\test\jdk' \
18:27:19          -classpath 'C:\Users\jenkins\workspace\Grinder_Sandbox\openjdk-tests\TestConfig\test_output_15632294373719\jdk_security1_0\work\classes\6\java\security\KeyPairGenerator\FinalizeHalf.d;C:\Users\jenkins\workspace\Grinder_Sandbox\openjdk-tests\openjdk\openjdk-jdk\test\jdk\java\security\KeyPairGenerator;C:\Users\jenkins\workspace\Grinder_Sandbox\jvmtest\openjdk\jtreg\lib\javatest.jar;C:\Users\jenkins\workspace\Grinder_Sandbox\jvmtest\openjdk\jtreg\lib\jtreg.jar' \
18:27:19          FinalizeHalf
18:27:19  STDERR:
18:27:19  java.security.ProviderException: java.security.KeyException: Access is denied.
18:27:19  
18:27:19  	at jdk.crypto.mscapi/sun.security.mscapi.CKeyPairGenerator$RSA.generateKeyPair(CKeyPairGenerator.java:126)
18:27:19  	at java.base/java.security.KeyPairGenerator$Delegate.generateKeyPair(KeyPairGenerator.java:722)
18:27:19  	at FinalizeHalf.test(FinalizeHalf.java:76)
18:27:19  	at FinalizeHalf.main(FinalizeHalf.java:54)
18:27:19  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
18:27:19  	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
18:27:19  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
18:27:19  	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
18:27:19  	at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
18:27:19  	at java.base/java.lang.Thread.run(Thread.java:831)
18:27:19  Caused by: java.security.KeyException: Access is denied.
18:27:19  
18:27:19  	at jdk.crypto.mscapi/sun.security.mscapi.CKeyPairGenerator$RSA.generateCKeyPair(Native Method)
18:27:19  	at jdk.crypto.mscapi/sun.security.mscapi.CKeyPairGenerator$RSA.generateKeyPair(CKeyPairGenerator.java:121)
18:27:19  	... 9 more
18:27:19  
18:27:19  JavaTest Message: Test threw exception: java.security.ProviderException
18:27:19  JavaTest Message: shutting down test
18:27:19  
18:27:19  STDOUT:
18:27:19  Checking SunJCE, DiffieHellman
18:27:19  Checking SunJCE, DiffieHellman
18:27:19  Checking SunJCE, DiffieHellman
18:27:19  Checking SunJCE, DiffieHellman
18:27:19  Checking SUN, DSA
18:27:19  Checking SUN, DSA
18:27:19  Checking SUN, DSA
18:27:19  Checking SUN, DSA
18:27:19  Checking SunRsaSign, RSA
18:27:19  Checking SunRsaSign, RSA
18:27:19  Checking SunRsaSign, RSA
18:27:19  Checking SunRsaSign, RSA
18:27:19  Checking SunMSCAPI, RSA
18:27:19  
18:27:19  TEST RESULT: Failed. Execution failed: `main' threw exception: java.security.ProviderException: java.security.KeyException: Access is denied.

from openj9-openjdk-jdk.

sendaoYan avatar sendaoYan commented on July 18, 2024

Shoud we disable there testcase temporarily

from openj9-openjdk-jdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.