Now I updated to the current version (458)
Just running this:
 
IBatisNet.DataMapper.Mapper.Instance();
 
now gives me a cast error:
 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
 
Exception Details: System.InvalidCastException: Specified cast is not valid.
 
Why is this happening?
This is getting frustrating... 5000 updates shouldn't be that big a problem... :o/
 
 
/morten
 
 

>>>[EMAIL PROTECTED] 05/27/05 8:42 am >>>
I-ll be looking into this, and get back to the list with the results...

>>>[EMAIL PROTECTED] 05/27/05 4:50 am >>>
Wow, great memory Ron!

Here it is:

http://www.mail-archive.com/ibatis-user-cs@incubator.apache.org/msg00014.html

http://sourceforge.net/forum/forum.php?thread_id=1172073&forum_id=376422

Roberto

On 5/26/05, Ron Grabowski <[EMAIL PROTECTED]> wrote:
>
>I seem to recall there was a bug with an old old old version of IBatis
>where if you called ExecuteUpdate and no rows were updated, a
>ConcurrentException was thrown. I can't seem to anything in old builds
>so maybe I'm thinking of something else. I agree with Roberto that
>there may be something wrong with your UPDATE statement.
>
>
>--- Morten Schmidt <[EMAIL PROTECTED]> wrote:
>>I'm using iBatisNet, Npgsql and PostgreSQL (and log4net)
>>
>>I try to execute this (C#):
>>
>>
>>Mapper().BeginTransaction();
>>for (int i=0; i<al.Count; i++)
>>{
>>BudgetValueClass bv = (BudgetValueClass)al[i];
>>Mapper().Update(BudgetValueClass.SetBudgetValue, bv);
>>}
>>Mapper().CommitTransaction();
>>
>>
>>
>>al is a big ArrayList (about 5000 elements)
>>BudgetValueClass is a class of my own
>>Mapper() is an instance of SqlMapper
>>
>>BudgetValue.SetBudgetValue looks like this:
>>
>><update id=SetBudgetValue parameterClass=BudgetValueClass>
>>update budgetvalue set
>>budgetvalue = #BudgetValue#
>>WHERE budgetid = #BudgetId#
>>AND accountid = #AccountId#
>>AND dataid = #DataId#
>>AND month = #Month#
>>AND year = #Year#
>></update>
>>
>>
>>It compiles OK, but running the asp.net <http://asp.net> page I get the
>following
>>error
>>on Exception:
>>
>>A concurrent acces has occurred.
>>
>>(with the wrong spelling ;o) )
>>
>>Does anyone know what is happening? I can't get it to work for me...
>>
>>Thank you in advance... (and I hope this is the place to ask...)
>>
>>/morten
>>
>>
>

Reply via email to