javax.crypto.BadPaddingException: Given final block not properly padded

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 854794, 1 year ago
Given final block not properly padded
via Oracle Community by 843810, 1 year ago
Given final block not properly padded
via developpez.net by Unknown author, 1 year ago
Given final block not properly padded
via salesforce.com by Unknown author, 1 year ago
via Stack Overflow by Jeff
, 2 years ago
via jboss.org by Unknown author, 2 years ago
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 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.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)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.