All,
   See attached map file that is causing the error. (i switched to a different 
email address)
 
 ...  <resultMaps>   <resultMap id="Grades-result" 
class="System.Web.UI.WebControls.ListItem">   <result property="Text" 
column="grade" />   <result property="Value" column="grade_id" />  </resultMap>
 </resultMaps>   <select id="GetGrades" resultMap="Grade-result">  select 
grade_id, grade  from tbl_Grade  order by grade </select>  ....
 
 
Vince> Subject: V3 type resolve error (UNCLASSIFIED)> Date: Wed, 5 Nov 2008 
10:59:14 -0500> From: [EMAIL PROTECTED]> To: [email protected]> > 
Classification: UNCLASSIFIED > Caveats: NONE> > All,> I'm having a problem with 
ibatis V3 when attempting to map to the> class 
System.Web.UI.WebControls.ListItem. It seems that ibatis cannot resolve> 
ListItem (we stick data in the ListItem class for simple lookups instead of> 
creating a new class)> > I've tried aliasing the class explicitly, but this 
fails. See exception> below. > > Any ideas?> > Vince> > > 
=======================================================================> 
Exception has been thrown by the target of an invocation.> at 
System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[]> 
arguments, SignatureStruct& sig, MethodAttributes methodAttributes,> 
RuntimeTypeHandle typeOwner)> at 
System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[]> arguments, 
Signature sig, MethodAttributes methodAttributes,> RuntimeTypeHandle 
typeOwner)> at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, 
BindingFlags> invokeAttr, Binder binder, Object[] parameters, CultureInfo 
culture, Boolean> skipVisibilityChecks)> at 
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags> 
invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)> at 
System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)> at 
JobRunner.ExecuteCode.Main(String[] args)> Object reference should not be equal 
to null when resolving type name:> System.Web.UI.WebControls.ListItem. Cause: A 
type alias for this type is not> registered.> at 
Apache.Ibatis.Common.Contracts.Contract.ThrowAnException(String> message)> at 
Apache.Ibatis.Common.Contracts.ContractMessage.When(String message)> at> 
Apache.Ibatis.Common.Utilities.TypesResolver.TypeResolver.ResolveType(String> 
typeName)> at> 
Apache.Ibatis.Common.Utilities.TypesResolver.TypeResolver.Resolve(String> 
typeName)> at> 
Apache.Ibatis.Common.Utilities.TypesResolver.CachedTypeResolver.Resolve(Strin> 
g typeName)> at Apache.Ibatis.Common.Utilities.TypeUtils.ResolveType(String 
typeName)> at 
Apache.Ibatis.DataMapper.TypeHandlers.TypeHandlerFactory.GetType(String> 
className)> at> 
Apache.Ibatis.DataMapper.Configuration.Serializers.ResultMapDeSerializer.Dese> 
rialize(IConfiguration config, DataExchangeFactory dataExchangeFactory,> 
WaitResultPropertyResolution waitResultPropertyResolution,> 
WaitDiscriminatorResolution waitDiscriminatorResolution)> at> 
Apache.Ibatis.DataMapper.Configuration.DefaultModelBuilder.BuildResultMaps(IC> 
onfigurationStore store)> at> 
Apache.Ibatis.DataMapper.Configuration.DefaultModelBuilder.BuildModel(Configu> 
rationSetting configurationSetting, IConfigurationStore store)> at> 
Apache.Ibatis.DataMapper.Configuration.DefaultConfigurationEngine.BuildMapper> 
Factory()> at> 
IIFData.SystemFramework.DataAccess.IBatis.v3.BaseIBatisv3DAO.InitMapper()> at 
IIFData.SystemFramework.DataAccess.IBatis.v3.BaseIBatisv3DAO.Mapper()> at 
NGB.HRMS.DataAccess.MSSQL.Orders.OrderDAO.GetUnImplementedOrders()> at 
NGB.HRMS.Service.OrderService.ProcessOrders()> 
=======================================================================> 
Classification: UNCLASSIFIED > Caveats: NONE> 
_________________________________________________________________
Stay up to date on your PC, the Web, and your mobile phone with Windows Live
http://clk.atdmt.com/MRT/go/119462413/direct/01/

Reply via email to