Can you post your bean definitions and test?

Thanks,

Matt

On Mon, Jan 26, 2009 at 4:07 PM, yogeshk <[email protected]> wrote:
>
> Framework: Struts/Spring/Hibernate 2.0M2
>
> Note: Other test cases like DAO and Action are working fine.
>
> thanks,
> Yogesh
> -----------------------------------------
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'com.integ.service.ProjectManagerTest': 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 [$Proxy25] to required type
> [com.integ.service.ProjectManager] for property 'projectManager'; nested
> exception is java.lang.IllegalArgumentException: Cannot convert value of
> type [$Proxy25] to required type [com.integ.service.ProjectManager] for
> property 'projectManager': 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 [$Proxy25] to required type [com.integ.service.ProjectManager]
> for property 'projectManager'; nested exception is
> java.lang.IllegalArgumentException: Cannot convert value of type [$Proxy25]
> to required type [com.integ.service.ProjectManager] for property
> 'projectManager': no matching editors or conversion strategy found
> Caused by: java.lang.IllegalArgumentException: Cannot convert value of type
> [$Proxy25] to required type [com.integ.service.ProjectManager] for property
> 'projectManager': no matching editors or conversion strategy found
>        at
> org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:225)
>        at
> org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:139)
>        at
> org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:771)
>        at
> org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:604)
>        at
> org.springframework.beans.AbstractPropertyAccessor.setPropertyValue(AbstractPropertyAccessor.java:49)
>        at
> org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:74)
>        at
> org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:57)
>        at
> org.springframework.beans.factory.support.AbstractBeanFactory.applyPropertyValues(AbstractBeanFactory.java:852)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1054)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:843)
>        at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:273)
>        at
> org.springframework.test.AbstractDependencyInjectionSpringContextTests.injectDependencies(AbstractDependencyInjectionSpringContextTests.java:179)
>        at
> org.springframework.test.AbstractDependencyInjectionSpringContextTests.prepareTestInstance(AbstractDependencyInjectionSpringContextTests.java:158)
>        at
> org.springframework.test.AbstractSingleSpringContextTests.setUp(AbstractSingleSpringContextTests.java:88)
>        at junit.framework.TestCase.runBare(TestCase.java:128)
>        at
> org.springframework.test.ConditionalTestCase.runBare(ConditionalTestCase.java:69)
>        at junit.framework.TestResult$1.protect(TestResult.java:106)
>        at junit.framework.TestResult.runProtected(TestResult.java:124)
>        at junit.framework.TestResult.run(TestResult.java:109)
>        at junit.framework.TestCase.run(TestCase.java:120)
>        at junit.framework.TestSuite.runTest(TestSuite.java:230)
>        at junit.framework.TestSuite.run(TestSuite.java:225)
>        at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
>        at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>        at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>        at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>        at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>        at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
>
>
> --
> View this message in context: 
> http://www.nabble.com/Getting-an-error-while-running-ServiceManager-Junit-test-case-tp21674227s2369p21674227.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to