0 Replies Latest reply on Apr 24, 2010 8:19 AM by Srinivas Vemula

    Any one configured jBPM 4.3 as a Spring Bean in a grails app??

    Srinivas Vemula Newbie

      Hello mates..

       

           Did any one got to configure jBPM 4.3 as a spring Bean in a grails env? We are adding workflow to a grails application, and wanted to have the process enginer available to our grails services as a bean...

       

      I tried following the procedure mentioned here http://diversit.eu/2010/01/10/jbpm-4-3-with-spring/

      I am ending up with the below NPE.

       

      Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Facto
      ry method [public org.jbpm.api.ProcessEngine eu.diversit.jbpm.spring.JbpmAutoSpr
      ingConfiguration.processEngine()] threw exception; nested exception is java.lang
      .NullPointerException
      … 23 more
      Caused by: java.lang.NullPointerException
      at org.jbpm.pvm.internal.processengine.ProcessEngineImpl.checkDb(Process
      EngineImpl.java:152)
      at org.jbpm.pvm.internal.processengine.SpringProcessEngine.create(Spring
      ProcessEngine.java:70)
      at org.jbpm.pvm.internal.cfg.ConfigurationImpl.buildProcessEngine(Config
      urationImpl.java:92)
      at eu.diversit.jbpm.spring.JbpmAutoSpringConfiguration.processEngine(Jbp
      mAutoSpringConfiguration.java:46)
      at eu.diversit.jbpm.spring.JbpmAutoSpringConfiguration$$EnhancerByCGLIB$
      $3d55055d.CGLIB$processEngine$1()
      at eu.diversit.jbpm.spring.JbpmAutoSpringConfiguration$$EnhancerByCGLIB$
      $3d55055d$$FastClassByCGLIB$$c3ccb95e.invoke()
      at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
      at eu.diversit.jbpm.spring.JbpmAutoSpringConfiguration$$EnhancerByCGLIB$
      $3d55055d.processEngine()

       

      Do u know what i am doing wrong?