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*..)

Oracle Community | vegaasen | 2 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    OIM: AccessPolicies: tcCryptoException: decrypt failed

    Oracle Community | 2 years ago | vegaasen
    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*..)

    Root Cause Analysis

    1. 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.thortech.xl.crypto.tcDefaultDBEncryptionImpl.decrypt()
    2. com.thortech.xl
      PreparedStatementUtil.execute
      1. com.thortech.xl.crypto.tcDefaultDBEncryptionImpl.decrypt(tcDefaultDBEncryptionImpl.java:222)
      2. com.thortech.xl.crypto.tcCryptoUtil.decrypt(tcCryptoUtil.java:122)
      3. com.thortech.xl.crypto.tcCryptoUtil.decrypt(tcCryptoUtil.java:200)
      4. com.thortech.xl.dataobj.tcDataSet.decryptDataSet(tcDataSet.java:1468)
      5. com.thortech.xl.dataaccess.tcDataBase.readPartialPreparedStatement(tcDataBase.java:1403)
      6. com.thortech.xl.dataaccess.tcDataBase.readPreparedStatement(tcDataBase.java:1190)
      7. com.thortech.xl.dataobj.PreparedStatementUtil.execute(PreparedStatementUtil.java:63)
      7 frames
    3. oracle.iam.accesspolicy
      InitiatePolicyEvaluationAndProvisioning.execute
      1. oracle.iam.accesspolicy.impl.util.AccessPolicyUtil.getProvisionedDataForPolicBasedAccount(AccessPolicyUtil.java:296)
      2. oracle.iam.accesspolicy.impl.util.PolicyEvaluationUtil.getAccountsToModify(PolicyEvaluationUtil.java:1104)
      3. oracle.iam.accesspolicy.impl.util.PolicyEvaluationUtil.getAccountChanges(PolicyEvaluationUtil.java:513)
      4. oracle.iam.accesspolicy.impl.util.PolicyEvaluationUtil.determineAccountProfileChanges(PolicyEvaluationUtil.java:178)
      5. oracle.iam.accesspolicy.impl.AccessPolicyEngine.determineAccountProfileChanges(AccessPolicyEngine.java:78)
      6. oracle.iam.accesspolicy.impl.util.AccessPolicyUtil.evaluatePoliciesForUser(AccessPolicyUtil.java:393)
      7. oracle.iam.accesspolicy.impl.handlers.policyeval.InitiatePolicyEvaluationAndProvisioning.execute(InitiatePolicyEvaluationAndProvisioning.java:51)
      7 frames
    4. oracle.iam.platform
      MessageReceiver.onMessage
      1. oracle.iam.platform.kernel.impl.OrchProcessData.runPostProcessEvents(OrchProcessData.java:1490)
      2. oracle.iam.platform.kernel.impl.OrchProcessData.runEvents(OrchProcessData.java:896)
      3. oracle.iam.platform.kernel.impl.OrchProcessData.executeEvents(OrchProcessData.java:357)
      4. oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.resumeProcess(OrchestrationEngineImpl.java:948)
      5. oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.resumeProcess(OrchestrationEngineImpl.java:978)
      6. oracle.iam.platform.kernel.impl.OrhestrationAsyncTask.execute(OrhestrationAsyncTask.java:134)
      7. oracle.iam.platform.async.impl.TaskExecutor.executeUnmanagedTask(TaskExecutor.java:99)
      8. oracle.iam.platform.async.impl.TaskExecutor.execute(TaskExecutor.java:69)
      9. oracle.iam.platform.async.messaging.MessageReceiver.onMessage(MessageReceiver.java:68)
      9 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor2086.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3. java.lang.reflect.Method.invoke(Method.java:597)
      3 frames
    6. com.bea.core
      JdkDynamicAopProxy.invoke
      1. com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
      2. com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
      3. com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
      4. com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
      5. com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      6. com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
      7. com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
      8. com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
      9. com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      9 frames
    7. com.sun.proxy
      $Proxy477.onMessage
      1. com.sun.proxy.$Proxy477.onMessage(Unknown Source)
      1 frame
    8. weblogic.ejb.container
      MDListener.onMessage
      1. weblogic.ejb.container.internal.MDListener.execute(MDListener.java:583)
      2. weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:486)
      3. weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:388)
      3 frames
    9. weblogic.jms.client
      JMSSession$UseForRunnable.run
      1. weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4659)
      2. weblogic.jms.client.JMSSession.execute(JMSSession.java:4345)
      3. weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3821)
      4. weblogic.jms.client.JMSSession.access$000(JMSSession.java:115)
      5. weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5170)
      5 frames
    10. weblogic.work
      ExecuteThread.run
      1. weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:545)
      2. weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
      3. weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
      3 frames