Hi Davide,<div><br></div><div>thanks for looking into this.</div><div>Message is a class defined outside of the DRL, its source is below. NiceMessage is defined only inside the DRL.</div><div><br></div><div><div>public class Message {</div>
<div>    public static final int HELLO = 0;</div><div>    public static final int GOODBYE = 1;</div><div>    private String message;</div><div>    private int status;</div><div>    public String getMessage() {</div><div>        return this.message;</div>
<div>    }</div><div>    public void setMessage(String message) {</div><div>        this.message = message;</div><div>    }</div><div>    public int getStatus() {</div><div>        return this.status;</div><div>    }</div>
<div>    public void setStatus(int status) {</div><div>        this.status = status;</div><div>    }</div><div>}</div></div><div><br></div><div>Best regards,</div><div>Michal<br><br><div class="gmail_quote">On Thu, Mar 1, 2012 at 11:03 AM, Davide Sottara <span dir="ltr">&lt;<a href="mailto:dsotty@gmail.com">dsotty@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This is odd... I tried to reproduce your issue but I didn&#39;t get any<br>
exception. Trying to react to any &quot;NiceMessage&quot; also produces the expected<br>
results...<br>
Now, I see that you do Message.setMessage(), so I assume that Message and<br>
NiceMessage are classes defined outside the DRL.. Could you send them so<br>
that I can take a look?<br>
Thanks<br>
Davide<br>
<br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/rules-users-traits-don-more-than-3-pojos-got-IllegalArgumentException-tp3788670p3790082.html" target="_blank">http://drools.46999.n3.nabble.com/rules-users-traits-don-more-than-3-pojos-got-IllegalArgumentException-tp3788670p3790082.html</a><br>

<div class="HOEnZb"><div class="h5">Sent from the Drools: User forum 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>
</div></div></blockquote></div><br></div>