
Exception
Hurricane_m
这个作者很懒,什么都没留下…
展开
-
Hibernate : 再调用get()方法 通过主键来查询一条记录时 报错
org.hibernate.TypeMismatchException: Provided id of the wrong type for class com.itheima.domain.Customer. Expected: class java.lang.Long, got class java.lang.Integer at org.hibernate.event.interna...原创 2018-11-12 01:25:51 · 828 阅读 · 0 评论 -
Hibernate 在进行双向关联 时 jUnit不通过 控制台报错
愚蠢的一批0.0 这个问题 困扰了我三天。当我进行双向关联保存数据时,控制台报错log4j:WARN No appenders could be found for logger (org.jboss.logging).log4j:WARN Please initialize the log4j system properly.log4j:WARN See http://loggi...原创 2018-11-25 20:18:19 · 260 阅读 · 0 评论 -
Java基础之JDK7关于异常的新特性try()的使用
part1 为什么在try后面括号中出现FileNotFoundExecption 但是需要捕获的是IOException而不是FileNotFoundException?代码如下try (FileInputStream is = new FileInputStream("d:/temp/tt.txt");){ } catch (FileNotFoundException e...原创 2019-04-10 16:14:44 · 794 阅读 · 0 评论 -
迭代器Iterator 中的并发修改异常 java.util.ConcurrentModificationException
import java.util.ArrayList;import java.util.Iterator;import java.util.List;public class ConcurrentModifcationDemo { public static void main(String[] args) { List<String> list = new Arra...原创 2019-04-13 22:43:12 · 280 阅读 · 0 评论 -
java.lang.NoSuchFieldException: iii at java.lang.Class.getDeclaredField(Unknown Source) 异常解决
通过反射获取表单中的值封装到JavaBean时,程序可以正常运转,但控制台报了一个异常java.lang.NoSuchFieldException: iii at java.lang.Class.getDeclaredField(Unknown Source)原因是访问了一个不存在的属性iii.后续做测试的时候 将button标签 多添加了一个name属性 iii, 果不...原创 2019-05-21 22:04:39 · 5362 阅读 · 0 评论