Drools error with IKVM -


we using drools engine on our client written in c#. using ikvm convert drools jar , our java beans dll's using ikvm. rule similar this:-

rule "aggregate rule"     when          $b : bill(billamount > 100)         $n : number(doublevalue > 100) accumulate ( $l : lineitem() $b.finditems("color", "blue"), sum($l.getsellingvalue()))             voucherseries fact0 = new voucherseries();         fact0.setseriescode( "aggregate voucher" );         insert(fact0 );         voucherlist.add(fact0);         system.out.println("sum" + $n); end 

this rule works fine when run java based drools api's, while running ikvm converted drools, throws following error:-

unable cast object of type 'accumulatememory' type 'frommemory'.

any ideas on might going wrong ?

this can have many causes. example classloading problem. can bug in ikvm. etc.

i think not receive helpful answer here. should contact mailing list ikvm many details ikvm version, how have compiled dlls, runnable sample demonstrate problem.

this problem can solve if debug it.


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -