Re: [rules-users] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread brachi
This example describes a case using function in the constraint (Operators.containsAny) and pass a Fact Type that was changed in a previous rule. you are right that I can use the drools operator "IN (...)", but I wanted to use function in the example, because that is the case that rules don't hit.

Re: [rules-users] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread brachi
example of rule that doesn't work without eval: /*rule "1" salience -1 agenda-group "agenda1" when $conclusion: supportFT() then if($conclusion.getValue()==null){ modify($conclusion) { setValue(new ArrayList())};

Re: [rules-users] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread brachi
example of rule that doesn't work without eval: /*rule "1" salience -1 agenda-group "agenda1" when $conclusion: supportFT() then if($conclusion.getValue()==null){ modify($conclusion) { setValue(new ArrayList())}; }

Re: [rules-users] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread brachi
I need the eval. I have some rules that doesn't hit correctly, just if I put eval around the condition. but eval makes the rules to run in an infinite loop. -- View this message in context: http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966p402997

Re: [rules-users] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread brachi
so, will "no-loop" help? is eval also override this attribute? -- View this message in context: http://drools.46999.n3.nabble.com/Adding-eval-on-rule-cause-it-to-run-in-infinite-loop-tp4029966p4029971.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

[rules-users] Adding eval on rule cause it to run in infinite loop

2014-06-11 Thread brachi
for this Drools Fact Type: /* declare DvFacts0 @propertyReactive IsNUMERIC: Double condIsNUMERIC: Double end*/ I have this rule: /*rule "1" salience -1 agenda-group "agenda1" when $condIsNUMERIC: DvFacts0(eval(condIsNUMERIC == null ) ) $co

Re: [rules-users] stuck! Unknown accessor type: org.mvel2.optimizers.impl.refl.collection.ArrayCreator@690c2a7a

2014-01-23 Thread brachi
Thank you. few questions: 1. does exist an option to dismiss this error, even if it says to disable this mvel constraints optimizations? 2. when and where will it be released? can it be fixed on 5.5 or 5.6? -- View this message in context: http://drools.46999.n3.nabble.com/stuck-Unknown-access

Re: [rules-users] stuck! Unknown accessor type: org.mvel2.optimizers.impl.refl.collection.ArrayCreator@690c2a7a

2014-01-20 Thread brachi
any news? -- View this message in context: http://drools.46999.n3.nabble.com/stuck-Unknown-accessor-type-org-mvel2-optimizers-impl-refl-collection-ArrayCreator-690c2a7a-tp4020969p4027769.html Sent from the Drools: User forum mailing list archive at Nabble.com. __

Re: [rules-users] stuck! Unknown accessor type: org.mvel2.optimizers.impl.refl.collection.ArrayCreator@690c2a7a

2014-01-14 Thread brachi
changed to 5.6.0.Final. then i got this: /*WARN [MvelConstraint] Exception jitting: Operators.contains(LoanProgramName,new String[]{"2008 Temporary Loan Limits"})*/ I get this for any rule that invoke methods and pass it a new array as argument. what is the meaning of this warning? how can I fix i

Re: [rules-users] stuck! Unknown accessor type: org.mvel2.optimizers.impl.refl.collection.ArrayCreator@690c2a7a

2014-01-07 Thread brachi
I'm working with 5.5.0, got this exception while running. i'll try check 5.6 cr1 -- View this message in context: http://drools.46999.n3.nabble.com/stuck-Unknown-accessor-type-org-mvel2-optimizers-impl-refl-collection-ArrayCreator-690c2a7a-tp4020969p4027560.html Sent from the Drools: User forum

Re: [rules-users] permgen leak

2014-01-06 Thread brachi
see previous messages, pmander attached a unit test -- View this message in context: http://drools.46999.n3.nabble.com/permgen-leak-tp4027038p4027539.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing lis

Re: [rules-users] stuck! Unknown accessor type: org.mvel2.optimizers.impl.refl.collection.ArrayCreator@690c2a7a

2014-01-06 Thread brachi
also me. It happens only on the first executions. -- View this message in context: http://drools.46999.n3.nabble.com/stuck-Unknown-accessor-type-org-mvel2-optimizers-impl-refl-collection-ArrayCreator-690c2a7a-tp4020969p4027535.html Sent from the Drools: User forum mailing list archive at Nabble

Re: [rules-users] permgen leak

2014-01-06 Thread brachi
I have memory leak when using java dialect that doesn't happen with mvel dialect. when change to mvel some rules that hit with java doesn't hit now.and I got compilation errors. this memory leak occurs also at 6.0. -- View this message in context: http://drools.46999.n3.nabble.com/permgen-leak

Re: [rules-users] permgen leak

2014-01-06 Thread brachi
1. when will you estimate that 5.6.0.Final will published out? 2. why did you add this dispose methods on the implementation and not on the interface, I don't want to cust the builder and kbase in order to dispose, can it be? 3. It occurs also on 6.0. -- View this message in context: http://dro

