[rules-users] Drools 6.0.1: GC overhead limit exceeded, even though objects are retracted

2014-01-22 Thread JarkkoMakela
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

[rules-users] NullPointerException with factType.get(fact, fieldname)

2014-03-13 Thread JarkkoMakela
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));

Re: [rules-users] NullPointerException with factType.get(fact, fieldname)

2014-03-14 Thread JarkkoMakela
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,

Re: [rules-users] NullPointerException with factType.get(fact, fieldname)

2014-03-17 Thread JarkkoMakela
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

Re: [rules-users] Searching for an object in a list inside a map

2014-06-26 Thread JarkkoMakela
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: