Return-Path: Delivered-To: apmail-incubator-ibatis-user-java-archive@www.apache.org Received: (qmail 51979 invoked from network); 11 Mar 2005 18:43:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Mar 2005 18:43:14 -0000 Received: (qmail 54646 invoked by uid 500); 11 Mar 2005 18:43:13 -0000 Delivered-To: apmail-incubator-ibatis-user-java-archive@incubator.apache.org Received: (qmail 54625 invoked by uid 500); 11 Mar 2005 18:43:13 -0000 Mailing-List: contact ibatis-user-java-help@incubator.apache.org; run by ezmlm Precedence: bulk Reply-To: ibatis-user-java@incubator.apache.org List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list ibatis-user-java@incubator.apache.org Delivered-To: moderator for ibatis-user-java@incubator.apache.org Received: (qmail 82581 invoked by uid 99); 11 Mar 2005 14:03:47 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=HTML_MESSAGE,HTML_TEXT_AFTER_BODY,HTML_TEXT_AFTER_HTML,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C52643.20332643" Subject: SQLMap, mapping from SQL CHAR(1) to Java char ? Date: Fri, 11 Mar 2005 15:03:39 +0100 Message-ID: <013F0E81D349EC42A14CD3242BC61AFF6EBC34@sch-mail-06.schibsted.no> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: SQLMap, mapping from SQL CHAR(1) to Java char ? Thread-Index: AcUmQyA2/hpf4JBnSmGshhlgf4gUHw== From: To: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C52643.20332643 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi there! =20 Can't find anything about this issue in the developer guide, and I get = this message: =20 com.ibatis.common.exception.NestedRuntimeException: Error occurred. = Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. = Cause: com.ibatis.common.exception.NestedRuntimeException: Error parsing = XPath '/sqlMapConfig/sqlMap'. Cause: = com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: = com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath = '/sqlMap/resultMap/result'. Cause: = com.ibatis.common.exception.NestedRuntimeException: Error. Could not = set TypeHandler. Cause: java.lang.ClassNotFoundException: char Caused by: java.lang.ClassNotFoundException: char =20 --- =20 Of cource it can't find class "char", but since char is a primitive type = as int, boolean, I was hoping SQLMap was suporting this ? =20 I guess I need to change my char to String ??? =20 --- =20 Btw, I'm impressed by SQLMap anyway, it even manage to map my: =20 CHAR(1) "1" to java boolean true and CHAR(1) "0" to java boolean false =20 Automaticaly :-)=20 =20 =20 =20 Thanks for any help on this! =20 Best regards, Erlend Bj=F8rge ------_=_NextPart_001_01C52643.20332643 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Melding
Hi=20 there!
 
Can't = find anything=20 about this issue in the developer guide,  and I get this=20 message:
 
com.ibatis.common.exception.NestedRuntimeException: Error = occurred. =20 Cause: com.ibatis.common.xml.NodeletException: Error parsing XML.  = Cause:=20 com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath=20 '/sqlMapConfig/sqlMap'.  Cause: = com.ibatis.common.xml.NodeletException:=20 Error parsing XML.  Cause:=20 com.ibatis.common.exception.NestedRuntimeException: Error parsing XPath=20 '/sqlMap/resultMap/result'.  Cause:=20 com.ibatis.common.exception.NestedRuntimeException: Error.  Could = not set=20 TypeHandler.  Cause: java.lang.ClassNotFoundException: = char
Caused by:=20 java.lang.ClassNotFoundException: char
 
---
 
Of = cource it can't=20 find class "char", but since char is a primitive type as int, boolean, I = was=20 hoping
SQLMap = was suporting=20 this ?
 
I guess I need to change my char to String=20 ???
 
---
 
Btw, = I'm impressed=20 by SQLMap anyway, it even manage to map my:
 
CHAR(1)  "1"  to java boolean true =20 and
CHAR(1)  "0"  to java boolean=20 false
 
Automaticaly :-)
 
 
 
Thanks for any help on = this!
 
Best regards,
Erlend = Bj=F8rge
=00 ------_=_NextPart_001_01C52643.20332643--