[jboss-user] [JBoss jBPM] - Scheduler configuration

lucdew do-not-reply at jboss.com
Mon Sep 24 12:09:50 EDT 2007


Hi, 

i have problems trying to enable jbpm timers.

I declared the following configuration (which is copied from the default.jbpm.cfg.xml). 
 
	<!-- Jbpm job executor -->
  |     <bean name="jbpm.job.executor" class="org.jbpm.job.executor.JobExecutor">
  | 	    <field name="jbpmConfiguration"><ref bean="jbpmConfiguration" /></field>
  | 	    <field name="name"><string value="JbpmJobExector" /></field>
  | 	    <field name="nbrOfThreads"><int value="1" /></field>
  | 	    <field name="idleInterval"><int value="5000" /></field>
  | 	    <field name="maxIdleInterval"><int value="3600000" /></field> <!-- 1 hour -->
  | 	    <field name="historyMaxSize"><int value="20" /></field>
  | 	    <field name="maxLockTime"><int value="600000" /></field> <!-- 10 minutes -->
  | 	    <field name="lockMonitorInterval"><int value="60000" /></field> <!-- 1 minute -->
  | 	    <field name="lockBufferTime"><int value="5000" /></field> <!-- 5 seconds -->
  |   	</bean>	

The problem is that i get the following message:
anonymous wrote : 2007-09-24 17:20:23,709 INFO  [STDOUT]  WARN [main] org.jbpm.configuration.ObjectFactoryImpl - no info for object 'jbpmConfiguration'.

At deployment time i execute the following code to start the JobExecutorThread:

JbpmConfiguration configuration = JbpmConfiguration.getInstance();
  | configuration.startJobExecutor();

I don't even understand how the default configuration can work since in the default configuration file there's no "jbpmConfiguration" bean defined. 
This bean is a dependency of jbpm.job.executor bean. 
I searched in the sources but haven't found any jbpmConfiguration bean key defined. Maybe it finds it by its type.

But the default configuration generates the following exceptions:

anonymous wrote : 2007-09-24 17:20:23,715 INFO  [STDOUT] ERROR [JbpmJobExector:10.X.X.X:1] org.jbpm.job.executor.JobExecutorThread - exception in job executor thread. waiting 5000 milliseconds
  | java.lang.NullPointerException
  | 	at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:106)
  | 	at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:56)
  | I need you help.

Thanks
Luc
(jbpm version 3.2.1)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4088028#4088028

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4088028



More information about the jboss-user mailing list