JBoss Community

Re: Why is my kruntime null?

created by Ryan Peterson in jBPM - View the full discussion

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...

Reply to this message by going to Community

Start a new discussion in jBPM at Community