1. Format you message with bb-code.
2. Show full stack trace.
Keerthi Kumar
Ranch Hand
Joined: Apr 20, 2009
Posts: 105
posted
0
Hi,
Can you please let me know how to show the full stack trace and how to format the same with bb-code. Since I am new to springs I am not aware of these things.
Please do the needful.
Thanks,
Keerthi Kumar N
Eduardo Bueno
Ranch Hand
Joined: Jun 04, 2009
Posts: 154
posted
0
You can figure out how to format your code here. To show the full stack trace, copy all the errors from where you found that one (BeanCreationException), probably from your IDE's console, and post here.
Keerthi Kumar
Ranch Hand
Joined: Apr 20, 2009
Posts: 105
posted
0
Hi,
Can please anyone help me out to overcome the below error.
Aug 19, 2009 8:47:26 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [context.xml]
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mybean' defined in class path resource [context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException: Invalid property 'company' of bean class [Inject]: No property 'company' found
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)
at com.Springs.Spring1.main(Spring1.java:11)
Caused by: org.springframework.beans.InvalidPropertyException: Invalid property 'company' of bean class [Inject]: No property 'company' found
at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:386)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1313)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1279)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1042)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)
... 8 more
Hong Anderson
Ranch Hand
Joined: Jul 05, 2005
Posts: 1936
posted
0
Does Inject class have property company?
SCJA 1.0, SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJP 5.0, SCEA 5, SCBCD 5; OCUP - Fundamental, Intermediate and Advanced; IBM Certified Solution Designer - OOAD, vUML 2; SpringSource Certified Spring Professional
Keerthi Kumar
Ranch Hand
Joined: Apr 20, 2009
Posts: 105
posted
0
Hi,
yeah, I have added the property in the Inject class. The same code has been pasted in my previous posts. Please check the same and help me out in this!
Please check if your spring application is able to locate your context.property file, where you declare your bean definition.
Ensure the file is loaded properly on start up.
Also, check if you have given the fully qualified class name in your bean definition.
Regards,
Srikanth
Srikanth
stanislav bashkirtsev
Ranch Hand
Joined: Aug 17, 2009
Posts: 75
posted
0
It's not normal... Try to create a project from scratch.