RuleBaseLoader loadFromInputStream drools 2.5 compilation error on Java8 and weblogic12c

时光毁灭记忆、已成空白 提交于 2021-02-04 08:36:06

问题


We are facing compilation error while compiling Rule Base from DB on server using drools-io-2.5.jar.

RuleBaseLoader.loadFromInputStream(stream);

stream is XML input stream picked from database.

This code is working with JAVA6 and weblogic 11g but we start getting error when we deployed on weblogic 12c on JAVA8.

Can someone please give a direction, how to resolve this.

Error:

<09-09-2020 18:12:47.235> <DEBUG> <ejbframework> <system> <RulesHelper> <subscriber-type-rules Checking rule base: subscribertypemapping>
<09-09-2020 18:12:47.237> <DEBUG> <ejbframework> <system> <RulesHelper> <subscriber-type-rules (Re)loading rule base: subscribertypemapping>
<09-09-2020 18:12:47.237> <DEBUG> <ejbframework> <system> <RulesHelper> <subscriber-type-rules Loading subscribertypemapping rulebase>
<09-09-2020 18:12:48.301> <DEBUG> <ejbframework> <system> <RulesHelper> <subscriber-type-rules Unexpected Error: A problem occured compiling the embedded code:
drools/org/subscribertypemapping_1599664368295/java/Function_0_0.java(28)
The type java.lang.reflect.AnnotatedElement cannot be resolved. It is indirectly referenced from required .class files
>
<09-09-2020 18:12:48.301> <DEBUG> <ejbframework> <system> <RulesHelper> <subscriber-type-rules Problem with loading Rulebase: subscribertypemapping>

Thanks in advance !

来源:https://stackoverflow.com/questions/63858437/rulebaseloader-loadfrominputstream-drools-2-5-compilation-error-on-java8-and-web

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