cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti on Spring configuration issue with navigatorManager

macbarfuss
Champ in-the-making
Champ in-the-making
I try to get Activiti including Explorer (and Camel, doesn't matter here) running in a spring container.

The Activiti Engine is working. (At least, there is no error on startup) But I can't get the explorer running.

mvn camel:run dies with java.lang.reflect.InvocationTargetException


Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'navigatorManager'
Caused by: java.lang.NullPointerException
   at org.activiti.explorer.navigation.TaskNavigator.<init>(TaskNavigator.java:51)

I'm not quite sure if the beans-configuration is complete.

Everything is fine if I comment out following line from context definition:

<bean name="navigatorManager" class="org.activiti.explorer.navigation.NavigatorManager" />

I actually do have a


   <bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
      <property name="processEngineConfiguration" ref="processEngineConfiguration" />
   </bean>

Can anybody give me a hint what I forgot?

EDIT: added the info the problem is concerning the explorer.
3 REPLIES 3

macbarfuss
Champ in-the-making
Champ in-the-making
Hi there!

I compared my configuration with the examlpe configuration attached to "Activiti In Action" (book-camel) and corrected some entries.

Now it runs.

frederikherema1
Star Contributor
Star Contributor
Maybe you can share what you did wrong, can be interesting for other uses as well…

macbarfuss
Champ in-the-making
Champ in-the-making
Yes, you're right.

When I tried to get everything up I added the necessary beans and tried to start with mvn camel:run.

I first had errors here:


<bean id="repositoryService" factory-bean="processEngine"
  factory-method="getRepositoryService" />
<bean id="runtimeService" factory-bean="processEngine"
  factory-method="getRuntimeService" />
<bean id="taskService" factory-bean="processEngine"
  factory-method="getTaskService" />
<bean id="historyService" factory-bean="processEngine"
  factory-method="getHistoryService" />
<bean id="managementService" factory-bean="processEngine"
  factory-method="getManagementService" />

I tried to figure out what was wrong and found similar bean configurations on the web with processEngingeConfiguration as factory-bean, like:


<bean id="repositoryService" factory-bean="processEngingeConfiguration"
  factory-method="getRepositoryService" />
<bean id="runtimeService" factory-bean="processEngingeConfiguration"
  factory-method="getRuntimeService" />
<bean id="taskService" factory-bean="processEngingeConfiguration"
  factory-method="getTaskService" />
<bean id="historyService" factory-bean="processEngingeConfiguration"
  factory-method="getHistoryService" />
<bean id="managementService" factory-bean="processEngingeConfiguration"
  factory-method="getManagementService" />

Then this seamed to work until I got the error when I started this thread. I had to change things back as shown in the first code block.

But I'm sorry, I have no idea why this did not work and works now. Maybe I changed a dependency from maven but can't remeber.