Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-5328

Fix ExpressionResolutionTestCase that is failing on IBM JDK8

    XMLWordPrintable

Details

    • Hide
      1. Configure IBM JDK8 to be used in both JAVA_HOME & PATH environment variables
        cd wildfly-core/elytron
        mvn clean test -Dtest=ExpressionResolutionTestCase
      Show
      Configure IBM JDK8 to be used in both JAVA_HOME & PATH environment variables cd wildfly-core/elytron mvn clean test -Dtest=ExpressionResolutionTestCase
    • Undefined

    Description

        <testcase name="testPreConfiguredHierarchy" classname="org.wildfly.extension.elytron.ExpressionResolutionTestCase" time="0.043">
          <failure message="{&#10;    &quot;outcome&quot; : &quot;failed&quot;,&#10;    &quot;failure-description&quot; : &quot;WFLYELY00926: Unable to initialize the credential store.&quot;,&#10;    &quot;rolled-back&quot; : true&#10;}" type="java.lang.AssertionError">java.lang.AssertionError: 
      {
          "outcome" : "failed",
          "failure-description" : "WFLYELY00926: Unable to initialize the credential store.",
          "rolled-back" : true
      }
      	at org.wildfly.extension.elytron.ExpressionResolutionTestCase.assertSuccess(ExpressionResolutionTestCase.java:255)
      	at org.wildfly.extension.elytron.ExpressionResolutionTestCase.testExpectedAliases(ExpressionResolutionTestCase.java:115)
      	at org.wildfly.extension.elytron.ExpressionResolutionTestCase.testPreConfiguredHierarchy(ExpressionResolutionTestCase.java:101)
      </failure>
          <system-out><![CDATA[Mar 05, 2021 11:52:28 AM org.jboss.as.controller.AttributeDefinition validateAndSet
      INFO: WFLYCTL0028: Attribute 'location' in the resource at address '/subsystem=elytron/credential-store=CredentialStoreOne' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
      Mar 05, 2021 11:52:28 AM org.jboss.as.controller.AttributeDefinition validateAndSet
      INFO: WFLYCTL0028: Attribute 'location' in the resource at address '/subsystem=elytron/credential-store=CredentialStoreTwo' is deprecated, and may be removed in a future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
      Mar 05, 2021 11:52:28 AM org.jboss.as.controller.AbstractOperationContext executeStep
      ERROR: WFLYCTL0013: Operation ("add") failed - address: ([
          ("subsystem" => "elytron"),
          ("key-store" => "KeyStoreTwo")
      ]) - failure description: "WFLYELY00926: Unable to initialize the credential store."
      Mar 05, 2021 11:52:28 AM org.jboss.msc.service.ServiceControllerImpl startFailed
      ERROR: MSC000001: Failed to start service org.wildfly.security.credential-store.CredentialStoreTwo
      org.jboss.msc.service.StartException in service org.wildfly.security.credential-store.CredentialStoreTwo: WFLYELY00004: Unable to start the service.
      	at org.wildfly.extension.elytron.CredentialStoreResourceDefinition$CredentialStoreDoohickey$1.get(CredentialStoreResourceDefinition.java:535)
      	at org.wildfly.extension.elytron.CredentialStoreResourceDefinition$CredentialStoreDoohickey$1.get(CredentialStoreResourceDefinition.java:492)
      	at org.wildfly.extension.elytron.ElytronDoohickey.get(ElytronDoohickey.java:106)
      	at org.wildfly.extension.elytron.DoohickeyAddHandler$$Lambda$184.000000008412A3D0.get(Unknown Source)
      	at org.wildfly.extension.elytron.TrivialService.start(TrivialService.java:61)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1739)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1701)
      	at org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1559)
      	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
      	at java.lang.Thread.run(Thread.java:785)
      Caused by: org.wildfly.security.credential.store.CredentialStoreException: ELY09514: Unable to initialize credential store
      	at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.load(KeyStoreCredentialStore.java:883)
      	at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.initialize(KeyStoreCredentialStore.java:223)
      	at org.wildfly.security.credential.store.CredentialStore.initialize(CredentialStore.java:160)
      	at org.wildfly.extension.elytron.CredentialStoreResourceDefinition$CredentialStoreDoohickey$1$1.run(CredentialStoreResourceDefinition.java:527)
      	at org.wildfly.extension.elytron.CredentialStoreResourceDefinition$CredentialStoreDoohickey$1.get(CredentialStoreResourceDefinition.java:531)
      	... 12 more
      Caused by: java.io.IOException: com.sun.crypto.provider.SealedObjectForKeyProtector
      	at com.ibm.crypto.provider.JceKeyStore.engineLoad(Unknown Source)
      	at java.security.KeyStore.load(KeyStore.java:1456)
      	at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.load(KeyStoreCredentialStore.java:871)
      	... 16 more
      
      Mar 05, 2021 11:52:28 AM org.jboss.as.controller.AbstractOperationContext executeStep
      ERROR: WFLYCTL0013: Operation ("add") failed - address: ([
          ("subsystem" => "elytron"),
          ("credential-store" => "CredentialStoreTwo")
      ]) - failure description: {"WFLYCTL0080: Failed services" => {"org.wildfly.security.credential-store.CredentialStoreTwo" => "WFLYELY00004: Unable to start the service.
          Caused by: org.wildfly.security.credential.store.CredentialStoreException: ELY09514: Unable to initialize credential store
          Caused by: java.io.IOException: com.sun.crypto.provider.SealedObjectForKeyProtector"}}
      Mar 05, 2021 11:52:28 AM org.jboss.as.controller.ContainerStateMonitor logContainerStateChangesAndReset
      INFO: WFLYCTL0183: Service status report
      WFLYCTL0186:   Services which failed to start:      service org.wildfly.security.credential-store.CredentialStoreTwo: WFLYELY00004: Unable to start the service.
      WFLYCTL0448: 1 additional services are down due to their dependencies being missing or failed
      Mar 05, 2021 11:52:28 AM org.jboss.as.controller.AbstractOperationContext executeStep
      ERROR: WFLYCTL0013: Operation ("read-aliases") failed - address: ([
          ("subsystem" => "elytron"),
          ("credential-store" => "CredentialStoreTwo")
      ]) - failure description: "WFLYELY00926: Unable to initialize the credential store."
      

       

      Attachments

        Issue Links

          Activity

            People

              darran.lofthouse@redhat.com Darran Lofthouse
              ropalka Richard Opalka
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: