Hi Heath,<br><br>You say that you &quot;insert a ValidationResult() fact if something is not valid&quot;. Do you insert  a ValidationResult(valid == true) when something is valid? Could it be that when your facts pass through validation successfully there is an issue? Have you tried using the Drools Audit View to look at the logs? When I&#39;ve encountered OOMEs they have been caused by looping, blackholing while waiting for a condition that can never be met or just putting too many facts into a session. It&#39;s hard to say more without debugging through it myself :)<br>
<br>Enda<br><br><div class="gmail_quote">On Fri, Mar 12, 2010 at 12:04 AM, heldeen <span dir="ltr">&lt;<a href="mailto:heldeen@overstock.com">heldeen@overstock.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
I am using drools marshalling for persistence and am getting an OOME with my<br>
simple rule flow. I have a custom CommandService that persists at the end of<br>
each execution. (I am not using JPA :-( ).<br>
<br>
In the rule flow I have a split that checks for the non-existence of a<br>
simple pojo using &quot;not ValidationResult()&quot; as one of the constraints. The<br>
other constraint is ValidationResult(valid == false). I get an<br>
OutOfMemoryError using the &quot;not&quot; in one of the constraints. Changing &quot;not<br>
ValidationResult()&quot; to &quot;ValidationResult(valid == true)&quot; results in normal<br>
operation.<br>
<br>
The flow is essentially Start-&gt;ValidationRuleFlowGroup-&gt;XOR Split-&gt;Valid<br>
Action XOR Invalid Action -&gt; End. The ValidationRuleFlowGroup has a simple<br>
set of rules that will insert a ValidationResult() fact if something is not<br>
valid.<br>
<br>
Anyone have any idea why checking for the non-existence of a fact causes<br>
this error. I&#39;ll post the pojo and the stack trace below.<br>
<br>
public class ValidationResult {<br>
<br>
  private boolean isValid;<br>
  private String message;<br>
  public boolean isValid() {<br>
    return isValid;<br>
  }<br>
  public void setValid(boolean isValid) {<br>
    this.isValid = isValid;<br>
  }<br>
  public String getMessage() {<br>
    return message;<br>
  }<br>
  public void setMessage(String message) {<br>
    this.message = message;<br>
  }<br>
}<br>
<br>
java.lang.OutOfMemoryError: Java heap space<br>
        at java.util.Arrays.copyOf(Arrays.java:2786)<br>
        at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)<br>
        at<br>
java.io.ObjectOutputStream$BlockDataOutputStream.drain(ObjectOutputStream.java:1838)<br>
        at<br>
java.io.ObjectOutputStream$BlockDataOutputStream.write(ObjectOutputStream.java:1769)<br>
        at java.io.DataOutputStream.writeInt(DataOutputStream.java:182)<br>
        at<br>
java.io.ObjectOutputStream$BlockDataOutputStream.writeInt(ObjectOutputStream.java:1904)<br>
        at java.io.ObjectOutputStream.writeInt(ObjectOutputStream.java:769)<br>
        at<br>
org.drools.marshalling.impl.OutputMarshaller.writeLeftTuple(OutputMarshaller.java:459)<br>
        at<br>
org.drools.marshalling.impl.OutputMarshaller.writeInitialFactHandleLeftTuples(OutputMarshaller.java:356)<br>
        at<br>
org.drools.marshalling.impl.OutputMarshaller.writeFactHandles(OutputMarshaller.java:251)<br>
        at<br>
org.drools.marshalling.impl.OutputMarshaller.writeSession(OutputMarshaller.java:85)<br>
        at<br>
org.drools.marshalling.impl.DefaultMarshaller.marshall(DefaultMarshaller.java:117)<br>
<br>
Thanks,<br>
Heath<br>
<font color="#888888">--<br>
View this message in context: <a href="http://n3.nabble.com/OutOfMemoryError-with-non-existence-check-in-flow-XOR-split-tp443126p443126.html" target="_blank">http://n3.nabble.com/OutOfMemoryError-with-non-existence-check-in-flow-XOR-split-tp443126p443126.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Enda J Diggins<br>