Note that there are some explanatory texts on larger screens.

plurals
  1. POIntegration Test with Spring: Cannot convert value of type error
    text
    copied!<p>I am in the process of developing Integration Test scripts for our spring application. When I run the test from ant I am getting the following error message: Any ideal as why?</p> <p>Testcase: </p> <pre><code>testgetDefaultItemForStoreWithInvalidStoreId(com.xyz.business.admin.role.RoleUtilityUnitTest): Caused an ERROR Error creating bean with name 'groundingService' defined in URL [file:/C:/workspace/_EACE1_0_06/EB_Ace_Vob/Business/build/classess/businessContext.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 [$Proxy47] to required type [com.xyz.business.grounding.service.OdometerPdfStatement] for property 'odometerPdfStatement'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy47] to required type [com.xyz.business.grounding.service.OdometerPdfStatement] for property 'odometerPdfStatement': no matching editors or conversion strategy found org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groundingService' defined in URL [file:/C:/workspace/_EACE1_0_06/EB_Ace_Vob/Business/build/classess/businessContext.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 [$Proxy47] to required type [com.xyz.business.grounding.service.OdometerPdfStatement] for property 'odometerPdfStatement'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy47] to required type [com.xyz.business.grounding.service.OdometerPdfStatement] for property 'odometerPdfStatement': no matching editors or conversion strategy found Caused by: org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessException details (1) are: PropertyAccessException 1: </code></pre> <p>OdometerPDFStatement is a class (not an interface)</p> <p>I have the following:</p> <pre><code> &lt;bean id="odometerPdfStatement" class="com.xyz.business.grounding.service.OdometerPdfStatement"/&gt; &lt;bean id="groundingService" class="com.xyz.business.grounding.service.GroundingServiceImpl"&gt; &lt;property name="groundingInformationManager" ref="groundingInformationManager"/&gt; &lt;property name="codeManager" ref="codeManager"/&gt; &lt;property name="userManager" ref="userManager"/&gt; &lt;property name="configurator" ref="groundingConfigurator"/&gt; &lt;property name="velocityPropertyFilePath" value="velocity.properties"/&gt; &lt;property name="velocityTemplate" value="OdometerStatement.vm"/&gt; &lt;property name="odometerStatementXSLResourceFile" value="classpath:OdometerStatement2xsl-fo.xsl"/&gt; &lt;property name="imagePropertyFile" value="classpath:images.properties"/&gt; &lt;property name="odometerPdfStatement" ref="odometerPdfStatement"/&gt; &lt;property name="inspectionInformationManager" ref="inspectionInformationManager"/&gt; &lt;property name="saleEventManager" ref="saleEventManager"/&gt; &lt;property name="vehicleHistoryManager" ref="vehicleHistoryManager"/&gt; &lt;/bean&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload