异常总结,持续更新
来源:互联网 发布:mac微信语音导出软件 编辑:程序博客网 时间:2024/05/01 15:23
1,spring:
org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of cn.hp.entity.Emp.comm
原因是实体类中所对应的属性值都要使用包装类,因为包装类为空的情况下,默认值为null,这说明hibernate中的实体属性都要使用包装类
2,BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
如果是在web.xml文件中配置的Spring。可能是 <description>SpringConfig</description>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</context-param>
中间的单词出错
,3,ssh整合中
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘qjtAction’ defined in file [C:\apache-tomcat-7.0.26\webapps\QingJia\WEB-INF\classes\cn\hp\action\QjtAction.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [cn.hp.action.QjtAction]: Constructor threw exception; nested exception is java.lang.NullPointerException
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [cn.hp.action.QjtAction]: Constructor threw exception; nested exception is java.lang.NullPointerException
有可能是在action类中使用的实体类没有空的构造函数
4,org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named ‘empbiz’ must be of type [cn.hp.biz.EmpBizImpl], but was actually of type [$Proxy27]
这种一直提醒说是注入的bean有问题,因为在action中注入后声明的对象时具体类的才出错,应该是声明抽象类的对象
- 异常总结,持续更新
- C++ 异常使用总结(持续更新)
- Java异常情况总结(持续更新)
- 异常(持续更新)
- 异常记录【持续更新】
- Struts2在开发中的一些异常总结(持续更新)
- Python学习--常见异常总结(持续更新)
- 快捷键总结(持续更新)
- 学习总结,持续更新
- js总结-持续更新。。。。。
- dpdk总结【持续更新】
- 项目异常(持续更新)
- Nginx 异常汇总####持续更新
- PG学习异常总结篇:遇到并处理过的异常-持续更新
- Hibernate4.3在开发中的一些异常总结(持续更新)
- 英语词汇、词组总结【持续更新】
- 项目总结(持续更新)
- ns问题总结-持续更新
- 【并查集】:poj2524,Ubiquitous Religions
- C# 任意形状按钮控件 实现简单实用
- android 获取WebView的网页高度
- 杭电HDU1087
- java.lang.NoClassDefFoundError的几种原因与解决方法
- 异常总结,持续更新
- ContextLoaderListener(1)---WebApplicationContext创建过程
- 实习整理(十六)
- spinner的使用
- C的形参和实参的关系
- selenium自动化测试实现对网站的登陆(使用java编写)
- Ring实现原理剖析
- 如何优化 Android Studio 启动、编译和运行速度?
- Animation