shiro使用的时候: java.lang.IllegalArgumentException: Odd number of characters.    at org.apache.shiro.codec.Hex.decode(Hex.java:128) ~[shiro-core-1.4.0.jar:1.4.0]    at org.apache.shiro.codec.Hex.decode(Hex.java:107) ~[shiro-core-1.4.0.jar:1.4.0]    at or…
value = URLDecoder.decode(request.getParameter(paraName), "UTF-8"); 前端用了 encodeURI 来编码参数,后端用 URLDecoder 解码,报错: java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: " 0" http:/…
Tomcat7.0启动报错:java.lang.illegalargumentexception:taglib definition not consisten with specification version 原因:Tomcat7和Tomcat6在标签配置上稍有不同. 解决: You just need to confirm the allowed tags by web.xml confirming DTD file. e.g. version=”2.5″ compatible web.…
Spring版本:2.5.6 AspectJ是Spring自带的lib. Jdk版本:1.7.0_17 在配置没问题的情况下,报:java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut myMethod错误! 是jdk版本问题,改为:1.6.0_32版本没问题. 推测:Spring2.5.6和Jdk6兼容性会很好! 不降低Jdk版本的话,提高AspectJ版本也能解决此问题,下载链接:http…
tcpflow以流为单位分析请求内容,非常适合服务器端接口类服务查问题 这次遇到的问题跟支付宝支付后的回调post结果有关 淘宝的代码例子: public void doPost(HttpServletRequest request, HttpServletResponse response)throws UnsupportedEncodingException { //»ñµÃ´ýÇ©ÃûÊý¾ÝºÍÇ©ÃûÖµ String sign = URLDecoder.decode(request.…
项目中做自动登录和保存密码时,Cookie报错Java.lang.IllegalArgumentException,上google查了下 在http://hi.baidu.com/xtxycy/blog/item/a614635168c61b14367abe98.html看到了说明: 今天完成了一个用cookie记录用户名的功能,之前没有考虑到用户的用户名如果是中文会是怎样的影响.就在测试的时候,用了一个中文去登陆,发现报错,错误信息如下: java.lang.IllegalArgumentEx…
用eclipse部署tomcat时出现异常:java.lang.IllegalArgumentException: Invalid 'log4jConfigLocation' parameter: class path resource [*/*/*/log4j.properties] cannot be resolved to URL because it does not exist 查看tomcat项目下,没有生成class文件及配置文件(class文件夹也不存在). 确定tomcat 部…
class Person{ private String name ; private String sex ; public Person(){ System.out.println("c"); } public Person(String c1){ this.name =c1; System.out.println("c1"+c1); } public Person(String c1,String c2){ this.name =c1; this.sex =c…
反射的报错信息如下: java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect…
Exception in thread "main" java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "左右" at java.net.URLDecoder.decode %引起 %会转换成%25 解决方案: public static String replacer(String str)…