1 Reply Latest reply on May 30, 2012 3:44 AM by TC ONG

    Where is jbpm-5.3.0.Final-src.zip?

    TC ONG Newbie

      I'm looking for the source code files.

      Because when I run

       

                private org.jbpm.task.TaskService localTaskService;

                private org.jbpm.task.service.TaskService taskService;

        ...

        ... 

        localTaskService = new org.jbpm.task.service.local.LocalTaskService(taskService);

       

      I get

      Caused by: java.lang.NullPointerException

                at org.jbpm.task.service.TaskService.createSession(TaskService.java:164)

                at org.jbpm.task.service.local.LocalTaskService.<init>(LocalTaskService.java:52)

                at com.geneoz.procedureengine.impl.drools.RulesEngineManager.init(RulesEngineManager.java:66)

                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

                at java.lang.reflect.Method.invoke(Method.java:597)

                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581)

                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1522)

                at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)

                ... 20 more

        • 1. Re: Where is jbpm-5.3.0.Final-src.zip?
          TC ONG Newbie

          Got the source from GitHub.

          https://github.com/droolsjbpm/jbpm/zipball/master

           

          Also notice something. My NullPointerException was caused by

            <bean id="taskService" class="org.jbpm.task.service.TaskService">

                       <property name="systemEventListener" ref="systemEventListener" />

            </bean>

          from drools-spring integration documentation. After looking at the souce code of

          org.jbpm.task.serviceTaskService, the constructors are like:

          TaskService(EntityManagerFactory emf, SystemEventListener systemEventListener)

          and

          TaskService(EntityManagerFactory emf, SystemEventListener systemEventListener, EscalatedDeadlineHandler escalationHandler)

          So I change my spring setting to:

              <bean id="taskService" class="org.jbpm.task.service.TaskService">

                  <constructor-arg name="emf" ref="htEmf" />

                  <constructor-arg name="systemEventListener" ref="systemEventListener" />

              </bean>

          and it works (for now).