[jboss-jira] [JBoss JIRA] (WFCORE-3993) Elytron module compilation failure due to "package sun.security.ec does not exist" on IBM jdk

Petr Kremensky (JIRA) issues at jboss.org
Thu Aug 9 04:11:00 EDT 2018


    [ https://issues.jboss.org/browse/WFCORE-3993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13616815#comment-13616815 ] 

Petr Kremensky edited comment on WFCORE-3993 at 8/9/18 4:10 AM:
----------------------------------------------------------------

[~fjuma] I'm able to compile the module now, but the test fails on IBM jdk with:
{noformat}
$ mvn test -Dtest=KeyStoresTestCase -pl elytron
...
[INFO] Running org.wildfly.extension.elytron.KeyStoresTestCase
[ERROR] Tests run: 27, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 23.836 s <<< FAILURE! - in org.wildfly.extension.elytron.KeyStoresTestCase
[ERROR] testObtainCertificateWithECPublicKey(org.wildfly.extension.elytron.KeyStoresTestCase)  Time elapsed: 2.263 s  <<< FAILURE!
java.lang.AssertionError: 
{
    "outcome" : "failed",
    "failure-description" : "WFLYCTL0158: Operation handler failed: java.lang.RuntimeException: org.wildfly.security.x500.cert.acme.AcmeException: ELY10049: Unable to download certificate chain from ACME server",
    "rolled-back" : true
}
	at org.wildfly.extension.elytron.KeyStoresTestCase.assertSuccess(KeyStoresTestCase.java:170)
	at org.wildfly.extension.elytron.KeyStoresTestCase.obtainCertificate(KeyStoresTestCase.java:1043)
	at org.wildfly.extension.elytron.KeyStoresTestCase.testObtainCertificateWithECPublicKey(KeyStoresTestCase.java:1004)

[ERROR] testObtainCertificateWithKeySize(org.wildfly.extension.elytron.KeyStoresTestCase)  Time elapsed: 2.87 s  <<< FAILURE!
java.lang.AssertionError: 
{
    "outcome" : "failed",
    "failure-description" : "WFLYCTL0158: Operation handler failed: java.lang.RuntimeException: org.wildfly.security.x500.cert.acme.AcmeException: ELY10049: Unable to download certificate chain from ACME server",
    "rolled-back" : true
}
	at org.wildfly.extension.elytron.KeyStoresTestCase.assertSuccess(KeyStoresTestCase.java:170)
	at org.wildfly.extension.elytron.KeyStoresTestCase.obtainCertificate(KeyStoresTestCase.java:1043)
	at org.wildfly.extension.elytron.KeyStoresTestCase.testObtainCertificateWithKeySize(KeyStoresTestCase.java:990)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   KeyStoresTestCase.testObtainCertificateWithECPublicKey:1004->obtainCertificate:1043->assertSuccess:170 {
    "outcome" : "failed",
    "failure-description" : "WFLYCTL0158: Operation handler failed: java.lang.RuntimeException: org.wildfly.security.x500.cert.acme.AcmeException: ELY10049: Unable to download certificate chain from ACME server",
    "rolled-back" : true
}
[ERROR]   KeyStoresTestCase.testObtainCertificateWithKeySize:990->obtainCertificate:1043->assertSuccess:170 {
    "outcome" : "failed",
    "failure-description" : "WFLYCTL0158: Operation handler failed: java.lang.RuntimeException: org.wildfly.security.x500.cert.acme.AcmeException: ELY10049: Unable to download certificate chain from ACME server",
    "rolled-back" : true
}
[INFO] 
[ERROR] Tests run: 27, Failures: 2, Errors: 0, Skipped: 0
{noformat}

I'll file a new issue for the failure.


was (Author: pkremens):
[~fjuma] I'm able to compile the module now, but the test fails on IBM jdk with:
{noformat}
$ mvn test -Dtest=KeyStoresTestCase -pl elytron
...
[INFO] Running org.wildfly.extension.elytron.KeyStoresTestCase
[ERROR] Tests run: 27, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 23.836 s <<< FAILURE! - in org.wildfly.extension.elytron.KeyStoresTestCase
[ERROR] testObtainCertificateWithECPublicKey(org.wildfly.extension.elytron.KeyStoresTestCase)  Time elapsed: 2.263 s  <<< FAILURE!
java.lang.AssertionError: 
{
    "outcome" : "failed",
    "failure-description" : "WFLYCTL0158: Operation handler failed: java.lang.RuntimeException: org.wildfly.security.x500.cert.acme.AcmeException: ELY10049: Unable to download certificate chain from ACME server",
    "rolled-back" : true
}
	at org.wildfly.extension.elytron.KeyStoresTestCase.assertSuccess(KeyStoresTestCase.java:170)
	at org.wildfly.extension.elytron.KeyStoresTestCase.obtainCertificate(KeyStoresTestCase.java:1043)
	at org.wildfly.extension.elytron.KeyStoresTestCase.testObtainCertificateWithECPublicKey(KeyStoresTestCase.java:1004)

[ERROR] testObtainCertificateWithKeySize(org.wildfly.extension.elytron.KeyStoresTestCase)  Time elapsed: 2.87 s  <<< FAILURE!
java.lang.AssertionError: 
{
    "outcome" : "failed",
    "failure-description" : "WFLYCTL0158: Operation handler failed: java.lang.RuntimeException: org.wildfly.security.x500.cert.acme.AcmeException: ELY10049: Unable to download certificate chain from ACME server",
    "rolled-back" : true
}
	at org.wildfly.extension.elytron.KeyStoresTestCase.assertSuccess(KeyStoresTestCase.java:170)
	at org.wildfly.extension.elytron.KeyStoresTestCase.obtainCertificate(KeyStoresTestCase.java:1043)
	at org.wildfly.extension.elytron.KeyStoresTestCase.testObtainCertificateWithKeySize(KeyStoresTestCase.java:990)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   KeyStoresTestCase.testObtainCertificateWithECPublicKey:1004->obtainCertificate:1043->assertSuccess:170 {
    "outcome" : "failed",
    "failure-description" : "WFLYCTL0158: Operation handler failed: java.lang.RuntimeException: org.wildfly.security.x500.cert.acme.AcmeException: ELY10049: Unable to download certificate chain from ACME server",
    "rolled-back" : true
}
[ERROR]   KeyStoresTestCase.testObtainCertificateWithKeySize:990->obtainCertificate:1043->assertSuccess:170 {
    "outcome" : "failed",
    "failure-description" : "WFLYCTL0158: Operation handler failed: java.lang.RuntimeException: org.wildfly.security.x500.cert.acme.AcmeException: ELY10049: Unable to download certificate chain from ACME server",
    "rolled-back" : true
}
[INFO] 
[ERROR] Tests run: 27, Failures: 2, Errors: 0, Skipped: 0
{noformat}

> Elytron module compilation failure due to "package sun.security.ec does not exist" on IBM jdk
> ---------------------------------------------------------------------------------------------
>
>                 Key: WFCORE-3993
>                 URL: https://issues.jboss.org/browse/WFCORE-3993
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Security
>         Environment: {noformat}
> $ java -version
> java version "1.8.0_171"
> Java(TM) SE Runtime Environment (build 8.0.5.17 - pxa6480sr5fp17-20180627_01(SR5 FP17))
> IBM J9 VM (build 2.9, JRE 1.8.0 Linux amd64-64-Bit Compressed References 20180626_390413 (JIT enabled, AOT enabled)
> OpenJ9   - 5cdc604
> OMR      - a24bc01
> IBM      - 21870d6)
> JCL - 20180619_01 based on Oracle jdk8u171-b11
> $ git rev-parse --short HEAD
> cb10de0cba
> {noformat}
>            Reporter: Petr Kremensky
>            Assignee: Farah Juma
>             Fix For: 6.0.0.Alpha6
>
>
> Compilation of Elytron module of wildfly-core on IBM jdk fails.
> *reproduce*
> {noformat}
> mvn install -pl elytron
> ...
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:testCompile (default-testCompile) on project wildfly-elytron-integration: Compilation failure
> [ERROR] /home/pkremens/devel/wildfly-core/elytron/src/test/java/org/wildfly/extension/elytron/KeyStoresTestCase.java:[87,23] package sun.security.ec does not exist
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list