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 | Alex Stanciu | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    db:: 5.31::Given final block not properly not padded.....when given wrong password.... j9

    hivmr.com | 12 months ago
    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*..)
  2. 0

    db:: 7.26::BadPaddingException: Given final block not properly padded j9

    hivmr.com | 12 months ago
    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*..)
  3. 0

    OAM 11g - Can anyone decipher this error message?

    Oracle Community | 6 years ago | Alex Stanciu
    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*..)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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 oracle.security.am.common.nap.util.decryptor.CookieDecryptor.doAESDecryption()
    2. oracle.security.am
      AMServlet.doGet
      1. oracle.security.am.common.nap.util.decryptor.CookieDecryptor.doAESDecryption(CookieDecryptor.java:233)
      2. oracle.security.am.proxy.oam.pbl.plugin.OAMProxyEngine.getSSOToken(OAMProxyEngine.java:577)
      3. oracle.security.am.proxy.oam.pbl.plugin.OAMProxyEngine.handleOAMLoginRequest(OAMProxyEngine.java:259)
      4. oracle.security.am.engines.enginecontroller.OAMEngineController.processEvent(OAMEngineController.java:127)
      5. oracle.security.am.controller.MasterController.processEvent(MasterController.java:354)
      6. oracle.security.am.controller.MasterController.processRequest(MasterController.java:517)
      7. oracle.security.am.controller.MasterController.process(MasterController.java:457)
      8. oracle.security.am.pbl.PBLFlowManager.delegateToMasterController(PBLFlowManager.java:209)
      9. oracle.security.am.pbl.PBLFlowManager.handleBaseEvent(PBLFlowManager.java:147)
      10. oracle.security.am.pbl.PBLFlowManager.processRequest(PBLFlowManager.java:107)
      11. oracle.security.am.pbl.transport.http.AMServlet.handleRequest(AMServlet.java:168)
      12. oracle.security.am.pbl.transport.http.AMServlet.doPost(AMServlet.java:133)
      13. oracle.security.am.pbl.transport.http.AMServlet.doGet(AMServlet.java:673)
      13 frames
    3. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      2 frames
    4. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      2. weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      3. weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
      4. weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      5. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      5 frames
    5. oracle.security.jps
      JpsAbsFilter$1.run
      1. oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
      1 frame
    6. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    7. oracle.security.jps
      JpsFilter.doFilter
      1. oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
      2. oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
      3. oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
      4. oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
      5. oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
      5 frames
    8. Atmosphere weblogic
      FilterChainImpl.doFilter
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      1 frame
    9. oracle.dms.servlet
      DMSServletFilter.doFilter
      1. oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
      1 frame
    10. Atmosphere weblogic
      WebAppServletContext$ServletInvocationAction.run
      1. weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
      2. weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
      3. weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
      3 frames
    11. weblogic.security.acl
      AuthenticatedSubject.doAs
      1. weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      1 frame
    12. weblogic.security.service
      SecurityManager.runAs
      1. weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      1 frame
    13. Atmosphere weblogic
      ServletRequestImpl.run
      1. weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
      2. weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
      3. weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
      3 frames
    14. weblogic.work
      ExecuteThread.run
      1. weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      2. weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      2 frames