I am using sqlmap 1.6 now and got the following errors:
Unhandled Exception: IBatisNet.Common.Exceptions.ConfigurationException:
- The error occurred while loading SqlMap.
- loading select tag
- The error occurred in <sqlMap resource="../../dao/User_TableDao.xml" xmlns="ht
tp://ibatis.apache.org/dataMapper" />.
- Check the getListTables. ---> System.NullReferenceException: Object reference
not set to an instance of an object.
at IBatisNet.Common.Utilities.Objects.ObjectFactory.CreateFactory(Type typeTo
Create, Type[] types)
at IBatisNet.DataMapper.Configuration.Statements.Statement.Initialize(Configu
rationScope configurationScope)
  at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.ConfigureSqlMap()
  at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Initialize()
at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument docu ment, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao
)
  --- End of inner exception stack trace ---
at IBatisNet.DataMapper.Configuration.DomSqlMapBuilder.Build(XmlDocument docu ment, DataSource dataSource, Boolean useConfigFileWatcher, Boolean isCallFromDao
.......................

here is the map file:
<?xml version="1.0" encoding="UTF-8" ?>
<sqlMap namespace="User_Table"
       xmlns="http://ibatis.apache.org/mapping";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  <!-- ================================= -->
  <!-- =========== ORACLE ============== -->
  <!-- ================================= -->
  <alias>
<typeAlias alias="user_table" type="HelloWorld.domain.User_Table, HelloWorld"/> <typeAlias alias="user_table_list" type="HelloWorld.domain.User_TableList, HelloWorld"/>
  </alias>
  <statements>
     <select id="getListTables"
             resultClass="user_table"
             listClass ="user_table_list">
        SELECT
        TABLE_NAME
        FROM
        USER_TABLES
        ORDER BY 1
     </select>
  </statements>
</sqlMap>

This map file works with 1.3 and now if didn't work for 1.6.

How to fix it?

-Henry

Reply via email to