Hello,
I would appreciate any h
elp in resolving the following issue.We are evaluating IBatis DataAccess 1.8 and DataMapper 1.5. (binary distributions)
.When executing
the following test:[Test]
public void GetAllCountriesViaDao() {
ICountryDao dao = GetCountryDao();
Assert.IsNotNull(dao, "Dao not created ");
IList cl = dao.GetCountryList();
Assert.IsNotNull(cl, "Counties not retrieved is Null");
Assert.IsTrue(cl.Count > 0 ,"Empty Country list");
}
Where
GetCountryDao() looks like
:..
private ICountryDao GetCountryDao(){
..
return daoManager[typeof(ICountryDao)] as ICountryDao;
..
And CountrySqlMapDao class
looks like:...
[Serializable]
public class CountrySqlMapDao: BaseSqlMapDao, ICountryDao {
public CountrySqlMapDao(): base() {
}
public virtual IList GetCountryList(){
return ExecuteQueryForList("SelectAll", null);
}
....
I am getting the following exception:
DAOTester.CountryDaoTest.GetAllCountriesViaDao : IBatisNet.DataAccess.Exceptions.DataAccessException : DaoProxy : unable to intercept method name 'GetCountryList', cause : Invalid argument
----> System.ArgumentException : Invalid argument
at IBatisNet.DataAccess.Configuration.DaoProxy.Intercept(IInvocation invocation, Object[] arguments)
at ProxyInterfaceCountrySqlMapDao_ICountryDao_IDao_ISerializable.GetCountryList()
at DAOTester.CountryDaoTest.GetAllCountriesViaDao() in c:\documents and settings\e016632\desktop\businessobjects\daotester\countrydaotest.cs:line 64
--DataAccessException
at IBM.Data.DB2.DB2ConnPool.a(String A_0, a& A_1, f& A_2)
at IBM.Data.DB2.DB2Connection.set_ConnectionString(String value)
at IBatisNet.DataMapper.SqlMapSession.OpenConnection(String connectionString)
at IBatisNet.DataMapper.SqlMapper.OpenConnection()
at IBatisNet.DataAccess.DaoSessionHandlers.SqlMapDaoSession.OpenConnection()
at IBatisNet.DataAccess.DaoManager.OpenConnection()
at IBatisNet.DataAccess.Configuration.DaoProxy.Intercept(IInvocation invocation, Object[] arguments)
Thanks
Oleg
This e-mail transmission contains information that is confidential and may be privileged. It is intended only for the addressee(s) named above. If you receive this e-mail in error, please do not read, copy or disseminate it in any manner. If you are not the intended recipient, any disclosure, copying, distribution or use of the contents of this information is prohibited. Please reply to the message immediately by informing the sender that the message was misdirected. After replying, please erase it from your computer system. Your assistance in correcting this error is appreciated.

