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