开发者

I just upgraded to drools 5 and the xml rules will not load

开发者 https://www.devze.com 2023-01-08 06:35 出处:网络
When upgrading to drools 5, valid drools 4 xml rules do not work. Drools just throws an unhelp开发者_运维知识库ful null pointer exception. What can the problem be?The problem is that Drools 5 changed

When upgrading to drools 5, valid drools 4 xml rules do not work. Drools just throws an unhelp开发者_运维知识库ful null pointer exception. What can the problem be?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消