My Oracle Support Banner

Java Exception: Invalid Secret Key Format (Doc ID 2400414.1)

Last updated on MAY 28, 2018

Applies to:

Java SE JDK and JRE - Version 6 to 9
Information in this document applies to any platform.

Symptoms

 Java exceptions:

2018.04.26 10:27:48 099 -0400 ERROR [management-operation] JBAS014612: Operation ("add") failed - address: ([("core-service" => "vault")]): org.jboss.as.server.services.security.VaultReaderException: org.jboss.security.vault.SecurityVaultException: java.lang.RuntimeException: PBOX000140: Unable to get keystore (/opt/nsp/nfmp/server/nms/bin/../../nms/jboss-eap/standalone/../sam-specific/configuration-template/vault/vault.keystore)
at org.jboss.as.security.vault.RuntimeVaultReader.createVault(RuntimeVaultReader.java:90)
at org.jboss.as.server.services.security.VaultAddHandler.performRuntime(VaultAddHandler.java:87)
at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:75)
at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:710)
at org.jboss.as.controller.AbstractOperationContext.doCompleteStep(AbstractOperationContext.java:545)
at org.jboss.as.controller.AbstractOperationContext.completeStepInternal(AbstractOperationContext.java:338)
at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:314)
at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1152)
at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:427)
at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:303)
at org.jboss.as.server.ServerService.boot(ServerService.java:372)
at org.jboss.as.server.ServerService.boot(ServerService.java:343)
at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:265)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.jboss.security.vault.SecurityVaultException: java.lang.RuntimeException: PBOX000140: Unable to get keystore (/opt/nsp/nfmp/server/nms/bin/../../nms/jboss-eap/standalone/../sam-specific/configuration-template/vault/vault.keystore)
at org.picketbox.plugins.vault.PicketBoxSecurityVault.init(PicketBoxSecurityVault.java:210)
at org.jboss.as.security.vault.RuntimeVaultReader.createVault(RuntimeVaultReader.java:88)
... 13 more
Caused by: java.lang.RuntimeException: PBOX000140: Unable to get keystore (/opt/nsp/nfmp/server/nms/bin/../../nms/jboss-eap/standalone/../sam-specific/configuration-template/vault/vault.keystore)
at org.picketbox.plugins.vault.PicketBoxSecurityVault.getKeyStore(PicketBoxSecurityVault.java:691)
at org.picketbox.plugins.vault.PicketBoxSecurityVault.init(PicketBoxSecurityVault.java:205)
... 14 more
Caused by: java.io.IOException: Invalid secret key format
at com.sun.crypto.provider.JceKeyStore.engineLoad(JceKeyStore.java:856)
at java.security.KeyStore.load(KeyStore.java:1445)
at org.picketbox.util.KeyStoreUtil.getKeyStore(KeyStoreUtil.java:201)
at org.picketbox.util.KeyStoreUtil.getKeyStore(KeyStoreUtil.java:151)
at org.picketbox.plugins.vault.PicketBoxSecurityVault.getKeyStore(PicketBoxSecurityVault.java:688)
... 15 more

Changes

 After upgrading java to 8u172 b31 from 8u162 b12, customer is getting such exceptions.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.