java.io.IOException

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


Solutions on the web6528

Solution icon of github
via GitHub by jlehenbauer
, 9 months ago
javax.crypto.BadPaddingException: Given final block not properly padded

Solution icon of openjdk
via JDK Bug System by Webbug Group, 8 months ago
javax.crypto.BadPaddingException: Given final block not properly padded

Solution icon of openjdk
via JDK Bug System by Webbug Group, 1 year ago
javax.crypto.BadPaddingException: Given final block not properly padded

Solution icon of sourceforge
javax.crypto.BadPaddingException: Given final block not properly padded

Solution icon of stackoverflow
javax.crypto.BadPaddingException: Given final block not properly padded

Solution icon of web
javax.crypto.BadPaddingException: Given final block not properly padded

Solution icon of coderanch
via Coderanch by Mandar Khire, 1 year ago
javax.crypto.BadPaddingException: Given final block not properly padded

Solution icon of github
via GitHub by coadyg
, 7 months ago
javax.crypto.BadPaddingException: Given final block not properly padded

Solution icon of stackoverflow
javax.crypto.BadPaddingException: Given final block not properly padded

Solution icon of stackoverflow
via Stack Overflow by Jake
, 1 year ago
javax.crypto.BadPaddingException: Given final block not properly padded

Stack trace

  • java.io.IOException: javax.crypto.BadPaddingException: Given final block not properly padded at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:811) at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:676) at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:313) at javax.crypto.Cipher.doFinal(Cipher.java:1970) at javax.crypto.CipherInputStream.getMoreData(CipherInputStream.java:112) at javax.crypto.CipherInputStream.read(CipherInputStream.java:233) at javax.crypto.CipherInputStream.read(CipherInputStream.java:209) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1792) at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1769) at org.apache.commons.io.IOUtils.copy(IOUtils.java:1744) at org.apache.commons.io.IOUtils.toByteArray(IOUtils.java:462) at jenkins.security.DefaultConfidentialStore.load(DefaultConfidentialStore.java:106) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:230) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at jenkins.security.DefaultConfidentialStoreTest.roundtrip(DefaultConfidentialStoreTest.groovy:52)

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.