When upgrading to drools 5, valid drools 4 xml rules do not work. Drools just throws an unhelpful null pointer exception. What can the problem be?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The problem is that Drools 5 changed the namespace. Replace xmlns=”http://drools.org/drools-4.0″ with xmlns=”http://drools.org/drools-5.0″ and at least for simple rules that is all you need.
I hope that helps save someone the headache I just got dealing with this undocumented change.