ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Lamey <cla...@localmatters.com>
Subject Re: jUnit test, NodeletException
Date Tue, 24 Jul 2007 17:42:17 GMT

Is the file really UTF-16 and if so, is your jvm default encoding

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.


On Tue, 2007-07-24 at 10:14 -0700, coolfire wrote:
> <?xml version="1.0" encoding="UTF-16" ?>
> <!DOCTYPE sqlMapConfig
> PUBLIC "-//ibatis.apache.org//DTD SQL Map Config 2.0//EN"
>         "http://ibatis.apache.org/dtd/sql-map-config-2.dtd">
> <sqlMapConfig>
>         <transactionManager type="JDBC">
>                 <dataSource type="SIMPLE">
>                         <property name="JDBC.Driver"
> value="com.mysql.jdbc.Driver"/>
>                         <property name="JDBC.ConnectionURL"
> value="jdbc:mysql://87.xxx.xx.xxx:1111/mySchema"/>
>                         <property name="JDBC.Username" value="xxx"/>
>                         <property name="JDBC.Password" value="xxx"/>
>                 </dataSource>
>         </transactionManager>
> </sqlMapConfig> 

View raw message