[rules-users] how can I resolve java.lang.RuntimeException: Unknown accessor type

2014-01-06 Thread brachi
I'm using drools 5.5.0.Final. I noticed that I got the bellow exception in my logs, but my process is finished. I mean that this exception wasn't break the process, only logged out. what is the meaning of this exception and how can I resolve it. I tried to upgrade mvel2 to the latest final version

Re: [rules-users] got error "unterminated string literal" only with mvel dialect

2013-12-08 Thread brachi
this solve it: ... then String message="that is ;message"; addMessage($conclusion.getMessages(), message, "1", "Category2"); end -- View this message in context: http://drools.46999.n3.nabble.com/got-error-unterminated-string-literal-only-with-mvel-dialect-tp4027116p4027148.html Sent from the

[rules-users] got error "unterminated string literal" only with mvel dialect

2013-12-05 Thread brachi
That is because the ";", if I remove it, the drl is valid. drools version: 5.4.0.Final also on 5.5.0.Final any idea? example: rule "1" @RuleType(RuleRow) salience -1 agenda-group "aaa" when $conclusion: FT() then addMessage($conclu

Re: [rules-users] permgen leak

2013-12-05 Thread brachi
yes because of permgen leak, see previous page... I must use mvel because only if I use it I don't have permgen. drools version: 5.4.0.Final also on 5.5.0.Final -- View this message in context: http://drools.46999.n3.nabble.com/permgen-leak-tp4027038p4027115.html Sent from the Drools: User foru

Re: [rules-users] permgen leak

2013-12-05 Thread brachi
I got a compilation error whith MVEL dialect, on string contains ";" character. "unterminated string literal" any idea? -- View this message in context: http://drools.46999.n3.nabble.com/permgen-leak-tp4027038p4027111.html Sent from the Drools: User forum mailing list archive at Nabble.com. _

Re: [rules-users] permgen leak

2013-12-03 Thread brachi
thank you pmander, I tried the dialect "mval" and the permgen size was 150m after the deployment. still have some compilation and runtime issues because of the dialect... waiting to your unit test, I hope it will help us solve this problem. thank you very much! -- View this message in context:

Re: [rules-users] permgen leak

2013-12-02 Thread brachi
thanks, I used CMSClassUnloadingEnabled, but this can't help because the GC can't garbage this classes because they are in use somewhere, that is actually the leak. -- View this message in context: http://drools.46999.n3.nabble.com/permgen-leak-tp4027038p4027052.html Sent from the Drools: User

Re: [rules-users] permgen leak

2013-12-02 Thread brachi
in the drl itself interesting... have a DRL for example? please.. -- View this message in context: http://drools.46999.n3.nabble.com/permgen-leak-tp4027038p4027050.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules

Re: [rules-users] permgen leak

2013-12-02 Thread brachi
how did you changed to mvel? this property?drools.dialect.mvel.strict false or true? i think i tried it with false... -- View this message in context: http://drools.46999.n3.nabble.com/permgen-leak-tp4027038p4027048.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___

Re: [rules-users] permgen leak

2013-12-02 Thread brachi
increasing the size solves the "out of memory exception". but didn't solve the leak. i can increase it to 2G and i will be able to work, but will fail in the next deployments. this memory won't cleaned up, only if I will restart the server. the leak can't be solve by increasing the memory. and yes

Re: [rules-users] permgen leak

2013-12-02 Thread brachi
i did, nothing changed. the leak still exists. -- View this message in context: http://drools.46999.n3.nabble.com/permgen-leak-tp4027038p4027045.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rul

Re: [rules-users] permgen leak

2013-12-02 Thread brachi
i tried it. wasn't help. i used MAT to analyze the leak, and it points on mvel2.optimizer -- View this message in context: http://drools.46999.n3.nabble.com/permgen-leak-tp4027038p4027040.html Sent from the Drools: User forum mailing list archive at Nabble.com. _

[rules-users] permgen leak

2013-12-02 Thread brachi
i'm using drools 5.5.0, after the rules deployment, (associate DRL's with the KnowladBase and compile them) my permgen grows to 500m, and also if i undeploy, the permgen doesn't cleaned up. (only if i restart the server) It won't help me to increase the permgen size, because the client does a lot o

Re: [rules-users] passing empty string to a method with varargs failed on the second execution

2012-12-13 Thread brachi
atached the trace trace.txt -- View this message in context: http://drools.46999.n3.nabble.com/passing-empty-string-to-a-method-with-varargs-failed-on-the-second-execution-tp4021195p4021196.html Sent from the Drools: User forum maili

[rules-users] passing empty string to a method with varargs failed on the second execution

2012-12-13 Thread brachi
ContainsCODE.drl See attached DRL. input is: condContainsCODE=Lists.newArrayList("1", "2", "4") I Executed this DRL with the above input twice times. I got indexOutOfBound Exception. If I execute it *only one time* I didn't get th