[ http://issues.apache.org/jira/browse/IBATISNET-26?page=comments#action_59824 ] Gilles Bayon commented on IBATISNET-26: ---------------------------------------
An sqlMap element must follow those syntax : <sqlMap resource="Maps/MSSQL/SqlClient/Account.xml"/> or <sqlMap url="E:/Projet/IBatisNet/Source/IBatisNet.Test/Maps/MSSQL/SqlClient/Account.xml"/> or <sqlMap embedded="Account.xml, IBatisNet.Test"/> You could verify the syntax of your .config with the schema. The DomSqlMapBuilder.ConfigureSqlMap doesn't do any validation and expect a valid configuration file. > Unhandled NullReference parsing non-existent properties. > -------------------------------------------------------- > > Key: IBATISNET-26 > URL: http://issues.apache.org/jira/browse/IBATISNET-26 > Project: iBatis for .NET > Type: Bug > Versions: DataMaper 1.5 > Environment: Windows XP > Reporter: Philip Kerrigan > > DomSqlMapBuilder.ConfigureSqlMap calls Resources.GetAsXmlDocument at line 456 > even though I have no properties defined. GetAsXmlDocument looks for values > of resource, url, or embedded, and not finding any of them it returns > xmlDocument null. > ConfigureSqlMap does not check for a null value and attempts to call > config.SelectSingleNode with a null value for config, causing an unhandled > NullReferenceException. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
