严重: action: null
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blogXiangCeBiz' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.fanna.dao.impl.BlogXiangCeDaoImpl] to required type [com.fanna.dao.BlogXiangCeDao] for property 'blogXiangCeDao'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.fanna.dao.impl.BlogXiangCeDaoImpl] to required type [com.fanna.dao.BlogXiangCeDao] for property 'blogXiangCeDao': no matching editors or conversion strategy found
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
PropertyAccessException 1:
是什么地方出错啊!!!!我这applicationContext.xml里面写的都合适呢啊!!!
哪位大虾可以告诉下!!谢谢了!!!!!在线等!!
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blogXiangCeBiz' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.fanna.dao.impl.BlogXiangCeDaoImpl] to required type [com.fanna.dao.BlogXiangCeDao] for property 'blogXiangCeDao'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.fanna.dao.impl.BlogXiangCeDaoImpl] to required type [com.fanna.dao.BlogXiangCeDao] for property 'blogXiangCeDao': no matching editors or conversion strategy found
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
PropertyAccessException 1:
是什么地方出错啊!!!!我这applicationContext.xml里面写的都合适呢啊!!!
哪位大虾可以告诉下!!谢谢了!!!!!在线等!!
解决方案 »
- Hql语句问题,有截图
- hibernate如何实现双向1-1关联的级联删除
- 编程控制Tomcat的启动与关闭
- private static final String CR_LF="/n";什么意思
- SSH优点缺点?(面试题)
- 50分 XML问题求助, 通过页面修改/添加/删除 XML内容
- 学习EJB最好的入门书籍有哪些啊?
- 是webspher的问题吗怎么解决啊??
- 请问可有人遇到过这个问题啊?eclipse中的maven项目配置spring和mybatis是报错,请指教
- 像CSDN博客和新浪博客这种网站的的数据库是咋设计的呢?
- java连接SQL server 2005数据库出现问题。
- 关于用dom4j对xml的读取
PropertyAccessException 1:
下面没了?
Failed to convert property value of type [com.fanna.dao.impl.BlogXiangCeDaoImpl] to required type [com.fanna.dao.BlogXiangCeDao] 这两个类你关系对吧
把下面的拿来
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'blogXiangCeBiz' defined in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.fanna.dao.impl.BlogXiangCeDaoImpl] to required type [com.fanna.dao.BlogXiangCeDao] for property 'xiangCeDao'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.fanna.dao.impl.BlogXiangCeDaoImpl] to required type [com.fanna.dao.BlogXiangCeDao] for property 'xiangCeDao': no matching editors or conversion strategy found
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
PropertyAccessException 1:
org.springframework.beans.TypeMismatchException: Failed to convert property value of type [com.fanna.dao.impl.BlogXiangCeDaoImpl] to required type [com.fanna.dao.BlogXiangCeDao] for property 'xiangCeDao'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [com.fanna.dao.impl.BlogXiangCeDaoImpl] to required type [com.fanna.dao.BlogXiangCeDao] for property 'xiangCeDao': no matching editors or conversion strategy found
Caused by: java.lang.IllegalArgumentException: Cannot convert value of type [com.fanna.dao.impl.BlogXiangCeDaoImpl] to required type [com.fanna.dao.BlogXiangCeDao] for property 'xiangCeDao': no matching editors or conversion strategy found
at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)
<property name="sessionFactory" ref="sessionFactory"></property>
</bean>
<bean id="blogXiangCeBiz" class="com.fanna.biz.impl.BlogXiangCeBizImpl">
<property name="XiangCeDao" ref="blogXiangCeDao"></property>
</bean>
<bean name="/toBlogLog" class="com.fanna.struts.action.ToBlogLogAction">
<property name="companyBiz" ref="companyBiz"></property>
<property name="blogArticlesBiz" ref="blogArticlesBiz"></property>
<property name="askMessagesBiz" ref="askMessagesBiz"></property>
<property name="blogXiangCeBiz" ref="blogXiangCeBiz"></property>
</bean>
....no matching editors or conversion strategy
楼主看下以下解决方法,看看有帮助没?
http://blog.chinaunix.net/u/20045/showart_1019030.html
关键是这吧,<property name="XiangCeDao"//xiangCeDao ref="blogXiangCeDao"></property>