随笔分类 -  Exception

Spring JPA 缺少 JAR 引起异常
摘要:记录整合中缺少 JAR 文件引起的异常版本 Spring 3+ Hibernate 4+ JPA 1、Exception in thread "main" org.springframework.beans.factory.parsing.BeanDefinitionParsingExceptio... 阅读全文
posted @ 2014-05-14 22:20 ✿ 小塔 阅读(9112) 评论(0) 推荐(0)
ognl.OgnlException: target is null for setProperty(null, "x", [Ljava.lang.String;@) setProperty(null, "y", [Ljava.lang.String;@)
摘要:表单提交的方式:提交后 struts 异常: 警告: Error setting expression 'submit.x' with value '[Ljava.lang.String;@5d4f83d1' ognl.OgnlException: target is null for setProperty(null, "x", [Ljava.lang.String;@5d4f83d1) 警告: Error setting expression 'submit.y' with value '[Ljava.lang.S 阅读全文
posted @ 2014-01-11 21:29 ✿ 小塔 阅读(2592) 评论(0) 推荐(0)
No Session found for current thread
摘要:Spring 3 + Hibernate 4 整合异常: Exception in thread "main" org.hibernate.HibernateException: No Session found for current thread原因:在于设置该方法不开启事物,所以无法获取到 Session,在以前的版本中是可以不开启事物的 @Transactional(readOnly=true,propagation=Propagation.NOT_SUPPORTED) // 不开启事物 //事务传播属性@Transactional(propagation=Prop 阅读全文
posted @ 2013-12-29 23:47 ✿ 小塔 阅读(1096) 评论(0) 推荐(0)