adoptium / adoptium/aqa-tests

extended.openjdk jdk_security1 java/security/KeyFactory/KeyFactoryGetKeySpecForInvalidSpec.java failed with exception

Open
#2,790 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
155
Forks
346
Avg merge
2d 9h
Merged PRs (30d)
36

Description

**Describe the bug**
Failure links:
- hotspot: https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/1191/testReport/java_security_KeyFactory_KeyFactoryGetKeySpecForInvalidSpec/java/KeyFactoryGetKeySpecForInvalidSpec/
- openj9:
https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/1192/testReport/java_security_KeyFactory_KeyFactoryGetKeySpecForInvalidSpec/java/KeyFactoryGetKeySpecForInvalidSpec/
- test category: extended.openjdk
- test target name: jdk_security1
- OS/architecture: all
- JDK version: 11

**To Reproduce**
Steps to reproduce the behavior (or Grinder rerun link): [rerun link](https://ci.adoptopenjdk.net/job/Grinder/parambuild/?SDK_RESOURCE=nightly&TARGET=testList+TESTLIST%3Djdk_nio%2Cjdk_security1&TEST_FLAG=&UPSTREAM_TEST_JOB_NAME=&DOCKER_REQUIRED=false&ACTIVE_NODE_TIMEOUT=&VENDOR_TEST_DIRS=&EXTRA_DOCKER_ARGS=-v+%24%7BTEST_JDK_HOME%7D%3A%2Fopt%2Fjava%2Fopenjdk&TKG_OWNER_BRANCH=AdoptOpenJDK%3Amaster&TEST_PARALLELIZATION_PARAMS=&OPENJ9_SYSTEMTEST_OWNER_BRANCH=eclipse-openj9%3Amaster&PLATFORM=x86-64_linux&GENERATE_JOBS=false&KEEP_REPORTDIR=true&PERSONAL_BUILD=true&ADOPTOPENJDK_REPO=https%3A%2F%2Fgithub.com%2Fadoptium%2Faqa-tests.git&LABEL=&TEST_OPTIONS_PARAMS=&EXTRA_OPTIONS=&CUSTOMIZED_SDK_URL=&BUILD_IDENTIFIER=&NON_AQA_TEST_REPOS_HELP_TEXT=&ADOPTOPENJDK_BRANCH=master&LIGHT_WEIGHT_CHECKOUT=false&NON_AQA_TEST_REPOS=&ARTIFACTORY_SERVER=&TEST_REPO_PARAMS=&TEST_SELECTION_PARAMS=&TEST_PARALLELIZATION_PARAMS_HELP_TEXT=&JDK_SELECTION_PARAMS=&KEEP_WORKSPACE=false&USER_CREDENTIALS_ID=&JDK_VERSION=11&ITERATIONS=1&VENDOR_TEST_REPOS=&JDK_REPO=&PLATFORM_AND_MACHINE_HELP_TEXT=&OPENJ9_BRANCH=master&OPENJ9_SHA=&JCK_GIT_REPO=&VENDOR_TEST_BRANCHES=&OPENJ9_REPO=https%3A%2F%2Fgithub.com%2Feclipse%2Fopenj9.git&UPSTREAM_JOB_NAME=&CLOUD_PROVIDER=azure&PLATFORM_AND_MACHINE=&CUSTOM_TARGET=&VENDOR_TEST_SHAS=&JDK_BRANCH=&LABEL_ADDITION=&ARTIFACTORY_REPO=&ARTIFACTORY_ROOT_DIR=&POST_RUN_PARAMS_HELP_TEXT=&UPSTREAM_TEST_JOB_NUMBER=&DOCKERIMAGE_TAG=&JDK_SELECTION_PARAMS_HELP_TEXT=&JDK_IMPL=openj9&SSH_AGENT_CREDENTIAL=&AUTO_DETECT=true&TKG_SHA=&TEST_SELECTION_PARAMS_HELP_TEXT=&ADOPTOPENJDK_SYSTEMTEST_OWNER_BRANCH=adoptium%3Amaster&CUSTOMIZED_SDK_URL_CREDENTIAL_ID=&OPENJDK_SHA=&NUM_MACHINES=&BUILD_LIST=openjdk&UPSTREAM_JOB_NUMBER=&STF_OWNER_BRANCH=adoptium%3Amaster&TEST_REPO_PARAMS_HELP_TEXT=&POST_RUN_PARAMS=&TIME_LIMIT=10&TEST_OPTIONS_PARAMS_HELP_TEXT=&JVM_OPTIONS=&PARALLEL=None)

**Failure Output**
```
14:53:31 STDERR:
14:53:31 java.lang.Exception: Spec should be an instance of RSAPrivateCrtKeySpec
14:53:31 at KeyFactoryGetKeySpecForInvalidSpec.main(KeyFactoryGetKeySpecForInvalidSpec.java:84)
14:53:31 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
14:53:31 at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
14:53:31 at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
14:53:31 at java.base/java.lang.reflect.Method.invoke(Method.java:566)
14:53:31 at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
14:53:31 at java.base/java.lang.Thread.run(Thread.java:861)
14:53:31
14:53:31 JavaTest Message: Test threw exception: java.lang.Exception
14:53:31 JavaTest Message: shutting down test
```

Contributor guide

Open the contributing guide

Research direction

Start with KeyFactoryGetKeySpecForInvalidSpec.java, especially the failure at line 84, and review the linked hotspot and OpenJ9 reports. Rerun the jdk_security1 target using the provided Grinder link; done means the test completes without the reported exception and its expected invalid-spec behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.