首页 > 代码库 > java.security.NoSuchAlgorithmException: AES KeyGenerator not available
java.security.NoSuchAlgorithmException: AES KeyGenerator not available
异常信息
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 moreCaused 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: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
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。