We have a program that validates large amount of data. When changing this
program to use drools 6.0.1 instead of 5.5.0, this GC overhead limit
exceeded problem occurred.
Program reads one object to memory, then validate it and then retract it.
This is repeated thousands of times.
java version
Drools version 6.0.0.FINAL
I create rule package in Drools workbench and use default knowledgebase and
session:
KieServices kieServices = KieServices.Factory.get();
KieContainer kContainer =
kieServices.newKieContainer(kieServices.newReleaseId(com.test,
validationrules, 1.0-SNAPSHOT));
I have this problem also with drools versions 6.0.1.FINAL and 6.1.0.Beta1
org.kie.api.definition.type.FactType.get(Object bean, String field)
gives NullPointerException with default KieBase
KieContainer kContainer =
kieServices.newKieContainer(kieServices.newReleaseId(com.test,
validationrules,
Manstis was right, I was trying to access Java class with the API for
accessing declared (DRL) types.
ValidationError class was created with Drools Workbench data modeller. I
thought that data modeller creates declarative classes, like in Drools
Guvnor.
I imported ValidationError as normal Java
Hi!
You could try something like this. I'm not 100% sure that this works:
$player : Player(name == John)
$roster : TeamRoster($teams : teams, $teams.get(Dodgers) contains $player)
-Jarkko
--
View this message in context: