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

廉价感情. 提交于 2019-12-11 07:32:02

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/3314292/i-just-upgraded-to-drools-5-and-the-xml-rules-will-not-load

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!