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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web6

  • via Unknown by vegaasen,
  • via Unknown by user651347,
  • Stack trace

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

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.