This sounds similar to an issue I experienced in 5.0.1 ( <a href="https://issues.jboss.org/browse/JBRULES-2375">https://issues.jboss.org/browse/JBRULES-2375</a> ). What version of Drools are you using? <br><br><div class="gmail_quote">
2011/2/13 Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
What do you mean by &quot;...is stuck&quot;?<br><br>Please post the complete flow of application logic, from session creation, explaining how you insert and run the engine, and how you track retractions and the &quot;stuck&quot;.<br>
<font color="#888888">
<br>-W</font><div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On 13 February 2011 14:13, rodih <span dir="ltr">&lt;<a href="mailto:roded.hess@gmail.com" target="_blank">roded.hess@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">
<br>
Hi,<br>
I am new to CEP though I made a simple rule which which declares an event as<br>
expires after few milliseconds.<br>
If events are inserted into a stream and at the same time events are<br>
retracted from the stream due to expiration, the application is stuck - Cant<br>
insert any more events and no events are retracted.<br>
<br>
declare StockEventWrapper<br>
   @role( event )<br>
   @expires(10s)<br>
end<br>
<br>
rule &quot;Stock Event Buffer Rules&quot;<br>
        dialect &quot;java&quot;<br>
        when<br>
                 $stock : StockMotiveFactWrapper(timeAlerted == null)<br>
                 $sew: StockEventWrapper(this.synonymContainedInTitle == true &amp;&amp;<br>
$stock.stockId == this.stockId ,$stock.motiveTypeId == this.motiveTypeId)<br>
over window:time(24h) from entry-point &quot;STOCK_EVENTS&quot;<br>
        then<br>
                System.out.println(&quot;Creating &quot; + $stock.getStockId() + &quot; &quot; +<br>
$stock.getMotiveTypeId());<br>
                modify($stock){<br>
                        setTimeAlerted(new Date());<br>
                }<br>
end<br>
<br>
Any known issues? any ideas?<br>
<br>
Thanks,<br>
Rod<br>
<font color="#888888"><br>
<br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/CEP-expires-an-event-cause-deadlock-tp2485482p2485482.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/CEP-expires-an-event-cause-deadlock-tp2485482p2485482.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" target="_blank">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>
</div></div><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>
<br></blockquote></div><br>