Java.security.NoSuchAlgorithmException:AES Keygenerator Not available

Source: Internet
Author: User

Exception information

caused By:Java.lang.IllegalStateException:Unable to acquire AES algorithm. This isrequired to function.at Org.apache.shiro.crypto.AbstractSymmetricCipherService.generateNewKey ( Abstractsymmetriccipherservice.java: -) at Org.apache.shiro.crypto.AbstractSymmetricCipherService.generateNewKey ( Abstractsymmetriccipherservice.java: +) at Org.apache.shiro.mgt.AbstractRememberMeManager.<init> (Abstractremembermemanager.java: About) at Org.apache.shiro.web.mgt.CookieRememberMeManager.<init> (Cookieremembermemanager.java: the) at Org.apache.shiro.web.mgt.DefaultWebSecurityManager.<init> (Defaultwebsecuritymanager.java: the) at Sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method) at Sun.reflect.NativeConstructorAccessorImpl.newInstance (Unknown Source) at Sun.reflect.DelegatingConstructorAccessorImpl.newInstance (Unknown Source) at Java.lang.reflect.Constructor.newInstance (Unknown Source) at Org.springframework.beans.BeanUtils.instantiateClass (Beanutils.java:147)...  themorecaused By:java.security.NoSuchAlgorithmException:AES keygenerator not availableat javax.crypto.KeyGenerator .<init> (Keygenerator.java:158) at Javax.crypto.KeyGenerator.getInstance (Keygenerator.java:207) at Org.apache.shiro.crypto.AbstractSymmetricCipherService.generateNewKey ( Abstractsymmetriccipherservice.java: About)...  +More

Workaround:

Modify the project JDK to point the path from the original C:\Program files\java\jdk1. 7. 0_67  Change  to C:\Program files\java\jre7  , restart Eclipse  complete

Java.security.NoSuchAlgorithmException:AES Keygenerator Not available

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.