Getting Error "WFLYCTL0013: Operation failed ... java.lang.SecurityException: WFLYSRV0228: Security Exception ... Caused by: java.lang.IllegalArgumentException: Null input buffer" in JBoss EAP ?

Solution Verified - Updated -

Issue

  • Getting the following ERROR:
2018-11-27 12:20:40,760 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("core-service" => "vault")]): java.lang.SecurityException: WFLYSRV0228: Security Exception
    at org.jboss.as.server.services.security.RuntimeVaultReader.retrieveFromVault(RuntimeVaultReader.java:118)
    at org.jboss.as.server.RuntimeExpressionResolver.resolvePluggableExpression(RuntimeExpressionResolver.java:45)
    at org.jboss.as.controller.ExpressionResolverImpl.resolveExpressionString(ExpressionResolverImpl.java:331)
    at org.jboss.as.controller.ExpressionResolverImpl.parseAndResolve(ExpressionResolverImpl.java:240)
    at org.jboss.as.controller.ExpressionResolverImpl.resolveExpressionStringRecursively(ExpressionResolverImpl.java:142)
    at org.jboss.as.controller.ExpressionResolverImpl.resolveExpressionsRecursively(ExpressionResolverImpl.java:84)
    at org.jboss.as.controller.ExpressionResolverImpl.resolveExpressions(ExpressionResolverImpl.java:66)
    at org.jboss.as.controller.ModelControllerImpl.resolveExpressions(ModelControllerImpl.java:890)
    at org.jboss.as.controller.OperationContextImpl.resolveExpressions(OperationContextImpl.java:1211)
    at org.jboss.as.controller.AttributeDefinition$1.resolveExpressions(AttributeDefinition.java:516)
    at org.jboss.as.controller.AttributeDefinition.resolveValue(AttributeDefinition.java:580)
    at org.jboss.as.controller.AttributeDefinition.resolveModelAttribute(AttributeDefinition.java:539)
    at org.jboss.as.controller.AttributeDefinition.resolveModelAttribute(AttributeDefinition.java:513)
    at org.jboss.as.server.operations.SystemPropertyAddHandler$DeferredProcessor.processDeferredProperties(SystemPropertyAddHandler.java:179)
    at org.jboss.as.server.services.security.VaultAddHandler.performRuntime(VaultAddHandler.java:93)
    at org.jboss.as.controller.AbstractAddStepHandler.performRuntime(AbstractAddStepHandler.java:337)
    at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:151)
    at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:890)
    at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:659)
    at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:370)
    at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1344)
    at org.jboss.as.controller.ModelControllerImpl.boot(ModelControllerImpl.java:485)
    at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:387)
    at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:349)
    at org.jboss.as.server.ServerService.boot(ServerService.java:392)
    at org.jboss.as.server.ServerService.boot(ServerService.java:365)
    at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.jboss.security.vault.SecurityVaultException: java.lang.IllegalArgumentException: Null input buffer
    at org.picketbox.plugins.vault.PicketBoxSecurityVault.retrieve(PicketBoxSecurityVault.java:297)
    at org.jboss.as.server.services.security.RuntimeVaultReader.getValue(RuntimeVaultReader.java:146)
    at org.jboss.as.server.services.security.RuntimeVaultReader.getValueAsString(RuntimeVaultReader.java:126)
    at org.jboss.as.server.services.security.RuntimeVaultReader.retrieveFromVault(RuntimeVaultReader.java:116)
    ... 27 more
Caused by: java.lang.IllegalArgumentException: Null input buffer
    at javax.crypto.Cipher.doFinal(Cipher.java:2161)
    at org.picketbox.util.EncryptionUtil.decrypt(EncryptionUtil.java:134)
    at org.picketbox.plugins.vault.PicketBoxSecurityVault.retrieve(PicketBoxSecurityVault.java:293)

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7
  • Attempting to use Vault feature to encrypt datasource passwords and other system properties with vault protected password

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content