cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolás Vázquez <nicovazque...@gmail.com>
Subject Spring errors when creating new DAO
Date Wed, 02 Nov 2016 18:39:02 GMT
Hi all,

I've been having troubles creating a new DAO on cloud-engine-schema.
Specifically, I'm getting this error:



*java.lang.IllegalArgumentException: Superclass has no null constructors
but no arguments were given*
I defined new bean on spring-engine-schema-core-daos.xml file and injected
it into StorageManagerImpl class.
I annotated new impl class with @Component, and provided a constructor with
no arguments. Did you have a similar issue?

Error creating bean with name 'storageManagerImpl': Injection of autowired
dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Could not autowire
field: com.cloud.storage.dao.StoragePoolTagsDao
com.cloud.storage.StorageManagerImpl._storagePoolTagsDao; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'storagePoolTagsDaoImpl' defined in URL
[jar:file:/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-engine-schema-4.9.1.0-SNAPSHOT.jar!/META-INF/cloudstack/core/spring-engine-schema-core-daos-context.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not instantiate
bean class [com.cloud.storage.dao.StoragePoolTagsDaoImpl]: Constructor
threw exception; nested exception is java.lang.IllegalArgumentException:
Superclass has no null constructors but no arguments were given
        at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:526)
        at
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
        at
org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:295)

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