Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 91543 invoked from network); 24 Jul 2007 19:21:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jul 2007 19:21:02 -0000 Received: (qmail 82765 invoked by uid 500); 24 Jul 2007 19:21:00 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 82749 invoked by uid 500); 24 Jul 2007 19:21:00 -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 82738 invoked by uid 99); 24 Jul 2007 19:21:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 12:21:00 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 12:20:56 -0700 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IDPvv-0000Ud-RF for user-java@ibatis.apache.org; Tue, 24 Jul 2007 12:20:35 -0700 Message-ID: <11770055.post@talk.nabble.com> Date: Tue, 24 Jul 2007 12:20:35 -0700 (PDT) From: coolfire To: user-java@ibatis.apache.org Subject: Re: jUnit test, NodeletException In-Reply-To: <1185299234.3547.0.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: Marco_KE@web.de References: <11759754.post@talk.nabble.com> <11767145.post@talk.nabble.com> <1185298937.3287.5.camel@localhost.localdomain> <1185299234.3547.0.camel@localhost.localdomain> X-Virus-Checked: Checked by ClamAV on apache.org thanks chris! now it's working. I just put UTF-16 because i got following error in my xml-viewer: Character conversion error: "Malformed UTF-8 char -- is an XML encoding declaration missing?" (line number may be too low). SqlMapConfig.xml I created now a new file and put all my staff into and then it worked with UTF-8. Maybe I got some UTF-16 characters by copying from a tutorial. BTW, how did you saw the BOM? Chris Lamey wrote: > > BTW, if you change the file's encoding from UTF-16 to UTF-8, you will > definitely need to get rid of the first two bytes. > > On Tue, 2007-07-24 at 11:42 -0600, Chris Lamey wrote: >> Hello, >> >> Is the file really UTF-16 and if so, is your jvm default encoding >> UTF-16? >> >> I cut and paste your file into one on my filesystem and saw a BOM before >> the first line. My guess is that the xml parser is choking on that. >> You either need to set your jvm default encoding correctly >> (-Dfile.encoding=UTF-16) so the jvm handles the BOM correctly or you >> need to change the encoding attribute in the file from UTF-16 to UTF-8. >> You could also try removing the first two bytes in the file, but then >> the file loses it's byte order marking. >> >> Cheers, >> Chris >> >> On Tue, 2007-07-24 at 10:14 -0700, coolfire wrote: >> > >> > >> > > > PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN" >> > "http://ibatis.apache.org/dtd/sql-map-config-2.dtd"> >> > >> > >> > >> > >> > >> > >> > >> > > > value="com.mysql.jdbc.Driver"/> >> > > > value="jdbc:mysql://87.xxx.xx.xxx:1111/mySchema"/> >> > >> > >> > >> > >> > >> > > > -- View this message in context: http://www.nabble.com/jUnit-test%2C-NodeletException-tf4134769.html#a11770055 Sent from the iBATIS - User - Java mailing list archive at Nabble.com.