
JAVA-EXCEPTION
shi-Yjanuary
坚持就会成功、努力就会有收获
展开
-
java.lang.IllegalArgumentException 非法参数异常
该异常的主要原因是jdk的版本和spring的版本不匹配,只要将jdk的版本改为比原来低版本的就可以解决了 我的jdk原来是1.8的,spring是3.2的,然后我将jdk改为1.7的,问题就解决了,还有一种方法就是使用spring4.2的也可以解决该问题希望可以帮到同样遇到该问题的童鞋(^o^)/~原创 2017-05-10 20:00:03 · 58983 阅读 · 1 评论 -
Access restriction: The method 'CharacterEncoder.encode(byte[])' is not API (restriction on required
该异常的解决方法是 1:右键点击项目,选择属性properties 2选择java中的Build Path 3:如下图,选中JRE,点击右侧的Edit 会弹出如下的窗口 在Resolution中选择Accessible,并在Rule Pattern中输入 **即可 点击完所有的OK以后就可以了原创 2017-05-12 13:06:32 · 710 阅读 · 0 评论 -
Access restriction: The type JPEGImageEncoder is not accessible due to restriction
报错: Access restriction:The type JPEGCodec is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\rt.jar 解决方法: Project -> Properties -> libraries, 先remove掉JRE System转载 2017-05-25 00:02:43 · 258 阅读 · 0 评论 -
HTTP Status 500 - No SecurityManager accessible to the calling code, either bound to the org.apache.
百度之后发现,原来需要将shiroFilter放在strutsFilter前面 哈哈哈 像上面一样就ok了 =。=原创 2017-05-15 19:27:29 · 498 阅读 · 0 评论 -
Java常见异常总结
Java常见异常总结1. java.lang.NullPointerException(空指针异常) 调用了未经初始化的对象或者是不存在的对象经常出现在创建图片,调用数组这些操作中,比如图片未经初始化,或者图片创建时的路径错误等等。对数组操作中出现空指针,即把数组的初始化和数组元素的初始化混淆起来了。数组的初始化是对数组分配需要的空间,而初始化后的数组,其中的元素并没有实例化,依然是空的,转载 2017-05-07 17:51:59 · 319 阅读 · 0 评论 -
jsp页面提示“Multiple annotations found at this line: - The superclass "javax.servlet.http.HttpServlet" w
Multiple annotations found at this line:- The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path新建jsp页面老提示:Multiple annotations found at this line: - The superclass "ja转载 2017-05-10 14:21:58 · 20856 阅读 · 0 评论 -
安装jdk后出现bash: ./java: /lib/ld-linux.so.2: bad ELF interpreter: 没有那个文件或目录
配置完环境变量后用Java -version测试出现“bash: ./java: /lib/ld-Linux.so.2: bad ELF interpreter: 没有那个文件或目录”的问题“,于是到网上搜了下,用sudo yum install glibc.i686命令安装好glibc之后问题就解决了。原创 2017-06-25 21:03:52 · 589 阅读 · 0 评论 -
nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$Refle
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0’: Initialization of bean failed; n原创 2017-08-28 21:57:50 · 1905 阅读 · 3 评论