java.security.InvalidKeyException: Invalid key length: 162 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 Coderanch by sachin kataria, 1 year ago
via Oracle Community by 843811, 1 year ago
via Oracle Community by 843810, 1 year ago
Invalid key length: 32 bytes
via Coderanch by Rubal Sidhu, 11 months ago
Invalid key length: 335 bytes
via Oracle Community by 843810, 1 year ago
Invalid key length: 162 bytes
via Oracle Community by 843811, 1 year ago
Invalid key length: 16 bytes **********sessionKey ************
java.security.InvalidKeyException: Invalid key length: 162 bytes
at com.sun.crypto.provider.DESedeCipher.engineGetKeySize(DashoA6275)
at javax.crypto.Cipher.init(DashoA6275)
at undefined.XmlEncryption.getEncryptedData(XmlEncryption.java:147)
at undefined.XmlEncryption.encryptCompleteXmlFile(XmlEncryption.java:123)
at undefined.demoXmlEncApp.simulateBookSellersEnd(demoXmlEncApp.java:72)
at undefined.demoXmlEncApp.main(demoXmlEncApp.java:29)

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.

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