javax.crypto.IllegalBlockSizeException: Data must not be longer than 1013 bytes

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 Stack Overflow by tmf1234
, 1 year ago
via Stack Overflow by Rajat Nigam
, 2 years ago
Data must not be longer than 256 bytes
via Stack Overflow by Intektor
, 4 months ago
Data must not be longer than 245 bytes
via Stack Overflow by user8783104
, 1 month ago
Data must not be longer than 128 bytes
via Stack Overflow by Flanker
, 1 year ago
Data must not be longer than 128 bytes
via Stack Overflow by Unknown author, 2 years ago
javax.crypto.IllegalBlockSizeException: Data must not be longer than 1013 bytes
at com.sun.crypto.provider.RSACipher.doFinal(RSACipher.java:344)
at com.sun.crypto.provider.RSACipher.engineDoFinal(RSACipher.java:389)
at javax.crypto.Cipher.doFinal(Cipher.java:2165)
at undefined.main.main(main.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

Users with the same issue

5 times, 2 months ago
Once, 3 months ago
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 3 months ago

Write tip

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