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
Glad you solved your problem :-)
You can still create declarative types if you wish in 6.0.x but you'll need
to create a DRL file and enter the applicable syntax.
Cheers,
Mike
Sent on the move
On 17 Mar 2014 08:03, JarkkoMakela jarkko.matinpo...@gmail.com wrote:
Manstis was right, I was
It looks like the OP is trying to retrieve a Java class with the API for
accessing declared (DRL) types but to be honest they also mention if
they put the type in /resources it works ok - so I'm not entirely clear
what they are doing.
Sent on the move
If ValidationError is a user-defined
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,
Hi Jarkko,
where does that ValidationError class come from? Is it a declared type?
How can I reproduce this issue?
Thanks for your help,
Mario
--
View this message in context:
http://drools.46999.n3.nabble.com/NullPointerException-with-factType-get-fact-fieldname-tp4028688p4028735.html
Sent
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));