Drools .drl files giving runtime error on ZOS

懵懂的女人 提交于 2019-12-25 16:48:23

问题


I have created a runnable jar containing drools engine functionality (.drl files are also inside jar) while running on windows the output is fine but on ZOS I get the below error with respect to .drl files.

    java.lang.RuntimeException: Error while creating KieBaseÝMessage Ýid=1, kieBase=
rules, level=ERROR, path=rules/Sample.drl, line=1, column=0                     
   text=ÝERR 101¨ Line 1:41 no viable alternative at input ''¨, Message Ýid=2, k
ieBase=rules, level=ERROR, path=rules/Sample.drl, line=1, column=0              
   text=ÝERR 101¨ Line 1:98 no viable alternative at input ''¨, Message Ýid=3, k                                                                              

   text=ÝERR 101¨ Line 1:98 no viable alternative at input ''¨, Message Ýid=3, k
ieBase=rules, level=ERROR, path=rules/Sample.drl, line=1, column=0              
   text=ÝERR 101¨ Line 1:114 no viable alternative at input ''¨, Message Ýid=4, 
kieBase=rules, level=ERROR, path=rules/Sample.drl, line=1, column=0             
   text=ÝERR 101¨ Line 1:115 no viable alternative at input ''¨, Message Ýid=5, 
kieBase=rules, level=ERROR, path=rules/Sample.drl, line=1, column=0             
   text=ÝERR 101¨ Line 1:116 no viable alternative at input ''¨, Message Ýid=6, 
kieBase=rules, level=ERROR, path=rules/Sample.drl, line=1, column=0             
   text=ÝERR 101¨ Line 1:117 no viable alternative at input ''¨, Message Ýid=7, 
kieBase=rules, level=ERROR, path=rules/Sample.drl, line=1, column=0             
   text=ÝERR 101¨ Line 1:118 no viable alternative at input ''¨, Message Ýid=8, 
kieBase=rules, level=ERROR, path=rules/Sample.drl, line=1, column=0             
   text=ÝERR 101¨ Line 1:119 no viable alternative at input ''¨, Message Ýid=9, 
kieBase=rules, level=ERROR, path=rules/Sample.drl, line=1, column=0  `package com.cft.hogan.test.drools.example.drink;`


import com.cft.hogan.test.drools.Person

rule "CanDrink"
when
    p : Person( age >= 21 )
then
    p.setCanDrink(true);
end

来源:https://stackoverflow.com/questions/44023119/drools-drl-files-giving-runtime-error-on-zos

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