[rules-users] Null pointer exception when using global in rdrl 6.0.1.F

SrjTx clickthex at yahoo.com
Tue Jan 28 01:18:12 EST 2014


Thanks for the reply.
I have read that section of the docs a multiple times.

Unfortunately, I do not have a handle to the ksession to call setGlobal on.

My knowledge session is created/owned by KIE-WB/Switchyard and we are
looking for an API so that I can get a handle to something on which I can
call setGlobal.

Ideally, I need something like
xxx.getKnowledgeBaseByName("mykb");
or maybe
xxx.getKnowledgePackageByName("mykb");
or maybe
xxx.getKnowledgeSessionByName("mykb");

which ever of those I can call setGlobal on.

FYI, our KIE stuff is container managed via maven integration with kie-wb -
we do not control the lifecycle of any KIE objects kb, package, session,
etc.

Thanks again



--
View this message in context: http://drools.46999.n3.nabble.com/Null-pointer-exception-when-using-global-in-rdrl-6-0-1-F-tp4027876p4027881.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list