chenxicxc / mybatisnet

Automatically exported from code.google.com/p/mybatisnet
0 stars 0 forks source link

Informix.NET Provider configuration doesn't work #9

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm using iBatis DataMapper 1.6.2, iBatis DataAccess 1.9.2 and Informix .NET 
Provider 2.81 included in Informix Client SDK 2.90.

When I use the configuration existing in providers.config for Informix .NET 
Provider, an exception is thrown calling the method 
daoManagerBuilder.Configure(".//Configuracion//iBatis//dao.config").

The exception is an "Object reference not set to an instance of an object" and 
it is thrown into CreateConnection() method of class DbProvider, in the call 
(IDbConnection)((ICloneable)_templateConnection).Clone();

I found that IfxConnection is ICloneable, but if the connection is not open a 
call to Clone() method throws the exception.

Original issue reported on code.google.com by CesIgles...@gmail.com on 11 Aug 2010 at 1:22