[ 
http://issues.apache.org/jira/browse/IBATISNET-26?page=comments#action_59825 ]
     
Philip Kerrigan commented on IBATISNET-26:
------------------------------------------

According to the DevGuide (p51) and the 1.1 tutorial (p6) the correct syntax is 
<sqlMap file="filename"/>
Instead the program exits with no indication of the problem. As an absolute 
minimum an error message should be printed giving the config file name and line 
number where the error occurred (as happens for some other errors). Config file 
mistakes should be handled as gracefully as possible without requiring the user 
to waste days trying to guess at the problem, especially when the documentation 
doesn't give the correct syntax.

Using the format <sqlMap url="file:///c:/filename"/>
gives an unhandled error System.NotSupportedException in mscorlib.dll, with the 
additional information "The given path's format is not supported."

Since I was able to obtain an eval copy of Visual Studio I can confirm this 
happens at line 333 of resource.cs.






> 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

Reply via email to