kieSession object is null when trying to call rule jar from an andriod application

227 views
Skip to first unread message

Ranjan Das

unread,
Mar 2, 2021, 8:09:26 AM3/2/21
to drools...@googlegroups.com
Hi Everyone ,

I have created a rule  jar from workbench , wrapped it in a maven java project ( this project has the code to create the kie session and execute the rules.)

Then i have create a mobile app and trying to execute the rules from my app, I am able to call the wrapper jar but getting null pointer exception in the 2nd line  (basically kiecontainer object is null)

KieContainer con = ks.getKieClasspathContainer();
kSession = contnrExceptionLD.newKieSession();

To build my mobile app i had to exclude the below else the project was not getting build:
exclude MEA-INF/kie.cong
exclude module: 'xpp3_min' 

if i dont exclude ,getting build error of "More than one file was found with OS independent path META/kie.conf"

Note : I am able to call the wrapper rule jar from any java project (rules are getting fired) but not from android app.Need help on the same

Thanks In Advance 
Ranjan Das
Reply all
Reply to author
Forward
0 new messages