Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 14777 invoked from network); 30 May 2006 08:55:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 May 2006 08:55:49 -0000 Received: (qmail 53295 invoked by uid 500); 30 May 2006 08:55:12 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 48578 invoked by uid 500); 30 May 2006 08:54:48 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 45402 invoked by uid 99); 30 May 2006 08:54:25 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2006 01:54:25 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [83.247.21.91] (HELO wis.nl) (83.247.21.91) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 May 2006 00:53:41 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: InstantiationException on my OrderIbatisDaowhen instantiating ,please help X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Date: Tue, 30 May 2006 09:53:14 +0200 Message-ID: <50CA25BD6EEA954FA592C097399942E30E46433F@CM1.wis.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: InstantiationException on my OrderIbatisDaowhen instantiating ,please help thread-index: AcaDjjvj2VtktzLxQo+8z7XWAjKlMwADwBWQAAg0S9A= From: "Niels Beekman" To: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Your constructor is package-level accessible, change it to public: public class OrderIbatisDao extends SqlMapDaoTemplate implements IOrderDao{ =20 _public_ OrderIbatisDao(DaoManager daoManager){ super(daoManager); } } -----Original Message----- From: levan Dvalishvili [mailto:admin@amostudio.com]=20 Sent: dinsdag 30 mei 2006 7:42 To: user-java@ibatis.apache.org Subject: InstantiationException on my OrderIbatisDaowhen instantiating ,please help I have looked all over the email-archives + consulted goole, finally gave up ... ;( cant quite find an answer.. For some reason : daoManager =3D DaoManagerBuilder.buildDaoManager(reader);=20 throws exception I don't know what can be the reason ... ---- stack trace --------------- Caused by: java.lang.RuntimeException: Could not initialize DaoConfig. Cause: com.ibatis.dao.client.DaoException: Error while configuring DaoManager. Cause: com.ibatis.dao.client.DaoException: Error configuring DAO. Cause: java.lang.InstantiationException: com.amostudio.geomobil.persistance.ibatisDAO.OrderIbatisDao Caused by: java.lang.InstantiationException: com.amostudio.geomobil.persistance.ibatisDAO.OrderIbatisDao Caused by: com.ibatis.dao.client.DaoException: Error configuring DAO. Cause: java.lang.InstantiationException: com.amostudio.geomobil.persistance.ibatisDAO.OrderIbatisDao Caused by: java.lang.InstantiationException: com.amostudio.geomobil.persistance.ibatisDAO.OrderIbatisDao ---- end of stack trace ---------------- =20 Is it something to do with instantiating my OrderIbatisDao, but OrderIbatisDao seems quite normal, As a fact I totally stripped it to see if it still breaks and I narrowed it down to this : public interface IOrderDao extends Dao{} // I tried without extends Dao first same error public class OrderIbatisDao extends SqlMapDaoTemplate implements IOrderDao{ =20 OrderIbatisDao(DaoManager daoManager){ super(daoManager); } } Still getting same error, I checked and xml resources dao.xml and sql-map-config.xml files get loaded correctly . ------------------------ Now I am going to re-read DAO dev-guide maybe there can be the answer. Every suggestion would be greatly appreciated; maybe someone already had this kind of issue before. Best Regards Levan.