org.springframework.beans.TypeMismatchException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • If I set a property on a bean which is a bean itself then reference the outer/parent this works when aspects are not applied but not when they are. The following fragment works when no aspects are applied. <bean id="parentNode" class="test.TestNode"> <property name="name" value="parent"/> <property name="child"> <bean id="childNode" class="test.TestNode"> <property name="name" value="child"/> <property name="parent" value="parentNode"/> </bean> </property> </bean> However when I add the following aspect I get an error. <bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"> <property name="proxyTargetClass" value="true"/> </bean> <bean class="org.springframework.aop.support.DefaultPointcutAdvisor"> <property name="pointcut"> <bean class="test.NodePointcut"/> </property> <property name="advice"> <bean class="test.TestAdvice"/> </property> </bean> [java] 2005-09-13 17:13:00,026 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring.xml] [java] 2005-09-13 17:13:00,120 [main] INFO org.springframework.beans.factory.xml.XmlBeanFactory - Creating shared instance of singleton bean 'parentNode' [java] Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'childNode' defined in class path resource [spring.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [test.AbstractNode] for property 'parent'] [java] PropertyAccessExceptionsException (1 errors) [java] org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [test.AbstractNode] for property 'parent' [java] at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary(BeanWrapperImpl.java:1103) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:848) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:733) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:890) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:917) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:906) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1026) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:823) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345) [java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:147) [java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:96) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1012) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:823) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345) [java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226) [java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147) [java] at test.TestNode.main(TestNode.java:51)
    via by kamaljeet sandhu,
  • If I set a property on a bean which is a bean itself then reference the outer/parent this works when aspects are not applied but not when they are. The following fragment works when no aspects are applied. <bean id="parentNode" class="test.TestNode"> <property name="name" value="parent"/> <property name="child"> <bean id="childNode" class="test.TestNode"> <property name="name" value="child"/> <property name="parent" value="parentNode"/> </bean> </property> </bean> However when I add the following aspect I get an error. <bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"> <property name="proxyTargetClass" value="true"/> </bean> <bean class="org.springframework.aop.support.DefaultPointcutAdvisor"> <property name="pointcut"> <bean class="test.NodePointcut"/> </property> <property name="advice"> <bean class="test.TestAdvice"/> </property> </bean> [java] 2005-09-13 17:13:00,026 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring.xml] [java] 2005-09-13 17:13:00,120 [main] INFO org.springframework.beans.factory.xml.XmlBeanFactory - Creating shared instance of singleton bean 'parentNode' [java] Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'childNode' defined in class path resource [spring.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [test.AbstractNode] for property 'parent'] [java] PropertyAccessExceptionsException (1 errors) [java] org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [test.AbstractNode] for property 'parent' [java] at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary(BeanWrapperImpl.java:1103) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:848) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:733) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:890) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:917) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:906) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1026) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:823) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345) [java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:147) [java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:96) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1012) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:823) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345) [java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226) [java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147) [java] at test.TestNode.main(TestNode.java:51)
    via by Martin Thompson,
  • If I set a property on a bean which is a bean itself then reference the outer/parent this works when aspects are not applied but not when they are. The following fragment works when no aspects are applied. <bean id="parentNode" class="test.TestNode"> <property name="name" value="parent"/> <property name="child"> <bean id="childNode" class="test.TestNode"> <property name="name" value="child"/> <property name="parent" value="parentNode"/> </bean> </property> </bean> However when I add the following aspect I get an error. <bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"> <property name="proxyTargetClass" value="true"/> </bean> <bean class="org.springframework.aop.support.DefaultPointcutAdvisor"> <property name="pointcut"> <bean class="test.NodePointcut"/> </property> <property name="advice"> <bean class="test.TestAdvice"/> </property> </bean> [java] 2005-09-13 17:13:00,026 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring.xml] [java] 2005-09-13 17:13:00,120 [main] INFO org.springframework.beans.factory.xml.XmlBeanFactory - Creating shared instance of singleton bean 'parentNode' [java] Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'childNode' defined in class path resource [spring.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [test.AbstractNode] for property 'parent'] [java] PropertyAccessExceptionsException (1 errors) [java] org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [test.AbstractNode] for property 'parent' [java] at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary(BeanWrapperImpl.java:1103) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:848) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:733) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:890) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:917) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:906) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1026) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:823) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345) [java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:147) [java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:96) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1012) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:823) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345) [java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226) [java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147) [java] at test.TestNode.main(TestNode.java:51)
    via by kamaljeet sandhu,
  • If I set a property on a bean which is a bean itself then reference the outer/parent this works when aspects are not applied but not when they are. The following fragment works when no aspects are applied. <bean id="parentNode" class="test.TestNode"> <property name="name" value="parent"/> <property name="child"> <bean id="childNode" class="test.TestNode"> <property name="name" value="child"/> <property name="parent" value="parentNode"/> </bean> </property> </bean> However when I add the following aspect I get an error. <bean class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"> <property name="proxyTargetClass" value="true"/> </bean> <bean class="org.springframework.aop.support.DefaultPointcutAdvisor"> <property name="pointcut"> <bean class="test.NodePointcut"/> </property> <property name="advice"> <bean class="test.TestAdvice"/> </property> </bean> [java] 2005-09-13 17:13:00,026 [main] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [spring.xml] [java] 2005-09-13 17:13:00,120 [main] INFO org.springframework.beans.factory.xml.XmlBeanFactory - Creating shared instance of singleton bean 'parentNode' [java] Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'childNode' defined in class path resource [spring.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [test.AbstractNode] for property 'parent'] [java] PropertyAccessExceptionsException (1 errors) [java] org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [test.AbstractNode] for property 'parent' [java] at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary(BeanWrapperImpl.java:1103) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:848) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:733) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:890) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:917) [java] at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:906) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1026) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:823) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345) [java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:147) [java] at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:96) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1012) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:823) [java] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345) [java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226) [java] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147) [java] at test.TestNode.main(TestNode.java:51)
    via by Martin Thompson,
  • Error creating bean (Spring/Hibernate)
    via by Unknown author,
  • An exception is thrown when injecting a SchedulerFactoryBean: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.quartz.impl.StdScheduler] to required type [org.springframework.scheduling.quartz.SchedulerFactoryBean] for property 'schedulerFactoryBean' -------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="schedulerFactoryBean" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"/> <bean id="test" class="test.SchedulerTest"> <property name="schedulerFactoryBean"><ref local="schedulerFactoryBean"/></property> </bean> </beans> -------------------------------------------------------------------- package test; import org.springframework.context.support.ClassPathXmlApplicationContext; import org.springframework.scheduling.quartz.SchedulerFactoryBean; public class SchedulerTest { private SchedulerFactoryBean schedulerFactoryBean; public void setSchedulerFactoryBean(SchedulerFactoryBean schedulerFactoryBean) { this.schedulerFactoryBean = schedulerFactoryBean; } public static void main(String[] args) { new ClassPathXmlApplicationContext("context.xml"); } } -------------------------------------------------------------------- 11-May-2005 19:11:48 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [context.xml] 11-May-2005 19:11:49 org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory INFO: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=3043939]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [schedulerFactoryBean,test]; root of BeanFactory hierarchy 11-May-2005 19:11:49 org.springframework.context.support.AbstractApplicationContext refresh INFO: 2 beans defined in application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=3043939] 11-May-2005 19:11:49 org.springframework.core.CollectionFactory <clinit> INFO: JDK 1.4+ collections available 11-May-2005 19:11:49 org.springframework.context.support.AbstractApplicationContext initMessageSource INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@19f953d] 11-May-2005 19:11:49 org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@1eed786] 11-May-2005 19:11:49 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [schedulerFactoryBean,test]; root of BeanFactory hierarchy] 11-May-2005 19:11:49 org.springframework.beans.factory.support.AbstractBeanFactory getBean INFO: Creating shared instance of singleton bean 'schedulerFactoryBean' 11-May-2005 19:11:49 org.quartz.simpl.SimpleThreadPool initialize INFO: Job execution threads will use class loader of thread: main 11-May-2005 19:11:49 org.quartz.simpl.RAMJobStore initialize INFO: RAMJobStore initialized. 11-May-2005 19:11:49 org.quartz.impl.StdSchedulerFactory instantiate INFO: Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties' 11-May-2005 19:11:49 org.quartz.impl.StdSchedulerFactory instantiate INFO: Quartz scheduler version: 1.4.5 11-May-2005 19:11:49 org.springframework.scheduling.quartz.SchedulerFactoryBean startScheduler INFO: Starting Quartz scheduler now 11-May-2005 19:11:49 org.quartz.core.QuartzScheduler start INFO: Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started. 11-May-2005 19:11:49 org.springframework.beans.factory.support.AbstractBeanFactory getBean INFO: Creating shared instance of singleton bean 'test' 11-May-2005 19:11:49 org.springframework.beans.factory.support.AbstractBeanFactory destroySingletons INFO: Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [schedulerFactoryBean,test]; root of BeanFactory hierarchy} 11-May-2005 19:11:49 org.springframework.scheduling.quartz.SchedulerFactoryBean destroy INFO: Shutting down Quartz scheduler 11-May-2005 19:11:49 org.quartz.core.QuartzScheduler shutdown INFO: Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutting down. 11-May-2005 19:11:49 org.quartz.core.QuartzScheduler pause INFO: Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED paused. 11-May-2005 19:11:49 org.quartz.core.QuartzScheduler shutdown INFO: Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED shutdown complete. Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'test' defined in class path resource [context.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyAccessExceptionsException: PropertyAccessExceptionsException (1 errors); nested propertyAccessExceptions are: [org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.quartz.impl.StdScheduler] to required type [org.springframework.scheduling.quartz.SchedulerFactoryBean] for property 'schedulerFactoryBean'] PropertyAccessExceptionsException (1 errors) org.springframework.beans.TypeMismatchException: Failed to convert property value of type [org.quartz.impl.StdScheduler] to required type [org.springframework.scheduling.quartz.SchedulerFactoryBean] for property 'schedulerFactoryBean' at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary(BeanWrapperImpl.java:1010) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:772) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:679) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:819) at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:846) at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:835) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:896) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:714) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:331) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:257) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:319) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:80) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:56) at test.SchedulerTest.main(SchedulerTest.java:20) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78) Process finished with exit code 1
    via by Vurti Galka,
    • org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [test.AbstractNode] for property 'parent' at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary(BeanWrapperImpl.java:1103) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:848) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:733) at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:890) at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:917) at org.springframework.beans.BeanWrapperImpl.setPropertyValues(BeanWrapperImpl.java:906) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1026) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:823) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:147) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:96) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1012) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:823) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:345) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147) at test.TestNode.main(TestNode.java:51)

    Users with the same issue

    Unknown visitor1 times, last one,