学习shiro代码报错:Line argument must contain a key and a value. Only one string token was found.
来源:互联网 发布:qt4.8 json封装和解析 编辑:程序博客网 时间:2024/05/17 08:27
最近打算重新完整系统的学习下shiro,但是代码抛错:
java.lang.IllegalArgumentException: Line argument must contain a key and a value. Only one string token was found.at org.apache.shiro.config.Ini$Section.splitKeyValue(Ini.java:542)at org.apache.shiro.config.Ini$Section.toMapProps(Ini.java:567)at org.apache.shiro.config.Ini$Section.<init>(Ini.java:464)at org.apache.shiro.config.Ini$Section.<init>(Ini.java:445)at org.apache.shiro.config.Ini.addSection(Ini.java:302)at org.apache.shiro.config.Ini.load(Ini.java:351)at org.apache.shiro.config.Ini.load(Ini.java:287)at org.apache.shiro.config.Ini.load(Ini.java:275)at org.apache.shiro.config.Ini.loadFromPath(Ini.java:244)at org.apache.shiro.config.Ini.fromResourcePath(Ini.java:225)at org.apache.shiro.config.IniSecurityManagerFactory.<init>(IniSecurityManagerFactory.java:69)at com.github.liuzhihu.shiro_1.LoginLogoutTest.testCustomRealm(LoginLogoutTest.java:54)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:601)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:675)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
百度了很久,才发现原来是配置文件的编码问题,应该为ANSI就可以了,记录一下。
阅读全文
0 1
- 学习shiro代码报错:Line argument must contain a key and a value. Only one string token was found.
- 学习shiro代码报错:Line argument must contain a key and a value. Only one string token was found.
- Shiro异常 : IllegalArgumentException: Line argument must contain a key and a value. Only one
- Shiro异常:java.lang.IllegalArgumentException: Line argument must contain a key and a value. Only one
- Shiro异常1:java.lang.IllegalArgumentException: Line argument must contain a key and a value. Only one
- iOS之报错The app's Info.plist must contain an xxx key with a string value explaining
- MATLAB save函数的参数报错:Argument must contain a string
- MySQL 数据表创建报错:there can be only one auto column and it must be defined as a key
- The app's Info.plist must contain an NSPhotoLibraryUsageDescription key with a string value explaini
- Invalid file name: must contain only [a-z0-9_.]【Android报错】
- iOS 10相机崩溃 The app's Info.plist must contain an NSCameraUsageDescription key with a string value
- 1075 - Incorrect table definition;there can be only one auto column and it must be defined as a key
- Incorrect table definition; there can be only one auto column and it must be defined as a key
- 1075-Incorrect table definition;there can be only one auto column and it must be defined as a key
- matlab的save函数的用法 Argument must contain a string.
- android报错res\drawable-xhdpi\ic_Dianhua.png: Invalid file name: must contain only [a-z0-9_.]
- DOS format was specified but only a single line feed character was found, not 2
- DOS format was specified but only a single line feed character was found, not 2
- Linux: shell命令 eval (有图有代码有真相!!!)
- 金融市场体系
- View事件分发源码分析(二)
- 高德地图api定位问题
- tensorflow基于softmax模型实现手写体MNIST数字集识别
- 学习shiro代码报错:Line argument must contain a key and a value. Only one string token was found.
- UVA 11300 Spreading the Wealth
- 文件输入和输出练习题
- html响应式与自适应
- keepalived的vip设置为公网IP
- Moco框架(mock-server)
- 数据挖掘系列(4)决策树分类算法
- 单身狗掐指一算:k邻近(KNN)算法举例
- 3年_面试