I don't have any ideas, but if you're new to iBatis, I assume you've checked the inner exception. iBatis often puts tidbits in there that are helpful if it's a configuration issue (which it doesn't look like at first glance).
-----Original Message----- From: Chick, Brian [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 15, 2007 3:42 PM To: [email protected] Subject: GroupBy & Constructors I'm trying to use the groupBy attribute in conjunction with a constructor. When using the groupBy attribute with the default no-args constructor, it works great. Having issues using it when specifing a constructor. My resultmap that looks like this: <resultMap id="ResultId" class="ResultClass" groupBy="TheUniqueId"> <constructor> <argument argumentName="inUniqueId" column="ID" dbType="Integer"/> <argument argumentName="inValOne" column="VAL_ONE" dbType="string"/> <argument argumentName="inValTwo" column="VAL_TWO" dbType="string"/> </constructor> <result property="TheUniqueId" column ="ID" dbType ="Integer"/> <result property ="ChildObject" resultMapping="Domain.DataAccess.SqlMaps.ChildMapping"/> </resultMap> Throws the following NullReferenceException: System.NullReferenceException was unhandled by user code Message="Object reference not set to an instance of an object." Source="IBatisNet.DataMapper" StackTrace: at IBatisNet.DataMapper.MappedStatements.BaseStrategy.GetUniqueKey(IResultM ap resultMap, RequestScope request, IDataReader reader) at IBatisNet.DataMapper.MappedStatements.ResultStrategy.GroupByStrategy.Pro cess(RequestScope request, IDataReader& reader, Object resultObject) at IBatisNet.DataMapper.MappedStatements.ResultStrategy.MapStrategy.Process (RequestScope request, IDataReader& reader, Object resultObject) at IBatisNet.DataMapper.MappedStatements.MappedStatement.RunQueryForList[T] (RequestScope request, ISqlMapSession session, Object parameterObject, IList`1 resultObject, RowDelegate`1 rowDelegate) at IBatisNet.DataMapper.MappedStatements.MappedStatement.ExecuteQueryForLis t[T](ISqlMapSession session, Object parameterObject) at IBatisNet.DataMapper.SqlMapper.QueryForList[T](String statementName, Object parameterObject) at Quad.App.DataAccess.IBatis.BaseDataSource.<>c__DisplayClass59`1.<QueryFo rList>b__58() . . . Any ideas would be appreciated. Thanks. -------------------------------------------------------- Princeton Retirement Group, Inc - Important Terms This E-mail is not intended for distribution to, or use by, any person or entity in any location where such distribution or use would be contrary to law or regulation, or which would subject Princeton Retirement Group, Inc. or any affiliate to any registration requirement within such location. This E-mail may contain privileged or confidential information or may otherwise be protected by work product immunity or other legal rules. No confidentiality or privilege is waived or lost by any mistransmission. Access, copying or re-use of information by non-intended or non-authorized recipients is prohibited. If you are not an intended recipient of this E-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute any portion of this E-mail. The transmission and content of this E-mail cannot be guaranteed to be secure or error-free. Therefore, we cannot represent that the information in this E-mail is complete, accurate, uncorrupted, timely or free of viruses, and Princeton Retirement Group, Inc. cannot accept any liability for E-mails that have been altered in the course of delivery. Princeton Retirement Group, Inc. reserves the right to monitor, review and retain all electronic communications, including E-mail, traveling through its networks and systems (subject to and in accordance with local laws). If any of your details are incorrect or if you no longer wish to receive mailings such as this by E-mail please contact the sender by reply E-mail. --------------------------------------------------------

