cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sonal Ojha <sonal.o...@sungard.com>
Subject Fwd: Unable to inject ConfigurationDao in cloud-server module
Date Thu, 20 Mar 2014 06:10:25 GMT
yes, I tried doing that as well and then it gives build failure showing
unit test case failure
for org.apache.cloudstack.affinity.AffinityApiUnitTest

Caused by: org.springframework.beans.factory.BeanCreationException: Could
not autowire field:
org.apache.cloudstack.framework.config.dao.ConfigurationDao
com.cloud.event.ActionEventUtils.configDao; nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No
qualifying bean of type
[org.apache.cloudstack.framework.config.dao.ConfigurationDao] found for
dependency: expected at least 1 bean which qualifies as autowire candidate
for this dependency. Dependency annotations: {@javax.inject.Inject()}
        at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:514)
        at
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
        at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
        ... 46 more
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException:
No qualifying bean of type
[org.apache.cloudstack.framework.config.dao.ConfigurationDao] found for
dependency: expected at least 1 bean which qualifies as autowire candidate
for this dependency. Dependency annotations: {@javax.inject.Inject()}
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:988)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:858)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:770)
        at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:486)
        ... 48 more



On Wed, Mar 19, 2014 at 10:30 PM, Alena Prokharchyk <
Alena.Prokharchyk@citrix.com> wrote:

> Sonal, did you initialize it the way other daos are initialized? In init()
> method marked with @PostConstruct
>
> On 3/19/14, 8:22 AM, "Sonal Ojha" <sonal.ojha@sungard.com> wrote:
>
> >Hello,
> >
> >I am trying to inject ConfigurationDao into the ActionEventUtils.java for
> >some code changes related to CLOUDSTACK-3272. While building(with unit
> >test
> >case) it doesnt give any error and builds successfully, but while
> >debugging
> >it gives a NullPointerException when trying to use the ConfigurationDao
> >instance. I am not sure where am I missing to make the entry.
> >
> >--
> >
> >Regards,
> >
> >___________________________________________________
> >
> >*Sonal Ojha* ● Senior Engineer - Product Developement ● SunGard
> >Availability Services, India ● Mobile: +91 9922412645●  Email:
> >sonal.ojha@sungard.com ● Website: http://www.sungardas.in/
> >
> >8 Times Winner – BC Service Provider of the Year – 2011, 2010, 2009, 2006,
> >2005, 2002, 2000, 1999; Finalist – 2008, 2007, 2004, 2001 ● Excellence in
> >Infrastructure Management – 2010 ● Outstanding Excellence in Business
> >Continuity – 2008 ● Business Continuity Provider of the Year (BCM Service)
> >– 2013 BCI Global Awards ● Business Continuity Provider of the Year (BCM
> >Product) – 2013 BCI India Awards
> >
> >*[image: AS_yt]* <http://www.youtube.com/user/SunGardAS>*[image:
> >AS_twitter]* <https://twitter.com/SunGardASIN>*[image:
> >AS_in]*<http://www.linkedin.com/company/sungardasin>*[image:
> >AS_gplus]* <https://plus.google.com/102459878242108588663/>*[image:
> >AS_fb]*<https://www.facebook.com/sungardas.in>*[image:
> >AS_ss]* <http://www.slideshare.net/SunGardASIN/documents>
>
>


-- 

Regards,

___________________________________________________

*Sonal Ojha* ● Senior Engineer - Product Developement ● SunGard
Availability Services, India ● Mobile: +91 9922412645●  Email:
sonal.ojha@sungard.com ● Website: http://www.sungardas.in/

8 Times Winner – BC Service Provider of the Year – 2011, 2010, 2009, 2006,
2005, 2002, 2000, 1999; Finalist – 2008, 2007, 2004, 2001 ● Excellence in
Infrastructure Management – 2010 ● Outstanding Excellence in Business
Continuity – 2008 ● Business Continuity Provider of the Year (BCM Service)
– 2013 BCI Global Awards ● Business Continuity Provider of the Year (BCM
Product) – 2013 BCI India Awards

*[image: AS_yt]* <http://www.youtube.com/user/SunGardAS>*[image:
AS_twitter]* <https://twitter.com/SunGardASIN>*[image:
AS_in]*<http://www.linkedin.com/company/sungardasin>*[image:
AS_gplus]* <https://plus.google.com/102459878242108588663/>*[image:
AS_fb]*<https://www.facebook.com/sungardas.in>*[image:
AS_ss]* <http://www.slideshare.net/SunGardASIN/documents>



-- 

Regards,

___________________________________________________

*Sonal Ojha* ● Senior Engineer - Product Developement ● SunGard
Availability Services, India ● Mobile: +91 9922412645●  Email:
sonal.ojha@sungard.com ● Website: http://www.sungardas.in/

8 Times Winner – BC Service Provider of the Year – 2011, 2010, 2009, 2006,
2005, 2002, 2000, 1999; Finalist – 2008, 2007, 2004, 2001 ● Excellence in
Infrastructure Management – 2010 ● Outstanding Excellence in Business
Continuity – 2008 ● Business Continuity Provider of the Year (BCM Service)
– 2013 BCI Global Awards ● Business Continuity Provider of the Year (BCM
Product) – 2013 BCI India Awards

*[image: AS_yt]* <http://www.youtube.com/user/SunGardAS>*[image:
AS_twitter]* <https://twitter.com/SunGardASIN>*[image:
AS_in]*<http://www.linkedin.com/company/sungardasin>*[image:
AS_gplus]* <https://plus.google.com/102459878242108588663/>*[image:
AS_fb]*<https://www.facebook.com/sungardas.in>*[image:
AS_ss]* <http://www.slideshare.net/SunGardASIN/documents>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message