码迷,mamicode.com
首页 > 编程语言 > 详细

java.security.NoSuchAlgorithmException: AES KeyGenerator not available

时间:2017-07-23 11:30:26      阅读:281      评论:0      收藏:0      [点我收藏+]

标签:ram   available   ons   efault   blog   eclipse   ini   service   util   

异常信息

Caused by: Java.lang.IllegalStateException: Unable to acquire AES algorithm.  This is required to function.
at org.apache.shiro.crypto.AbstractSymmetricCipherService.generateNewKey(AbstractSymmetricCipherService.java:59)
at org.apache.shiro.crypto.AbstractSymmetricCipherService.generateNewKey(AbstractSymmetricCipherService.java:43)
at org.apache.shiro.mgt.AbstractRememberMeManager.<init>(AbstractRememberMeManager.java:99)
at org.apache.shiro.web.mgt.CookieRememberMeManager.<init>(CookieRememberMeManager.java:87)
at org.apache.shiro.web.mgt.DefaultWebSecurityManager.<init>(DefaultWebSecurityManager.java:75)
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)
... 34 more
Caused by: java.security.NoSuchAlgorithmException: AES KeyGenerator not available
at javax.crypto.KeyGenerator.<init>(KeyGenerator.java:158)
at javax.crypto.KeyGenerator.getInstance(KeyGenerator.java:207)
at org.apache.shiro.crypto.AbstractSymmetricCipherService.generateNewKey(AbstractSymmetricCipherService.java:56)
... 43 more

 

解决方法:

修改项目 jdk指向路径

由原先的C:\Program Files\Java\jdk1.7.0_67  改为  C:\Program Files\Java\jre7  ,重启 eclipse  完成

 

java.security.NoSuchAlgorithmException: AES KeyGenerator not available

标签:ram   available   ons   efault   blog   eclipse   ini   service   util   

原文地址:http://www.cnblogs.com/xiluhua/p/7223753.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!