[rules-users] Problem when using multiple rule files (Drools 5)
Olaf Raether
o.raether at epro.de
Thu Jul 23 06:47:40 EDT 2009
Hey,
i have a drl file with round about 100 rules. when i run this single file
everything fine !
When i splip the file into two files and add them seperate into the ruleBase
i get the following Exception
during the inserting of the facts:
java.lang.NullPointerException
at org.drools.base.ClassFieldReader.isNullValue(ClassFieldReader.java:183)
at
org.drools.base.evaluators.EqualityEvaluatorsDefinition$IntegerEqualEvaluator.evaluate(EqualityEvaluatorsDefinition.java:1482)
at org.drools.rule.LiteralRestriction.isAllowed(LiteralRestriction.java:92)
at
org.drools.rule.OrCompositeRestriction.isAllowed(OrCompositeRestriction.java:25)
The code looks like this:
RuleBase ruleBase = RuleBaseFactory.newRuleBase();
for (int i = 0; i < rules.length; i++) {
Package pkg = getPackage(i);
ruleBase.addPackage(pkg);
}
for (int i = 0; i < facts.length; i++) {
Object fact = facts[i];
workingMemory.insert(fact); // <<<<< Exception, when multiple rule files
}
Any ideas ?
--
View this message in context: http://www.nabble.com/Problem-when-using-multiple-rule-files-%28Drools-5%29-tp24623347p24623347.html
Sent from the drools - user mailing list archive at Nabble.com.
More information about the rules-users
mailing list