Re: [rules-users] Slf4j Log4j logger not working with Drools drl while using as a global variable.

2014-08-05 Thread tari-manga
I wonder if OP Soumya solved the issue, because at least in my case it is indeed working fine - I just tested with 610Final as we also wanted to log from rule via slf4j. I attach demo that at least for us proves working. I've also tried back-port the same project attached to test with 610beta2, a

Re: [rules-users] Slf4j Log4j logger not working with Drools drl while using as a global variable.

2014-05-27 Thread Soumya.plavaga
> @Soumya: Which Drools version are you using? Basically, this situation > is handled correctly by 5.4 and 5.5. We are using Drools version 6.1.0.Beta2. -- View this message in context: http://drools.46999.n3.nabble.com/Slf4j-Log4j-logger-not-working-with-Drools-6-1-0-Beta2-drl-while-using-as

Re: [rules-users] Slf4j Log4j logger not working with Drools drl while using as a global variable.

2014-05-27 Thread Soumya.plavaga
> Check if the logger isn't null (by adding a System.out in the then part > of the rule). We checked, logger is not null here. -- View this message in context: http://drools.46999.n3.nabble.com/Slf4j-Log4j-logger-not-working-with-Drools-6-1-0-Beta2-drl-while-using-as-a-global-variable-tp40297

Re: [rules-users] Slf4j Log4j logger not working with Drools drl while using as a global variable.

2014-05-27 Thread Wolfgang Laun
@Geoffrey: did you see the java.lang.ArrayIndexOutOfBoundsException? Doesn't look like a null pointer causing an exception. The upstairs exception might add the basic exceptions's message to its message. @Soumya: Which Drools version are you using? Basically, this situation is handled correctly by

Re: [rules-users] Slf4j Log4j logger not working with Drools drl while using as a global variable.

2014-05-27 Thread Geoffrey De Smet
Check if the logger isn't null (by adding a System.out in the then part of the rule). If that's the case, then that error message is pretty poor (or even incorrect): java.lang.RuntimeException: cannot invoke method: info It should clearly talk about a NullPointer instead. So, if that's the c

[rules-users] Slf4j Log4j logger not working with Drools drl while using as a global variable.

2014-05-26 Thread Soumya.plavaga
I am using global slf4j log4j logger as a global variable within our drl and inserting that global logger value at runtime into kiesession. While we are trying to do logger.info with multiple arguments then it's giving the following exception stack trace - Exception executing consequence for rule