-
1. Re: Why is my kruntime null?
rrpeterson Oct 4, 2011 1:14 PM (in response to d.y.)I'm running into this exact exception today trying to implement process migration via: WorkflowProcessInstanceUpgrader.upgradeProcessInstance()
During the migration, a call is made to getProcess() within ProcessInstanceImpl:
public Process getProcess() { if (this.process == null) { this.process = kruntime.getKnowledgeBase().getProcess(processId); } return this.process; } kruntime is null internally.
Based on a different poster's experience I tried removing Bitronix as the transaction manager by commenting out the following:
env.set(EnvironmentName.TRANSACTION_MANAGER, TransactionManagerServices.getTransactionManager());I "think" it works, but I get an error further along in the conversion about being unable to cast CommandBasedStatefulKnowledgeSession to InternalKnowledgeRuntime.
Not sure if this is helpful to you...
-
2. Re: Why is my kruntime null?
d.y. Oct 5, 2011 4:28 AM (in response to rrpeterson)yeah, that helped, thank you! Facing some new trouble though^^
-
3. Re: Why is my kruntime null?
zhujinwei Feb 24, 2012 11:41 AM (in response to rrpeterson)This trouble has puzzled me , too . Hope someone can explain it!