[jBPM Users] - NullPointerException in JobExecutorMessageSession.send while
by joelmatt
Hello,
I have an application which is using spring and jbpm 4.0.
The application works fine if all the tasks are synchronous .
But when I add an asynchronous task in between it is giving me
Null pointerException in JobExecutorMessageSession.send.
It seems like the transaction is not injected into the JobExecutorMessageSession. I have JobExecuter configured in my
jbpm.cfg.xml
<import resource="jbpm.jobexecutor.cfg.xml" />
and my spring config contain
<bean id="jbpmConfiguration" class="org.jbpm.pvm.internal.cfg.SpringConfiguration">
| <constructor-arg value="etc/jbpm.cfg.xml" />
| </bean>
| <bean id="processEngine" factory-bean="jbpmConfiguration" factory-method="buildProcessEngine" lazy-init="false" />
I tried jbpm 4.0 but it it is also giving the same exception.
Can anybody suggest what i am doing wrong...
Regards,
Joel
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261387#4261387
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261387
16 years, 5 months
[jBPM Users] - Re: how to programatically list actitities from one activity
by kadrim
Interesting.... Thanks rams.rapo for your time...
But this means I have to use some classes of internal pvm, for instance :
org.jbpm.pvm.internal.cmd.GetOutcomes.java , and GetOutComes needs an instance of Environment in its execute method...
"...
public Set execute(Environment environment) {
..."
I've been looking at the code of org.jbpm.pvm.internal.cmd and it seems simple to use. Besides, I've been reading the developer's guide and this enlightment came to me:
"...
JbpmConfiguration jbpmcfg = new JbpmConfiguration();
ProcessEngine proceng = jbpmcfg.buildProcessEngine();
EnvironmentImpl envimpl = jbpmcfg.openEnvironment();
GetOutcomes goc = new GetOutcomes( )
Set outcome = goc.execute( envimpl );
..."
Is this what you've tried to tell me?
Also, I've got some questions about this:
1) Is the order of statements correct? I mean :
JbpmConfiguration jbpmcfg = new JbpmConfiguration();
ProcessEngine proceng = jbpmcfg.buildProcessEngine();
EnvironmentImpl envimpl = jbpmcfg.openEnvironment();
2) I'm supposing I can do the same with commands that make reads to the database like: GetStartActivityNamesCmd.java, is this right?
3) Will there be any problems in this way because I'm not using the User API directly? With problems I mean: exceptions, runtime exceptions, logic errors made by jbpm. It's obvious that this will change in future.
Any comments would be appreciated.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4261365#4261365
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4261365
16 years, 5 months