Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 29659200BB3 for ; Wed, 2 Nov 2016 19:40:09 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 281C8160AFB; Wed, 2 Nov 2016 18:40:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 6C22C160AF0 for ; Wed, 2 Nov 2016 19:40:08 +0100 (CET) Received: (qmail 75918 invoked by uid 500); 2 Nov 2016 18:40:07 -0000 Mailing-List: contact dev-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list dev@cloudstack.apache.org Received: (qmail 75901 invoked by uid 99); 2 Nov 2016 18:40:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Nov 2016 18:40:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 95F93180481 for ; Wed, 2 Nov 2016 18:40:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.629 X-Spam-Level: ** X-Spam-Status: No, score=2.629 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id upuZ-Ct_XJ-p for ; Wed, 2 Nov 2016 18:40:05 +0000 (UTC) Received: from mail-oi0-f49.google.com (mail-oi0-f49.google.com [209.85.218.49]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 3C9A95F24F for ; Wed, 2 Nov 2016 18:40:05 +0000 (UTC) Received: by mail-oi0-f49.google.com with SMTP id x4so30430579oix.2 for ; Wed, 02 Nov 2016 11:40:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=htnySnm2sOJSqQAIiMP/FBC9KKGpRVjwB8fmJD7BOHM=; b=BN0pXTBQ76M33ALoKkfb2+8GCqFqhCXrJ59fCsodSPEtn8/oWP40RF3G6LQxaPdYv6 hAlVIK6CDDLLYoH8JGypNS1iA+KvgGhTPmOhwUkdMfhwfh2r4gygZ+ep73buOqPdSjsb BKBfNoaH+LN5a+kk9F1q43LCjfmCqGLn+Q4dSg8bK6+16Qv8LZPjH0WP6NttRZGQ3eEn xw9WR0ZJ2WTGDluE+pMWL+c+P9f7gj9y1sCHA4pRjL3BjILsyjm5WXN3DFdns+ZQcuxC zcmVbo+sH+66PX1oeN4eD2RnvSAXhB+chS95OFXq7hM+7+Un1gTKITlqwtG1U9PqTUNr lpgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=htnySnm2sOJSqQAIiMP/FBC9KKGpRVjwB8fmJD7BOHM=; b=d5lgOCoyt0L8vfRmeTobGIYx7Nx2AIUGqqnMpjNIasE3DzQJ9xS5G5o517uBqw1XWr 0fQQJkIyruAInXIGDROQvtK4kt+4c611Ygubv2EwsPbodbgx1nzAEi9Yx7lzCYCtMc8F TWOsr1wpbQ29cv5lPyd72Xrf8d2Ajzodykx4JqTSLKBpntQQNcbIopIaLYB1qtMt1udo e+rk6csGcju3khwOC6U6QVUBfuaAqpfNCktoialyn47sFz2W37nyWljgFxihG6B8ovb1 vVdrLm27u6dhMysXxSP1+q7t+C4gnzheDyeS4jK7VdFbxdIAjR2butJmCRZY2wsa/NdL Uf9g== X-Gm-Message-State: ABUngvces9PDzxtFLAF1GiuPUmi/3+wmuaSp+XT16Y8/+YN3zCoyASbTkVBksgAWsD9VX12Xy8LTn9Tw1AGq+Q== X-Received: by 10.107.161.141 with SMTP id k135mr6526194ioe.39.1478111943197; Wed, 02 Nov 2016 11:39:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.178.212 with HTTP; Wed, 2 Nov 2016 11:39:02 -0700 (PDT) From: =?UTF-8?B?Tmljb2zDoXMgVsOhenF1ZXo=?= Date: Wed, 2 Nov 2016 15:39:02 -0300 Message-ID: Subject: Spring errors when creating new DAO To: dev@cloudstack.apache.org Content-Type: multipart/alternative; boundary=001a1140ffb6500a10054055c1db archived-at: Wed, 02 Nov 2016 18:40:09 -0000 --001a1140ffb6500a10054055c1db Content-Type: text/plain; charset=UTF-8 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) --001a1140ffb6500a10054055c1db--