You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by Ananth Rajarman - Clue Design <an...@cluedesign.com.au> on 2007/02/05 06:07:59 UTC
Could not configure ResultMap
Hi All.
I have just started converted my project from .NET 1.1 to .NET 2.0. I
had been using IBatis as my Data Access Layer in 1.1 and was working
perfectly fine. As soon as I ported the application to .NET 2.0 I get
the error:
Could not configure ResultMap. ResultMap named "NewsDataResult" not
found, failed.
Cause: Object reference not set to an instance of an object.
Below is the snapshot of the XML.
<?xml version="1.0" encoding="utf-8" ?>
<sqlMap namespace="NewsDataMap"
xmlns="http://ClueDAL.CluePortal.org/mapping"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<alias>
<typeAlias alias="NewsData"
type="ClueDAL.Domain.News_3_0.NewsData,ClueDAL" />
</alias>
<resultMaps>
<resultMap id="NewsDataResult" class="NewsData">
<result property="Id" column="id" type="int" dbType="Int"/>
<result property="Title" column="title" type="string"
dbType="varchar"/>
</resultMap>
</resultMaps>
<parameterMap>
.
.
.
</parameterMap>
<statements>
<procedure id="SelectAllNewsDataForMember"
parameterMap="SelectAllNewsParameter" resultClass="NewsDataResult">
sp_news_NewsHeadlinesForMember
</procedure>
</statements>
Could anybody throw some light on this please.
PS: I haven't made any changes to the code or XML which worked in .NET
1.1