NutzCN Logo
问答 shiro remeberMe
发布于 2896天前 作者 大鲨鱼 4191 次浏览 复制 上一个帖子 下一个帖子
标签:
[WARN ] 10:26:42.548 org.apache.shiro.mgt.AbstractRememberMeManager.onRememberedPrincipalFailure(AbstractRememberMeManager.java:449) - There was a failure while trying to retrieve remembered principals.  This could be due to a configuration problem or corrupted principals.  This could also be due to a recently changed encryption key, if you are using a shiro.ini file, this property would be 'securityManager.rememberMeManager.cipherKey' see: http://shiro.apache.org/web.html#Web-RememberMeServices. The remembered identity will be forgotten and not used for this request.
[WARN ] 10:26:42.549 org.apache.shiro.mgt.DefaultSecurityManager.getRememberedIdentity(DefaultSecurityManager.java:609) - Delegate RememberMeManager instance of type [org.apache.shiro.web.mgt.CookieRememberMeManager] threw an exception during getRememberedPrincipals().
org.apache.shiro.crypto.CryptoException: Unable to execute 'doFinal' with cipher instance [javax.crypto.Cipher@129ec4b8].
	at org.apache.shiro.crypto.JcaCipherService.crypt(JcaCipherService.java:462)
	at org.apache.shiro.crypto.JcaCipherService.crypt(JcaCipherService.java:445)
	at org.apache.shiro.crypto.JcaCipherService.decrypt(JcaCipherService.java:390)
	at org.apache.shiro.crypto.JcaCipherService.decrypt(JcaCipherService.java:382)
	at org.apache.shiro.mgt.AbstractRememberMeManager.decrypt(AbstractRememberMeManager.java:482)
	at org.apache.shiro.mgt.AbstractRememberMeManager.convertBytesToPrincipals(AbstractRememberMeManager.java:419)
	at org.apache.shiro.mgt.AbstractRememberMeManager.getRememberedPrincipals(AbstractRememberMeManager.java:386)
	at org.apache.shiro.mgt.DefaultSecurityManager.getRememberedIdentity(DefaultSecurityManager.java:604)
	at org.apache.shiro.mgt.DefaultSecurityManager.resolvePrincipals(DefaultSecurityManager.java:492)
	at org.apache.shiro.mgt.DefaultSecurityManager.createSubject(DefaultSecurityManager.java:342)
	at org.apache.shiro.subject.Subject$Builder.buildSubject(Subject.java:846)
	at org.apache.shiro.web.subject.WebSubject$Builder.buildWebSubject(WebSubject.java:148)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.createSubject(AbstractShiroFilter.java:292)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:359)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
	at org.eclipse.jetty.server.Server.handle(Server.java:523)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
	at java.lang.Thread.run(Thread.java:745)
Caused by: javax.crypto.BadPaddingException: Given final block not properly padded
	at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:966)
	at com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:824)
	at com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:436)
	at javax.crypto.Cipher.doFinal(Cipher.java:2165)
	at org.apache.shiro.crypto.JcaCipherService.crypt(JcaCipherService.java:459)
	... 41 more
[DEBUG] 10:26:42.609 com.aebiz.modules.controllers.platform.sys.SysLoginController.login(SysLoginController.java:58) - subject.isRemembered():::false
4 回复
if you are using a shiro.ini file, this property would be 'securityManager.rememberMeManager.cipherKey'

改shiro.ini哦, 加个键值

Base64.encodeToString(R.UU32().getBytes(),false)

org.apache.shiro.crypto.CryptoException: Unable to init cipher instance.
	at org.apache.shiro.crypto.JcaCipherService.init(JcaCipherService.java:495)
	at org.apache.shiro.crypto.JcaCipherService.initNewCipher(JcaCipherService.java:598)
	at org.apache.shiro.crypto.JcaCipherService.crypt(JcaCipherService.java:444)
	at org.apache.shiro.crypto.JcaCipherService.encrypt(JcaCipherService.java:324)
	at org.apache.shiro.crypto.JcaCipherService.encrypt(JcaCipherService.java:313)
	at org.apache.shiro.mgt.AbstractRememberMeManager.encrypt(AbstractRememberMeManager.java:466)
	at org.apache.shiro.mgt.AbstractRememberMeManager.convertPrincipalsToBytes(AbstractRememberMeManager.java:352)
	at org.apache.shiro.mgt.AbstractRememberMeManager.rememberIdentity(AbstractRememberMeManager.java:336)
	at org.apache.shiro.mgt.AbstractRememberMeManager.rememberIdentity(AbstractRememberMeManager.java:311)
	at org.apache.shiro.mgt.AbstractRememberMeManager.onSuccessfulLogin(AbstractRememberMeManager.java:287)
	at org.apache.shiro.mgt.DefaultSecurityManager.rememberMeSuccessfulLogin(DefaultSecurityManager.java:206)
	at org.apache.shiro.mgt.DefaultSecurityManager.onSuccessfulLogin(DefaultSecurityManager.java:291)
	at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:285)
	at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)
