john_1726

Untitled

Nov 18th, 2022
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.39 KB | None | 0 0
  1. [DEBUG] 2022-11-18 16:12:07.302 [main] ClassPathXmlApplicationContext - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@51b7e5df
  2. [DEBUG] 2022-11-18 16:12:07.403 [main] XmlBeanDefinitionReader - Loaded 2 bean definitions from class path resource [RankBeans.xml]
  3. [DEBUG] 2022-11-18 16:12:07.428 [main] DefaultListableBeanFactory - Creating shared instance of singleton bean 'rank-bean'
  4. [DEBUG] 2022-11-18 16:12:07.439 [main] DefaultListableBeanFactory - Creating shared instance of singleton bean 'grade-bean'
  5. [WARN ] 2022-11-18 16:12:07.460 [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?
  6. 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?
  7. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1734)
  8. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1442)
  9. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593)
  10. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516)
  11. at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324)
  12. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
  13. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)
  14. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
  15. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897)
  16. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879)
  17. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551)
  18. at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:144)
  19. at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:85)
  20. at ec.a1.RankApp.main(RankApp.java:11)
  21. 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?
  22. at org.springframework.beans.BeanWrapperImpl.createNotWritablePropertyException(BeanWrapperImpl.java:243)
  23. at org.springframework.beans.AbstractNestablePropertyAccessor.processLocalProperty(AbstractNestablePropertyAccessor.java:426)
  24. at org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:278)
  25. at org.springframework.beans.AbstractNestablePropertyAccessor.setPropertyValue(AbstractNestablePropertyAccessor.java:266)
  26. at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:97)
  27. at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:77)
  28. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1730)
  29. ... 13 more
  30.  
Advertisement
Add Comment
Please, Sign In to add comment