<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#ffffff">
    On 21/11/2010 12:56, Leonardo Gomes wrote:
    <blockquote
      cite="mid:AANLkTikEGT3yxfX=MtAX22gfdB_9txUuoN4fRdGCN7SV@mail.gmail.com"
      type="cite">Do you have a stack trace or something like that?<br>
    </blockquote>
    Being IKVM I doubt the problem is from our end, as it's translating
    stuff to C#. You probably need to isolate the failing test case and
    get the IKVM guys to fix it in IKVM, probably a bad translation.<br>
    <br>
    Mark<br>
    <blockquote
      cite="mid:AANLkTikEGT3yxfX=MtAX22gfdB_9txUuoN4fRdGCN7SV@mail.gmail.com"
      type="cite"><br>
      <div class="gmail_quote">2010/11/21 Piyush Goel <span dir="ltr">&lt;<a
            moz-do-not-send="true" href="mailto:piyush.goel@dealhunt.in">piyush.goel@dealhunt.in</a>&gt;</span><br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          We are using Drools engine on our client written in C#. We are
          using IKVM to convert the drools jar and our java beans into
          dll's using IKVM. We have a rule similar to this:-
          <br>
          <br>
          rule "aggregate rule"
          <br>
          &nbsp; &nbsp; when <br>
          &nbsp; &nbsp; &nbsp; &nbsp; $b : Bill(billAmount &gt; 100)
          <br>
          &nbsp; &nbsp; &nbsp; &nbsp; $n : Number(doubleValue &gt; 100) from accumulate ( $l
          : LineItem() from $b.findItems("color", "blue"),
          sum($l.getSellingValue()))
          <br>
          &nbsp; &nbsp; then
          <br>
          &nbsp; &nbsp; &nbsp; &nbsp; VoucherSeries fact0 = new VoucherSeries();
          <br>
          &nbsp; &nbsp; &nbsp; &nbsp; fact0.setSeriesCode( "aggregate voucher" );
          <br>
          &nbsp; &nbsp; &nbsp; &nbsp; insert(fact0 );
          <br>
          &nbsp; &nbsp; &nbsp; &nbsp; voucherlist.add(fact0);
          <br>
          &nbsp; &nbsp; &nbsp; &nbsp; System.out.println("sum" + $n);
          <br>
          end
          <br>
          <br>
          <br>
          This rule works fine when it is run with java based drools
          API's, but while running it with IKVM converted drools, it
          throws the following error:-
          <br>
          <br>
          Unable to cast object of type 'AccumulateMemory' to type
          'FromMemory'.
          <br>
          <br>
          Any ideas on what might be going wrong ?<br>
          <br>
          thanks,<br>
          <font color="#888888">piyush<br>
          </font><br>
          _______________________________________________<br>
          rules-users mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
          <a moz-do-not-send="true"
            href="https://lists.jboss.org/mailman/listinfo/rules-users"
            target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
          <br>
        </blockquote>
      </div>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>