[WARN ] 11:40:27.519 org.apache.shiro.mgt.DefaultSecurityManager.rememberMeSuccessfulLogin(DefaultSecurityManager.java:212) - Delegate RememberMeManager instance of type [org.apache.shiro.web.mgt.CookieRememberMeManager] threw an exception during onSuccessfulLogin.  RememberMe services will not be performed for account [/*com.aebiz.modules.models.sys.Sys_user@47bdb347*/{"id":"7b80091024644d7884d7970d22e4563f","loginname":"superadmin","password":"5nu2WPLviT5TauGqM6kuOvJ6d8LDjJTvOdgkiD+Ntxw=","salt":"AQpI49x08q2DYU/3oGBZQw==","username":"超级管理员","isOnline":true,"disabled":false,"email":"chenquanlai@qwang.com.cn","loginAt":1484709778,"loginIp":"127.0.0.1","loginCount":1,"loginTheme":"palette.css","loginSidebar":false,"loginBoxed":false,"loginScroll":false,"loginPjax":true,"unitid":"43596f3aa3304f7ca489eec99ceabc7e","unit":{"id":"43596f3aa3304f7ca489eec99ceabc7e","parentId":"","path":"0001","name":"系统管理","aliasName":"System","address":"银河-太阳系-地球","telephone":"","email":"wizzer@qq.com","website":"http://www.wizzer.cn","location":1,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false},"roles":[{"id":"1c3c8f0d67784378b655af3b4b2c9a01","name":"系统管理员","code":"sysadmin","aliasName":"Sysadmin","disabled":false,"unitid":"","note":"System Admin","opBy":"","opAt":1484709747,"delFlag":false}],"units":[{"id":"43596f3aa3304f7ca489eec99ceabc7e","parentId":"","path":"0001","name":"系统管理","aliasName":"System","address":"银河-太阳系-地球","telephone":"","email":"wizzer@qq.com","website":"http://www.wizzer.cn","location":1,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}],"menus":[{"id":"10804189aa7e4269bec77c217856b90e","parentId":"","path":"0001","name":"系统","aliasName":"System","system":"platform","type":"menu","href":"","target":"","icon":"","isShow":true,"disabled":false,"permission":"sys","note":"系统","location":1,"hasChildren":true,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"cd3b6f8d363344e3a7e1f28f12646f5d","parentId":"10804189aa7e4269bec77c217856b90e","path":"00010001","name":"系统管理","aliasName":"Manager","system":"platform","type":"menu","href":"","target":"","icon":"ti-settings","isShow":true,"disabled":false,"permission":"sys.manager","note":"系统管理","location":2,"hasChildren":true,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"f46b394fdadd4878a38147439951a4da","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010001","name":"单位管理","aliasName":"Unit","system":"platform","type":"menu","href":"/platform/sys/unit","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.unit","location":3,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"50ecceebab4f44abbbcbcf1faf1b1a15","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010002","name":"用户管理","aliasName":"User","system":"platform","type":"menu","href":"/platform/sys/user","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.user","location":7,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"14d3ae91882f4cf089c94dda279273b4","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010003","name":"角色管理","aliasName":"Role","system":"platform","type":"menu","href":"/platform/sys/role","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.role","location":11,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"5841022a8e034b98acaaed2afeaa47da","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010004","name":"菜单管理","aliasName":"Menu","system":"platform","type":"menu","href":"/platform/sys/menu","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.menu","location":17,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"4e851a014a6c4eaf95e36358f1d9cf9a","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010005","name":"系统参数","aliasName":"Param","system":"platform","type":"menu","href":"/platform/sys/conf","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.conf","location":21,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"8750724acc5945ff9fa0498a6dd3b766","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010006","name":"日志管理","aliasName":"Log","system":"platform","type":"menu","href":"/platform/sys/log","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.log","location":25,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"cbf25e9d1890459fb64b22330054bf9d","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010007","name":"定时任务","aliasName":"Task","system":"platform","type":"menu","href":"/platform/sys/task","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.task","location":27,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"32b38b468a524b6192e9e95560094aa1","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010008","name":"自定义路由","aliasName":"Route","system":"platform","type":"menu","href":"/platform/sys/route","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.route","location":31,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"af359f0637274f66948217e0545ba6c4","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010009","name":"应用管理","aliasName":"App","system":"platform","type":"menu","href":"/platform/sys/api","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.api","location":35,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"94284b5c4b61427f8f2063e78444daa5","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010010","name":"数据字典","aliasName":"Dict","system":"platform","type":"menu","href":"/platform/sys/dict","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.dict","location":39,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}],"firstMenus":[{"id":"10804189aa7e4269bec77c217856b90e","parentId":"","path":"0001","name":"系统","aliasName":"System","system":"platform","type":"menu","href":"","target":"","icon":"","isShow":true,"disabled":false,"permission":"sys","note":"系统","location":1,"hasChildren":true,"opBy":"","opAt":1484709746,"delFlag":false}],"secondMenus":{"0001":[{"id":"cd3b6f8d363344e3a7e1f28f12646f5d","parentId":"10804189aa7e4269bec77c217856b90e","path":"00010001","name":"系统管理","aliasName":"Manager","system":"platform","type":"menu","href":"","target":"","icon":"ti-settings","isShow":true,"disabled":false,"permission":"sys.manager","note":"系统管理","location":2,"hasChildren":true,"opBy":"","opAt":1484709746,"delFlag":false}],"00010001":[{"id":"f46b394fdadd4878a38147439951a4da","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010001","name":"单位管理","aliasName":"Unit","system":"platform","type":"menu","href":"/platform/sys/unit","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.unit","location":3,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"50ecceebab4f44abbbcbcf1faf1b1a15","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010002","name":"用户管理","aliasName":"User","system":"platform","type":"menu","href":"/platform/sys/user","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.user","location":7,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"14d3ae91882f4cf089c94dda279273b4","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010003","name":"角色管理","aliasName":"Role","system":"platform","type":"menu","href":"/platform/sys/role","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.role","location":11,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"5841022a8e034b98acaaed2afeaa47da","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010004","name":"菜单管理","aliasName":"Menu","system":"platform","type":"menu","href":"/platform/sys/menu","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.menu","location":17,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"4e851a014a6c4eaf95e36358f1d9cf9a","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010005","name":"系统参数","aliasName":"Param","system":"platform","type":"menu","href":"/platform/sys/conf","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.conf","location":21,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"8750724acc5945ff9fa0498a6dd3b766","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010006","name":"日志管理","aliasName":"Log","system":"platform","type":"menu","href":"/platform/sys/log","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.log","location":25,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"cbf25e9d1890459fb64b22330054bf9d","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010007","name":"定时任务","aliasName":"Task","system":"platform","type":"menu","href":"/platform/sys/task","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.task","location":27,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"32b38b468a524b6192e9e95560094aa1","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010008","name":"自定义路由","aliasName":"Route","system":"platform","type":"menu","href":"/platform/sys/route","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.route","location":31,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"af359f0637274f66948217e0545ba6c4","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010009","name":"应用管理","aliasName":"App","system":"platform","type":"menu","href":"/platform/sys/api","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.api","location":35,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}, {"id":"94284b5c4b61427f8f2063e78444daa5","parentId":"cd3b6f8d363344e3a7e1f28f12646f5d","path":"000100010010","name":"数据字典","aliasName":"Dict","system":"platform","type":"menu","href":"/platform/sys/dict","target":"data-pjax","isShow":true,"disabled":false,"permission":"sys.manager.dict","location":39,"hasChildren":false,"opBy":"","opAt":1484709746,"delFlag":false}]},"opBy":"","opAt":1484709747,"delFlag":false}].
org.apache.shiro.crypto.CryptoException: Unable to init cipher instance.
	at org.apache.shiro.crypto.JcaCipherService.init(JcaCipherService.java:495)
	at org.apache.shiro.crypto.JcaCipherService.initNewCipher(JcaCipherService.java:598)
	at org.apache.shiro.crypto.JcaCipherService.crypt(JcaCipherService.java:444)
	at org.apache.shiro.crypto.JcaCipherService.encrypt(JcaCipherService.java:324)
	at org.apache.shiro.crypto.JcaCipherService.encrypt(JcaCipherService.java:313)
	at org.apache.shiro.mgt.AbstractRememberMeManager.encrypt(AbstractRememberMeManager.java:466)
	at org.apache.shiro.mgt.AbstractRememberMeManager.convertPrincipalsToBytes(AbstractRememberMeManager.java:352)
	at org.apache.shiro.mgt.AbstractRememberMeManager.rememberIdentity(AbstractRememberMeManager.java:336)
	at org.apache.shiro.mgt.AbstractRememberMeManager.rememberIdentity(AbstractRememberMeManager.java:311)
	at org.apache.shiro.mgt.AbstractRememberMeManager.onSuccessfulLogin(AbstractRememberMeManager.java:287)
	at org.apache.shiro.mgt.DefaultSecurityManager.rememberMeSuccessfulLogin(DefaultSecurityManager.java:206)
	at org.apache.shiro.mgt.DefaultSecurityManager.onSuccessfulLogin(DefaultSecurityManager.java:291)
	at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:285)
	at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)
	at com.aebiz.modules.controllers.platform.sys.SysLoginController.doLogin(SysLoginController.java:99)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:220)
	at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:134)
	at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:116)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
	at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
	at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:963)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
	at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689)
	at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
	at com.aebiz.baseframework.filter.RouteFilter.doFilter(RouteFilter.java:30)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61)
	at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108)
	at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)
	at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)
	at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
	at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
	at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)
	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)
	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)
	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1668)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
	at org.eclipse.jetty.server.Server.handle(Server.java:523)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.security.InvalidKeyException: Invalid AES key length: 36 bytes
	at com.sun.crypto.provider.AESCipher.engineGetKeySize(AESCipher.java:495)
	at javax.crypto.Cipher.passCryptoPermCheck(Cipher.java:1067)
	at javax.crypto.Cipher.checkCryptoPerm(Cipher.java:1038)
	at javax.crypto.Cipher.implInit(Cipher.java:805)
	at javax.crypto.Cipher.chooseProvider(Cipher.java:864)
	at javax.crypto.Cipher.init(Cipher.java:1396)
	at javax.crypto.Cipher.init(Cipher.java:1327)
	at org.apache.shiro.crypto.JcaCipherService.init(JcaCipherService.java:488)
	... 77 more

看来是AES的密钥, 还以为是随机字符串

添加回复
请先登陆
回到顶部