This content has been marked as final.
Show 3 replies
-
1. Re: NullPointerException in JobExecutorMessageSession.send w
jbarrez Oct 29, 2009 7:37 AM (in response to joelmatt)Could you post the exact stacktrace. I've seen the job executor working on Spring earlier.
-
2. Re: NullPointerException in JobExecutorMessageSession.send w
joelmatt Oct 30, 2009 9:09 AM (in response to joelmatt)<?xml version="1.0" encoding="UTF-8"?> <jbpm-configuration> <import resource="jbpm.jpdl.cfg.xml" /> <import resource="jbpm.identity.cfg.xml" /> <import resource="jbpm.jobexecutor.cfg.xml" /> <process-engine-context> <job-executor threads="10" idle="15000" idle-max="60000" lock-millis="3600000" /> <repository-service /> <repository-cache /> <execution-service /> <history-service /> <management-service /> <identity-service /> <task-service /> <!-- Here we needed to change the transaction interceptor --> <command-service> <retry-interceptor /> <environment-interceptor /> <spring-transaction-interceptor /> </command-service> <!-- Added spring as read-context --> <script-manager default-expression-language="juel" default-script-language="juel" read-contexts="execution, environment, process-engine, spring" write-context=""> <script-language name="juel" factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" /> </script-manager> <!-- <authentication /> --> <id-generator /> <types resource="jbpm.variable.types.xml" /> <address-resolver /> <business-calendar> <monday hours="9:00-12:00 and 12:30-17:00" /> <tuesday hours="9:00-12:00 and 12:30-17:00" /> <wednesday hours="9:00-12:00 and 12:30-17:00" /> <thursday hours="9:00-12:00 and 12:30-17:00" /> <friday hours="9:00-12:00 and 12:30-17:00" /> <holiday period="01/07/2008 - 31/08/2008" /> </business-calendar> <mail-template name='task-notification'> <to users="${task.assignee}" /> <subject>${task.name}</subject> <text><![CDATA[Hi ${task.assignee}, Task "${task.name}" has been assigned to you. ${task.description} Sent by JBoss jBPM ]]></text> </mail-template> <mail-template name='task-reminder'> <to users="${task.assignee}" /> <subject>${task.name}</subject> <text><![CDATA[Hey ${task.assignee}, Do not forget about task "${task.name}". ${task.description} Sent by JBoss jBPM ]]></text> </mail-template> </process-engine-context> <transaction-context> <repository-session /> <db-session /> <transaction /> <message-session /> <timer-session /> <history-session /> <mail-session> <mail-server> <session-properties resource="jbpm.mail.properties" /> </mail-server> </mail-session> <!-- Need to set explicitly that we don't want jbpm to create sessions --> <hibernate-session current="false" /> </transaction-context> </jbpm-configuration>
The above configuration worked. I was missing tag in <transaction-context> and I have upgraded to jbpm 4.1 -
3. Re: NullPointerException in JobExecutorMessageSession.send w
joelmatt Oct 30, 2009 9:11 AM (in response to joelmatt)was missing in <transaction-context>.