java.security.InvalidAlgorithmParameterException: no IV set when one expected

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 GitHub by Doplgangr
, 10 months ago
no IV set when one expected
java.security.InvalidAlgorithmParameterException: no IV set when one expected
at javax.crypto.Cipher.init(Cipher.java:616)
at javax.crypto.Cipher.init(Cipher.java:566)
at com.doplgangr.secrecy.FileSystem.Encryption.AES_Crypter.(AES_Crypter.java:119)
at com.doplgangr.secrecy.FileSystem.Encryption.AES_CTR_Crypter.(AES_CTR_Crypter.java:30)
at com.doplgangr.secrecy.FileSystem.Encryption.Vault.(Vault.java:64)
at com.doplgangr.secrecy.FileSystem.Encryption.VaultHolder.createAndRetrieveVault(VaultHolder.java:34)
at com.doplgangr.secrecy.Jobs.InitializeVaultJob.onRun(InitializeVaultJob.java:29)
at com.path.android.jobqueue.BaseJob.safeRun(BaseJob.java:108)
at com.path.android.jobqueue.JobHolder.safeRun(JobHolder.java:60)
at com.path.android.jobqueue.executor.JobConsumerExecutor$JobConsumer.run(JobConsumerExecutor.java:201)
at java.lang.Thread.run(Thread.java:856)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

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