kie object is null when trying to call drools jar from android app

Posted on

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 created a mobile app and have embedded the wrapper jar created above and trying to execute the rules from the app, I am able to call the wrapper jar from the android app but getting null pointer exception in the 2nd line (basically kiecontainer object is null).

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

Any suggestions why it is so ?
Is it not possible to call drools jar from android.?

Responses