[rules-users] traits - don more than 3 pojos, got IllegalArgumentException

Michal Bali michalbali at gmail.com
Thu Mar 1 06:36:35 EST 2012


Hi Davide,

thanks for looking into this.
Message is a class defined outside of the DRL, its source is below.
NiceMessage is defined only inside the DRL.

public class Message {
    public static final int HELLO = 0;
    public static final int GOODBYE = 1;
    private String message;
    private int status;
    public String getMessage() {
        return this.message;
    }
    public void setMessage(String message) {
        this.message = message;
    }
    public int getStatus() {
        return this.status;
    }
    public void setStatus(int status) {
        this.status = status;
    }
}

Best regards,
Michal

On Thu, Mar 1, 2012 at 11:03 AM, Davide Sottara <dsotty at gmail.com> wrote:

> This is odd... I tried to reproduce your issue but I didn't get any
> exception. Trying to react to any "NiceMessage" also produces the expected
> results...
> Now, I see that you do Message.setMessage(), so I assume that Message and
> NiceMessage are classes defined outside the DRL.. Could you send them so
> that I can take a look?
> Thanks
> Davide
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/rules-users-traits-don-more-than-3-pojos-got-IllegalArgumentException-tp3788670p3790082.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120301/e0606280/attachment.html 


More information about the rules-users mailing list