javax.crypto.BadPaddingException

Given final block not properly padded

Solutions on the web543

  • via Coderanch by Ram N Sharma, 7 months ago
    Given final block not properly padded
  • via Coderanch by john price, 11 months ago
    Given final block not properly padded
  • via GitHub by guneshpatil
    , 1 year ago
    Given final block not properly padded
  • Stack trace

    • javax.crypto.BadPaddingException: Given final block not properly padded at com.sun.crypto.provider.SunJCE_h.b(DashoA12275) at com.sun.crypto.provider.SunJCE_h.b(DashoA12275) at com.sun.crypto.provider.SunJCE_af.b(DashoA12275) at com.sun.crypto.provider.PBEWithMD5AndDESCipher.engineDoFinal(DashoA12275) at javax.crypto.Cipher.doFinal(DashoA12275) at com.iplanet.services.util.JCEEncryption.pbeDecrypt(JCEEncryption.java:277) at com.iplanet.services.util.JCEEncryption.decrypt(JCEEncryption.java:137) at com.iplanet.services.util.Crypt.decode(Crypt.java:343) at com.iplanet.services.util.Crypt.decryptLocal(Crypt.java:238) at com.sun.identity.agents.arch.AM70Crypt.decrypt(AM70Crypt.java:57) at com.sun.identity.agents.filter.RedirectCheckResultHandler.getRedirectAttemptCounterValue(RedirectCheckResultHandler.java:231) at com.sun.identity.agents.filter.RedirectCheckResultHandler.process(RedirectCheckResultHandler.java:104) at com.sun.identity.agents.filter.AmFilter.processResultHandlers(AmFilter.java:230) at com.sun.identity.agents.filter.AmFilter.isAccessAllowed(AmFilter.java:163) at com.sun.identity.agents.filter.AmAgentBaseFilter.doFilter(AmAgentBaseFilter.java:70) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3242) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

    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

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.