Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [DEBUG] 2022-11-18 16:15:52.394 [main] ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@51b7e5df
- [DEBUG] 2022-11-18 16:15:52.496 [main] XmlBeanDefinitionReader - Loaded 2 bean definitions from class path resource [RankBeans.xml]
- [DEBUG] 2022-11-18 16:15:52.521 [main] DefaultListableBeanFactory - Creating shared instance of singleton bean 'rank-bean'
- [WARN ] 2022-11-18 16:15:52.557 [main] ClassPathXmlApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rank-bean' defined in class path resource [RankBeans.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'GradeInRank' of bean class [ec.a1.RankImpl]: Bean property 'GradeInRank' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
- Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rank-bean' defined in class path resource [RankBeans.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'GradeInRank' of bean class [ec.a1.RankImpl]: Bean property 'GradeInRank' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1734)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1442)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
- at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
- at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
- at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
- at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897)
- at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879)
- at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)
- at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:144)
- at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:85)
- at ec.a1.RankApp.main(RankApp.java:11)
- Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'GradeInRank' of bean class [ec.a1.RankImpl]: Bean property 'GradeInRank' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
- at org.springframework.beans.BeanWrapperImpl.createNotWritablePropertyException(BeanWrapperImpl.java:243)
- at org.springframework.beans.AbstractNestablePropertyAccessor.processLocalProperty(AbstractNestablePropertyAccessor.java:426)
- at org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:278)
- at org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:266)
- at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:97)
- at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:77)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1730)
- ... 13 more
Advertisement
Add Comment
Please, Sign In to add comment