Decryption Error javax.crypto.BadPaddingException: Given final block not properly padded (Doc ID 1944172.1)

Last updated on DECEMBER 12, 2016

Applies to:

Oracle Knowledge - Version 8.5.1 and later
Information in this document applies to any platform.

Symptoms

Symptom 1) When attempting to crawl IM content the job fails or there is a failure on the runtime

The following stack trace is found:

[11712895 Consumer-default-3(3003311)] Event(Code=PREPARE_REQUEST, id=#397B1241I3003311P-1) ended at 3/12/15 4:12 AM after 0ms: Preparing request 234598 of type CCAAddSolution for processing.
[11712896 Consumer-default-3(3003312)] Event(Code=PROCESS_REQUEST_HANDLER, id=#397B1241I3003312P-1) started at 3/12/15 4:12 AM: Executing handler CCA for request 234598 of type CCAAddSolution.
[11712896 Consumer-default-3 (3003313)] Exception retrieving CCA handler from config javax.crypto.BadPaddingException: Given final block not properly padded
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.SunJCE_f.b(DashoA13*..)
at com.sun.crypto.provider.AESCipher.engineDoFinal(DashoA13*..)
at javax.crypto.Cipher.doFinal(DashoA13*..)
at com.inquira.infra.security.OKResourceEncryption.decryptResource(OKResourceEncryption.java:183)
at com.inquira.config.controllers.PasswordController.get(PasswordController.java:138)
at com.inquira.config.sources.Construct.execute(Construct.java:91)
at com.inquira.config.Config.get(Config.java:274)
at com.inquira.request.cca.CCAController.getSoutionHandler(CCAController.java:230)
at com.inquira.request.cca.CCAHandler.handleAddSolution(CCAHandler.java:348)
at com.inquira.request.cca.CCAHandler.handle(CCAHandler.java:115)
at com.inquira.infra.requestprocessor.Processor.handlerLoop(Processor.java:541)
at com.inquira.infra.requestprocessor.Processor.process(Processor.java:156)
at com.inquira.infra.requestprocessor.Processor.process(Processor.java:90)
at com.inquira.infra.gateway.RequestConsumer.run(RequestConsumer.java:101)
Causing: com.inquira.infra.security.OKEncryptionException: [Consumer-default-3 @ Thu Mar 12 11:12:06 UTC 2015] Unable to decrypt string
at com.inquira.infra.security.OKResourceEncryption.decryptResource(OKResourceEncryption.java:186)
...10 more
Causing: com.inquira.config.ConfigControllerException: [Consumer-default-3 @ Thu Mar 12 11:12:06 UTC 2015] (CONFIG_CONTROLLER_EXCEPTION CONFIG_VALUE_DECRYPT_FAILURE)
at com.inquira.config.controllers.PasswordController.get(PasswordController.java:144)
...9 more
Causing: com.inquira.request.HandlerException: [Consumer-default-3 @ Thu Mar 12 11:12:06 UTC 2015] ([Consumer-default-3 @ Thu Mar 12 11:12:06 UTC 2015] (CONFIG_CONTROLLER_EXCEPTION CONFIG_VALUE_DECRYPT_FAILURE))
at com.inquira.request.cca.CCAController.getSoutionHandler(CCAController.java:251)
...6 more

Symptom 2) Navigating to Collections and/or Job tabs results in empty list with the following stack trace
 

com.inquira.config.ConfigControllerException: [http-bio-8222-exec-4 @ Mon Dec 12 14:39:58 EST 2016 - LanguageDevelopment] (CONFIG_CONTROLLER_EXCEPTION CONFIG_VALUE_DECRYPT_FAILURE)
at com.inquira.config.controllers.PasswordController.get(PasswordController.java:144)
at com.inquira.config.sources.Construct.execute(Construct.java:91)
at com.inquira.config.Config.get(Config.java:274)
at com.inquira.content.CollectionUtils.getConfiguredCollectionsMap(CollectionUtils.java:71)
at com.inquira.bwb.admin.collection.CollectionList.getDetailsForAllCollections(CollectionList.java:51)
at com.inquira.bwb.admin.collection.CollectionListControl._getAllCollectionDetails(CollectionListControl.java:148)
at com.inquira.bwb.admin.collection.CollectionListControl.pageBeginRender(CollectionListControl.java:136)
at org.apache.tapestry.AbstractPage.firePageBeginRender(AbstractPage.java:478)
at org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:268)
at org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:366)
...
Caused by: com.inquira.infra.security.OKEncryptionException: [http-bio-8222-exec-4 @ Mon Dec 12 14:39:58 EST 2016] Unable to decrypt string
at com.inquira.infra.security.OKResourceEncryption.decryptResource(OKResourceEncryption.java:181)
at com.inquira.config.controllers.PasswordController.get(PasswordController.java:138)
... 54 more
Caused by: javax.crypto.BadPaddingException: Given final block not properly padded

Cause

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 hundreds of Community platforms