Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-4711

KeyStoreException: Cannot store non-PrivateKeys

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • RHDG 8.2 CR1, RHDG 8.2.2 GA
    • None
    • False
    • False
    • Impediment
    • Undefined

      Test: org.infinispan.server.configuration.ServerConfigurationParserTest

      java.lang.RuntimeException: org.wildfly.security.credential.store.CredentialStoreException: ELY09508: Cannot write credential to store
      	at org.infinispan.server.configuration.ServerConfigurationParserTest.addCredential(ServerConfigurationParserTest.java:468)
      	at org.infinispan.server.configuration.ServerConfigurationParserTest.createCredentialStore(ServerConfigurationParserTest.java:496)
      	at org.infinispan.server.configuration.ServerConfigurationParserTest.setUp(ServerConfigurationParserTest.java:65)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:61)
      	at org.junit.internal.runners.statements.RunBefores.invokeMethod(RunBefores.java:33)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
      	at org.infinispan.commons.test.junit.JUnitThreadTrackerRule$1.evaluate(JUnitThreadTrackerRule.java:26)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306)
      	at org.junit.runners.ParentRunner.run(ParentRunner.java:413)
      	at org.junit.runners.Suite.runChild(Suite.java:128)
      	at org.junit.runners.Suite.runChild(Suite.java:27)
      	at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
      	at org.apache.maven.surefire.junitcore.pc.Scheduler$1.run(Scheduler.java:405)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: org.wildfly.security.credential.store.CredentialStoreException: ELY09508: Cannot write credential to store
      	at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:412)
      	at org.infinispan.server.configuration.ServerConfigurationParserTest.addCredential(ServerConfigurationParserTest.java:465)
      	... 24 more
      Caused by: java.security.KeyStoreException: Cannot store non-PrivateKeys
      	at sun.security.provider.JavaKeyStore.engineSetKeyEntry(JavaKeyStore.java:263)
      	at sun.security.provider.JavaKeyStore$JKS.engineSetKeyEntry(JavaKeyStore.java:57)
      	at java.security.KeyStoreSpi.engineSetEntry(KeyStoreSpi.java:550)
      	at sun.security.provider.KeyStoreDelegator.engineSetEntry(KeyStoreDelegator.java:179)
      	at sun.security.provider.JavaKeyStore$DualFormatJKS.engineSetEntry(JavaKeyStore.java:71)
      	at java.security.KeyStore.setEntry(KeyStore.java:1557)
      	at org.wildfly.security.credential.store.impl.KeyStoreCredentialStore.store(KeyStoreCredentialStore.java:391)
      	... 25 more
      

              ttarrant@redhat.com Tristan Tarrant
              dlovison@redhat.com Diego Lovison
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: