严重: 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里面写的都合适呢啊!!!
哪位大虾可以告诉下!!谢谢了!!!!!在线等!!

解决方案 »

  1.   

    Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are:
    PropertyAccessException 1:
    下面没了? 
    Failed to convert property value of type [com.fanna.dao.impl.BlogXiangCeDaoImpl] to required type [com.fanna.dao.BlogXiangCeDao] 这两个类你关系对吧
    把下面的拿来
      

  2.   

    严重: 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 '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)
      

  3.   

    <bean id="blogXiangCeDao" class="com.fanna.dao.impl.BlogXiangCeDaoImpl">
    <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>
      

  4.   

    value of type [com.fanna.dao.impl.BlogXiangCeDaoImpl] to required type [com.fanna.dao.BlogXiangCeDao] 应该是你的com.fanna.dao.impl.BlogXiangCeDaoImpl没有实现com.fanna.dao.BlogXiangCeDao接口。
      

  5.   

    Failed to convert property value of type [com.fanna.dao.impl.BlogXiangCeDaoImpl] to required type [com.fanna.dao.BlogXiangCeDao] 
    ....no matching editors or conversion strategy
    楼主看下以下解决方法,看看有帮助没?
    http://blog.chinaunix.net/u/20045/showart_1019030.html
      

  6.   

    for property 'xiangCeDao': no matching editors or conversion strategy found
    关键是这吧,<property name="XiangCeDao"//xiangCeDao ref="blogXiangCeDao"></property>
      

  7.   

    根据setXiangCeDao得到xiangCeDao属性(可以不存在),与spring的XiangCeDao匹配,匹配不到吧,看看是不是
      

  8.   

    谢谢7楼的大哥!!!接口给错了HOHO