Getting following exception with dynamic quer

RohitVohra
2004-12-02
2013-04-11
  • RohitVohra
    RohitVohra
    2004-12-02

    Hi..

         I'm getting the following exception while working with Dynamic query :

    <select id="selectAll" resultClass="com.axacr.ectest.dataaccess.PersonBean" parameterClass="com.axacr.ectest.dataaccess.PersonBean">
        Select name,id from person
        <isNotNull prepend=where" property="name">
          NAME = #name#
         </isNotNull>
    </select>

    --- The error occurred in com/axacr/ectest/dataaccess/sel.xml. 
    --- The error occurred while loading the SQL Map resource. 
    --- Cause: com.ibatis.sqlmap.client.SqlMapException: XML Parser Error.  Cause: java.io.UTFDataFormatException: Invalid byte 3 of 3-byte UTF-8 sequence.
    Caused by: java.io.UTFDataFormatException: Invalid byte 3 of 3-byte UTF-8 sequence.
    Caused by: com.ibatis.sqlmap.client.SqlMapException: XML Parser Error.  Cause: java.io.UTFDataFormatException: Invalid byte 3 of 3-byte UTF-8 sequence.
    Caused by: java.io.UTFDataFormatException: Invalid byte 3 of 3-byte UTF-8 sequence.
        at com.ibatis.sqlmap.engine.builder.xml.XmlSqlMapClientBuilder.buildSqlMap(XmlSqlMapClientBuilder.java:204)
        at com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:49)

    Am I using the dynamic element in a wrong manner ?? Please help.

    Thanx,
    Rohit

     
    • Brandon Goodin
      Brandon Goodin
      2004-12-02

      Please move this to the java user mailing list. You can subscribe here.

      http://www.ibatis.com/support.html