Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 38890 invoked from network); 21 Aug 2005 12:58:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Aug 2005 12:58:30 -0000 Received: (qmail 23876 invoked by uid 500); 21 Aug 2005 12:58:28 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 23858 invoked by uid 500); 21 Aug 2005 12:58:28 -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 23845 invoked by uid 99); 21 Aug 2005 12:58:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Aug 2005 05:58:27 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=HTML_20_30,HTML_MESSAGE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of clinton.begin@gmail.com designates 64.233.184.193 as permitted sender) Received: from [64.233.184.193] (HELO wproxy.gmail.com) (64.233.184.193) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Aug 2005 05:58:45 -0700 Received: by wproxy.gmail.com with SMTP id i28so815236wra for ; Sun, 21 Aug 2005 05:58:25 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=WcIsxAjnpoOQOX54s1AdeyGPEcFxlchLkBXRVhMa/QGkHq8OmKNxrgTMt7WgG0fsubUd2b97Rg1OwueVfuNAUDzoELtghows+yfMTUN6PzgesPa2mVmjnLGJN0aR3po16zYWsCYArwFwlPwoxLMXwcSaC27EzN2EMWurYCF9Upo= Received: by 10.54.36.35 with SMTP id j35mr3390715wrj; Sun, 21 Aug 2005 05:58:25 -0700 (PDT) Received: by 10.54.93.11 with HTTP; Sun, 21 Aug 2005 05:58:25 -0700 (PDT) Message-ID: <16178eb105082105582d77997@mail.gmail.com> Date: Sun, 21 Aug 2005 06:58:25 -0600 From: Clinton Begin Reply-To: cbegin@ibatis.com To: user-java@ibatis.apache.org Subject: Re: Are public enums allowed? In-Reply-To: <6FFD83BF-D923-42C9-BE03-22173505EC7A@sun.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8545_17604286.1124629105402" References: <6FFD83BF-D923-42C9-BE03-22173505EC7A@sun.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_8545_17604286.1124629105402 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hmmm.... Could it be: reporting.viewer.domain.Report$Frequency ??=20 Try doing a little test that displays the fully qualified name of the enum= =20 class. Cheers, Clinton On 8/19/05, Nathan Maves wrote: >=20 > I have a Class Report that has some public enums. I was hoping to > map these to data in the database by way of a custom type handler. >=20 >=20 > callback=3D"reporting.viewer.dao.ibatis.FrequencyHandler"/> >=20 >=20 > but I get this error? > Caused by: com.ibatis.dao.client.DaoException: Error while > configuring DaoManager. Cause: java.lang.RuntimeException: Error > occurred. Cause: com.ibatis.common.xml.NodeletException: Error > parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath > '/sqlMapConfig/typeHandler'. Cause: > com.ibatis.sqlmap.client.SqlMapException: Error registering > occurred. Cause: java.lang.ClassNotFoundException: > reporting.viewer.domain.Report.Frequency > Caused by: java.lang.ClassNotFoundException: > reporting.viewer.domain.Report.Frequency > Caused by: java.lang.RuntimeException: Error parsing XPath '/ > sqlMapConfig/typeHandler'. Cause: > com.ibatis.sqlmap.client.SqlMapException: Error registering > occurred. Cause: java.lang.ClassNotFoundException: > reporting.viewer.domain.Report.Frequency > Caused by: java.lang.ClassNotFoundException: > reporting.viewer.domain.Report.Frequency > Caused by: java.lang.RuntimeException: Error occurred. Cause: > com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: > java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/ > typeHandler'. Cause: com.ibatis.sqlmap.client.SqlMapException: Error > registering occurred. Cause: java.lang.ClassNotFoundException: > reporting.viewer.domain.Report.Frequency > Caused by: java.lang.ClassNotFoundException: > reporting.viewer.domain.Report.Frequency > Caused by: java.lang.RuntimeException: Error parsing XPath '/ > sqlMapConfig/typeHandler'. Cause: > com.ibatis.sqlmap.client.SqlMapException: Error registering > occurred. Cause: java.lang.ClassNotFoundException: > reporting.viewer.domain.Report.Frequency > Caused by: java.lang.ClassNotFoundException: > reporting.viewer.domain.Report.Frequency > at > com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.buildDaoManager > (XmlDaoManagerBuilder.java:126) > at com.ibatis.dao.client.DaoManagerBuilder.buildDaoManager > (DaoManagerBuilder.java:59) > at reporting.viewer.dao.DaoConfig.(DaoConfig.java:37) >=20 > ------=_Part_8545_17604286.1124629105402 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hmmm....


Could it be:  reporting.viewer.domain.Report$Frequency

??

Try doing a little test that displays the fully qualified name of the enum = class.

Cheers,
Clinton

On 8/19/05, Nathan Maves <Nathan.Mav= es@sun.com> wrote:
I have a Class Report that has some public enums.  I was hoping t= o
map these to data in the database by way of a custom type handler.
=

<typeHandler javaType=3D"reporting.viewer.domain.Report.Fre= quency"
callback=3D"reporting.viewer.dao.ibatis.FrequencyHandler"/>= ;


but I get this error?
Caused by: com.ibatis.dao.client.DaoE= xception: Error while
configuring DaoManager.  Cause: java.lan= g.RuntimeException : Error
occurred.  Cause: com.ibatis.common.xml.NodeletExcepti= on: Error
parsing XML.  Cause: java.lang.RuntimeException: Err= or parsing XPath
'/sqlMapConfig/typeHandler'.  Cause:
com.i= batis.sqlmap.client.SqlMapException : Error registering
occurred.  Cause: java.lang.ClassNotFoundE= xception:
reporting.viewer.domain.Report.Frequency
Caused by: java.la= ng.ClassNotFoundException:
reporting.viewer.domain.Report.Frequency
C= aused by:=20 java.lang.RuntimeException: Error parsing XPath '/
sqlMapConfig/typeHand= ler'.  Cause:
com.ibatis.sqlmap.client.SqlMapException: Error = registering
occurred.  Cause: java.lang.ClassNotFoundException= :
reporting.viewer.domain.Report.Frequency
Caused by: java.lang.ClassNotFoundException:
reporting.viewer.domain= .Report.Frequency
Caused by: java.lang.RuntimeException: Error occurred.=   Cause:
com.ibatis.common.xml.NodeletException: Error parsing= XML.  Cause:
java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/
type= Handler'.  Cause: com.ibatis.sqlmap.client.SqlMapException: Error=
registering occurred.  Cause: java.lang.ClassNotFoundExceptio= n:
reporting.viewer.domain.Report.Frequency
Caused by: java.lang.ClassNotFoundException:
reporting.viewer.domain= .Report.Frequency
Caused by: java.lang.RuntimeException: Error parsing X= Path '/
sqlMapConfig/typeHandler'.  Cause:
com.ibatis.sqlma= p.client.SqlMapException : Error registering
occurred.  Cause: java.lang.ClassNotFoundE= xception:
reporting.viewer.domain.Report.Frequency
Caused by: java.la= ng.ClassNotFoundException:
reporting.viewer.domain.Report.Frequency
&= nbsp;        at
com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.buildDaoManager<= br>(XmlDaoManagerBuilder.java:126)
      &= nbsp;  at com.ibatis.dao.client.DaoManagerBuilder.buildDaoManager
(= DaoManagerBuilder.java:59)
       &nb= sp; at=20 reporting.viewer.dao.DaoConfig.<clinit>(DaoConfig.java:37)


------=_Part_8545_17604286.1124629105402--