[rules-users] Problem when I cleaning the production memory.

braveheart85 andrea.pacifico.85 at gmail.com
Wed Jul 16 06:19:42 EDT 2014


Ok, now the query works.

However I have noticed that when that rule with (. instead of !.) fails,
Drools can't remove the rule in the cleaning phase like the version 5.5.0. I
have found these logs in my console:

09:47:31,989 INFO  [http-bio-8080-exec-8][WorkingMemoryConsoleLogger:114]
BEFORE PACKAGE ADDED package: "org.titan.memory.drools.command.custom"
09:47:31,990 INFO  [http-bio-8080-exec-8][WorkingMemoryConsoleLogger:114]
BEFORE PACKAGE ADDED package: "org.titan.registry.filter"
09:47:31,992 INFO  [http-bio-8080-exec-8][WorkingMemoryConsoleLogger:114]
BEFORE RULE ADDED package: "org.titan.memory.drools.command.custom" rule:
"dis"

then:

java.lang.RuntimeException: cannot invoke getter: getBusinessActivity ....

then:

09:47:32,373 INFO  [http-bio-8080-exec-8][WorkingMemoryConsoleLogger:114]
BEFORE PACKAGE REMOVED package: "org.titan.memory.drools.command.custom"
09:47:32,373 INFO  [http-bio-8080-exec-8][WorkingMemoryConsoleLogger:114]
BEFORE RULE REMOVED package: "org.titan.memory.drools.command.custom" rule:
"dis"

and finally:

Caused by: java.lang.NullPointerException
	at org.drools.reteoo.ReteooBuilder.removeRule(ReteooBuilder.java:252)
	at org.drools.reteoo.ReteooRuleBase.removeRule(ReteooRuleBase.java:469)
	at
org.drools.common.AbstractRuleBase.removeRule(AbstractRuleBase.java:1109)
	at
org.drools.common.AbstractRuleBase.removePackage(AbstractRuleBase.java:1027)
	at
org.drools.impl.KnowledgeBaseImpl.removeKnowledgePackage(KnowledgeBaseImpl.java:210)
	at
org.titan.frontend.memory.drools.DroolsEngine._clearKnowledge(DroolsEngine.java:316)

I don't have a log like AFTER RULE ADDED ... "dis". However Drools try to
remove "dis" when i execute another query after the exception have raised.

This is the last question. I promise!
Andrea



--
View this message in context: http://drools.46999.n3.nabble.com/Problem-when-I-cleaning-the-production-memory-tp4030341p4030371.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list