Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 51997 invoked from network); 15 Sep 2008 16:58:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Sep 2008 16:58:04 -0000 Received: (qmail 93922 invoked by uid 500); 15 Sep 2008 16:57:54 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 93901 invoked by uid 500); 15 Sep 2008 16:57:54 -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 93890 invoked by uid 99); 15 Sep 2008 16:57:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Sep 2008 09:57:54 -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, 15 Sep 2008 16:56:56 +0000 Content-class: urn:content-classes:message Subject: RE: java.lang.InstantiationException using Ibatis DAO MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C91754.06487B78" Date: Mon, 15 Sep 2008 18:56:29 +0200 Message-ID: <50CA25BD6EEA954FA592C097399942E319B54001@CM1.wis.local> X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: java.lang.InstantiationException using Ibatis DAO thread-index: AckXNAq1atT5rvabRmqEwZmrll+zfgAH8lzg References: <50CA25BD6EEA954FA592C097399942E319B53E60@CM1.wis.local> <50CA25BD6EEA954FA592C097399942E319B53E70@CM1.wis.local> <50CA25BD6EEA954FA592C097399942E319B53E74@CM1.wis.local> <50CA25BD6EEA954FA592C097399942E319B53ED2@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_01C91754.06487B78 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable At least I got that part right. I'm glad you resolved the issue. You might want to document this on the wiki, it could be of help to others =20 Niels ________________________________ From: Paul Ski [mailto:paulski82@hotmail.com]=20 Sent: Monday, September 15, 2008 3:07 PM To: user-java@ibatis.apache.org Subject: RE: java.lang.InstantiationException using Ibatis DAO =20 The problem was with my Ibator config file. I changed the line from: =20 ---snip--- ---snip--- =20 to: =20 ---snip--- ---snip--- =20 This caused my to generate AliasesDAOImpl with the correct constructor. E.g.: =20 ---snip--- ... public class AliasesDAOImpl extends SqlMapDaoTemplate implements AliasesDAO { /** * This method was generated by Abator for iBATIS. This method corresponds to the database table aliases * @abatorgenerated Mon Sep 15 22:48:36 EST 2008 */ public AliasesDAOImpl ( DaoManager daoManager ) { super ( daoManager ); } =20 ... ---snip--- =20 Thanks, =20 Paul ------_=_NextPart_001_01C91754.06487B78 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

At least I got that part right. = I’m glad you resolved the issue. You might want to document this on the wiki, it = could be of help to others

 

Niels


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

 

The problem = was with my Ibator config file.  I changed the line from:
 
---snip---
<daoGenerator = targetPackage=3D"com.intient.smash.ibatis.impl" targetProject=3D"Smash" type=3D"GENERIC-CI" = />
---snip---
 
to:
 
---snip---
<daoGenerator = targetPackage=3D"com.intient.smash.ibatis.impl" targetProject=3D"Smash" type=3D"IBATIS" />
---snip---
 
This caused my to generate AliasesDAOImpl with the correct constructor. = E.g.:
 
---snip---
...

public class AliasesDAOImpl extends SqlMapDaoTemplate implements = AliasesDAO
{
 /**
  * This method was generated by Abator for iBATIS. This method corresponds to the database table aliases
  * @abatorgenerated  Mon Sep 15 22:48:36 EST 2008
  */
 public AliasesDAOImpl ( DaoManager daoManager )
 {
  super ( daoManager );
 }
 
...
---snip---
 
Thanks,
 
Paul


------_=_NextPart_001_01C91754.06487B78--