Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 99360 invoked from network); 8 Sep 2008 07:57:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Sep 2008 07:57:59 -0000 Received: (qmail 95222 invoked by uid 500); 8 Sep 2008 07:57:50 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 95207 invoked by uid 500); 8 Sep 2008 07:57:50 -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 95196 invoked by uid 99); 8 Sep 2008 07:57:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Sep 2008 00:57:50 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [83.247.21.92] (HELO mail.local.wis.nl) (83.247.21.92) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 08 Sep 2008 07:56:52 +0000 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C91188.69FC1F48" X-MimeOLE: Produced By Microsoft Exchange V6.5 Subject: RE: java.lang.InstantiationException using Ibatis DAO Date: Mon, 8 Sep 2008 09:55:56 +0200 Message-ID: <50CA25BD6EEA954FA592C097399942E319B53E70@CM1.wis.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: java.lang.InstantiationException using Ibatis DAO thread-index: AckRgoJa5U/ZmfK3QdeIUIIqWJRhRgABcTGg References: <50CA25BD6EEA954FA592C097399942E319B53E60@CM1.wis.local> From: "Niels Beekman" To: X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------_=_NextPart_001_01C91188.69FC1F48 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Can you post the complete stacktrace? =20 ________________________________ From: Paul Ski [mailto:paulski82@hotmail.com]=20 Sent: Monday, September 08, 2008 9:14 AM To: user-java@ibatis.apache.org Subject: RE: java.lang.InstantiationException using Ibatis DAO =20 My DAO and DAOImlp classes were generated by Ibator. The only generated constructor for AliasesDAOImpl is below: =20 ---snip--- /** * This method was generated by Abator for iBATIS. This method corresponds to the database table aliases * @abatorgenerated Fri Sep 05 23:35:30 EST 2008 */ public AliasesDAOImpl ( SqlMapClient sqlMapClient ) { super (); this.sqlMapClient =3D sqlMapClient; } ---snip--- Is there a config option for abatorConfig.xml that tells Ibator to build classes including a constructor that takes a DaoManager object? =20 Thanks, =20 Paul ________________________________ Subject: RE: java.lang.InstantiationException using Ibatis DAO Date: Mon, 8 Sep 2008 08:56:37 +0200 From: n.beekman@wis.nl To: user-java@ibatis.apache.org Your AliasesDaoImpl should have a public constructor that takes a DaoManager as its single argument. Can you check that this is the case? =20 Hth, =20 Niels ------_=_NextPart_001_01C91188.69FC1F48 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Can you post the complete = stacktrace?

 


From: Paul = Ski [mailto:paulski82@hotmail.com]
Sent: Monday, September = 08, 2008 9:14 AM
To: = user-java@ibatis.apache.org
Subject: RE: java.lang.InstantiationException using Ibatis = DAO

 

My DAO and DAOImlp classes = were generated by Ibator.  The only generated constructor for AliasesDAOImpl is below:
 
---snip---
 /**
  * This method was generated by Abator for iBATIS. This method corresponds to the database table aliases
  * @abatorgenerated  Fri Sep 05 23:35:30 EST 2008
  */
 public AliasesDAOImpl ( SqlMapClient sqlMapClient )
 {
  super ();
  this.sqlMapClient =3D sqlMapClient;
 }
---snip---

Is there a config option for abatorConfig.xml that tells Ibator to build classes including a constructor that takes a DaoManager object?
 
Thanks,
 
Paul



Subject: RE: java.lang.InstantiationException using Ibatis DAO
Date: Mon, 8 Sep 2008 08:56:37 +0200
From: n.beekman@wis.nl
To: user-java@ibatis.apache.org

Your AliasesDaoImpl should have a = public constructor that takes a DaoManager as its single argument. Can you = check that this is the case?

 

Hth,

 

Niels

------_=_NextPart_001_01C91188.69FC1F48--