Results 1 to 3 of 3

Thread: BeanCreation Excepton Plz help

Threaded View

  1. #1
    Join Date
    May 2011
    Location
    mumbai
    Posts
    37

    Default BeanCreation Excepton Plz help

    Dear all

    i am traying //this.npjt = new NamedParameterJdbcTemplate(dataSource);
    with context.xml

    <bean id="npjt" class="org.springframework.jdbc.core.namedparam.Na medParameterJdbcTemplate">
    <constructor-arg ref="portailCarburantDataSource"/>
    </bean>


    <bean id="commonJdbcTemplateTest" class="com.carrefour.fr.portail.carburant.CommonJd bcTemplate">
    <property name="npjt" ref="npjt"></property>
    </bean>

    I am getting following excepton plz help

    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'commonJdbcTemplateTest' defined in class path resource [com/carrefour/fr/portail/carburant/ejb-application-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedEx ception: Failed to convert property value of type 'org.springframework.jdbc.core.namedparam.NamedPar ameterJdbcTemplate' to required type 'org.springframework.jdbc.core.namedparam.NamedPar ameterJdbcTemplate' for property 'npjt'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [org.springframework.jdbc.core.namedparam.NamedPara meterJdbcTemplate] to required type [org.springframework.jdbc.core.namedparam.NamedPara meterJdbcTemplate] for property 'npjt': no matching editors or conversion strategy found
    Last edited by junugari; May 10th, 2011 at 09:11 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •