Unable to acquire account data from realm [com.hongao.shiro.chapterOne.MyRealm2@2b80d80f]. The [org
来源:互联网 发布:php个人简历模板下载 编辑:程序博客网 时间:2024/05/16 09:49
原因:认证失败
org.apache.shiro.authc.AuthenticationException: Unable to acquire account data from realm [com.hongao.shiro.chapterOne.MyRealm2@2b80d80f]. The [org.apache.shiro.authc.pam.AllSuccessfulStrategy implementation requires all configured realm(s) to operate successfully for a successful authentication.
at org.apache.shiro.authc.pam.AllSuccessfulStrategy.afterAttempt(AllSuccessfulStrategy.java:85)at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doMultiRealmAuthentication(ModularRealmAuthenticator.java:228)
at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:269)
at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)
at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)
at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)
at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)
at com.hongao.shiro.chapterOne.TestChapterOne2.login(TestChapterOne2.java:27)
at com.hongao.shiro.chapterOne.TestChapterOne2.testAllSuccessfulStrategyWithSuccess(TestChapterOne2.java:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:69)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:48)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.junit.runners.ParentRunner.run(ParentRunner.java:292)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
Caused by: java.lang.ClassCastException: [C cannot be cast to java.lang.String
at com.hongao.shiro.chapterOne.MyRealm2.getAuthenticationInfo(MyRealm2.java:19)
at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doMultiRealmAuthentication(ModularRealmAuthenticator.java:219)
... 30 more
阅读全文
0 0
- Unable to acquire account data from realm [com.hongao.shiro.chapterOne.MyRealm2@2b80d80f]. The [org
- ERROR: unable to get the receiver data from the DB!
- CE Unable to read data from the transport connection.
- java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resol
- SpringMVC+Shiro集成出现Unable to acquire AES algorithm. This is required to function.
- Unable to load realm mapping info from SCDynamicStore
- 安装ruby on rails一直报Unable to download data from https://rubygems.org/的解决方案
- 安装ruby on rails错误:Unable to download data from https://rubygems.org/的解决方法
- Unable to download data from http:// ruby.taobao.org/ - bad response Not Found 404..
- iOS ERROR: unable to get the receiver data from the DB 解决方案
- eclipse启动错误 Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see
- sudo gem install: Unable to download data from http://ruby.taobao.org/ - bad response Not Found 404
- ios安装ruby on rails一直报Unable to download data from https://rubygems.org/的解决方案
- "Unable to get image data from canvas because the canvas has been tainted by cross-origin data"问题产生原
- Unable to load the mojo 'add-source' from the plugin 'org.codehaus.mojo:build-helper-maven-plugin:1.
- eclipse启动报错 java.lang.IllegalStateException: Unable to acquire application service. Ensure that the
- Unable to acquire Oracle environment handle
- cx_Oracle: unable to acquire oracle environment handle
- eclipse 修改工程名
- pdoFetch参数
- App 启动时间优化方法详解
- TMS320F28335 时钟分析3
- Batchnorm层推导
- Unable to acquire account data from realm [com.hongao.shiro.chapterOne.MyRealm2@2b80d80f]. The [org
- python基础--字符串常用函数
- File类
- MySQL:语法基础入门使用
- Mac pro 常用快捷键大全
- ETL利器 Kettle实战应用解析系列(三)
- 剑指offer-合并两个有序链表
- Scala 常量和变量
- spec下载:Image File Format