ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: Are public enums allowed?
Date Sun, 21 Aug 2005 12:58:25 GMT
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.Maves@sun.com> wrote:
> 
> 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.
> 
> 
> <typeHandler javaType="reporting.viewer.domain.Report.Frequency"
> callback="reporting.viewer.dao.ibatis.FrequencyHandler"/>
> 
> 
> 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.<clinit>(DaoConfig.java:37)
> 
>

Mime
View raw message