<!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 bgcolor="#ffffff" text="#000000">
On 20/05/2010 17:09, Axelrod, Nelson wrote:
<blockquote
cite="mid:DDCB1E1163ECA14D9A2AF6B6A8D0D281C1420E@EXCHANGE.TIGR.ORG"
type="cite">
<meta http-equiv="Content-Type"
content="text/html; charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="Section1">
<p class="MsoNormal">Can anyone explain what this
ConsequenceException
means? <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style=""><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">Exception
in thread "main" </span><u><span
style="font-size: 10pt; font-family: "Courier New"; color: navy;">org.drools.runtime.rule.ConsequenceException</span></u><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">: </span><u><span
style="font-size: 10pt; font-family: "Courier New"; color: navy;">java.lang.ClassCastException</span></u><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">:
org.drools.reteoo.AlphaNode$AlphaMemory cannot be cast to
org.drools.reteoo.BetaMemory</span><span
style="font-size: 10pt; font-family: "Courier New";"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">
at
org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(</span><u><span
style="font-size: 10pt; font-family: "Courier New"; color: navy;">DefaultConsequenceExceptionHandler.java:23</span></u><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">)</span><span
style="font-size: 10pt; font-family: "Courier New";"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">
at
org.drools.common.DefaultAgenda.fireActivation(</span><u><span
style="font-size: 10pt; font-family: "Courier New"; color: navy;">DefaultAgenda.java:943</span></u><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">)</span><span
style="font-size: 10pt; font-family: "Courier New";"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">
at
org.drools.common.DefaultAgenda.fireNextItem(</span><u><span
style="font-size: 10pt; font-family: "Courier New"; color: navy;">DefaultAgenda.java:885</span></u><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">)</span><span
style="font-size: 10pt; font-family: "Courier New";"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">
at
org.drools.common.DefaultAgenda.fireAllRules(</span><u><span
style="font-size: 10pt; font-family: "Courier New"; color: navy;">DefaultAgenda.java:1086</span></u><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">)</span><span
style="font-size: 10pt; font-family: "Courier New";"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">
at
org.drools.common.AbstractWorkingMemory.fireAllRules(</span><u><span
style="font-size: 10pt; font-family: "Courier New"; color: navy;">AbstractWorkingMemory.java:660</span></u><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">)</span><span
style="font-size: 10pt; font-family: "Courier New";"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">
at
org.drools.common.AbstractWorkingMemory.fireAllRules(</span><u><span
style="font-size: 10pt; font-family: "Courier New"; color: navy;">AbstractWorkingMemory.java:627</span></u><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">)</span><span
style="font-size: 10pt; font-family: "Courier New";"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">
at org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules(</span><u><span
style="font-size: 10pt; font-family: "Courier New"; color: navy;">StatefulKnowledgeSessionImpl.java:183</span></u><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">)</span><span
style="font-size: 10pt; font-family: "Courier New";"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">
at
org.jcvi.annotation.rulesengine.RulesEngine.fireAllRules(</span><u><span
style="font-size: 10pt; font-family: "Courier New"; color: navy;">RulesEngine.java:210</span></u><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">)</span><span
style="font-size: 10pt; font-family: "Courier New";"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">
at
org.jcvi.annotation.Aruba.run(</span><u><span
style="font-size: 10pt; font-family: "Courier New"; color: navy;">Aruba.java:311</span></u><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">)</span><span
style="font-size: 10pt; font-family: "Courier New";"><o:p></o:p></span></p>
<p class="MsoNormal" style=""><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">
at
org.jcvi.annotation.RunTest.main(</span><u><span
style="font-size: 10pt; font-family: "Courier New"; color: navy;">RunTest.java:55</span></u><span
style="font-size: 10pt; font-family: "Courier New"; color: red;">)</span><span
style="font-size: 10pt; font-family: "Courier New";"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Nelson<o:p></o:p></p>
</div>
</blockquote>
Should be fixed in 5.1 M2:<br>
<a class="moz-txt-link-freetext" href="http://www.jboss.org/drools/downloads.html">http://www.jboss.org/drools/downloads.html</a><br>
<br>
Mark<br>
<blockquote
cite="mid:DDCB1E1163ECA14D9A2AF6B6A8D0D281C1420E@EXCHANGE.TIGR.ORG"
type="cite">
<div class="Section1">
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<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>