Camunda Spring Shared Process Engine

Hi,
I am trying to run Camunda Spring using shared process engine according to your example given in https://docs.camunda.org/stable/guides/getting-started-guides/spring-framework/.

There are 2 things different in my project and i.e. I am using gradle instead of maven and I have mentioned the process engine dependecy as
compile “org.camunda.bpm:camunda-engine:${camundaVersion}”

and another difference is that I am using Spring version 4.3.5.

Upon deploying my project it gives NullPointerException wherever I am autowiring the ProcessEngine or any of its component.

Can you please help?

Thanks
Bikash

Hi @Bikash1993,

Which Camunda version do you use?
I saw that your are referring to the old version of the guide. I am not sure what are the differences between the old one and the new but I think it is good idea to check the 7.8 guide:
https://docs.camunda.org/get-started/spring/

Best regards,
Yana

Hi Yana,
I am using Camunda 7.8 and I have checked that link as well I think it’s the same configuration as the old one.Please correct me if I am wrong.

Thanks
Bikash

Hi Bikash,

I am sorry for the late reply.
I guess the problem is because you are using Spring version 4.3.5.
This version is currently not supported.
Can you try with 3.1.2?

Best regards,
Yana

Hi Yana,

That’s the issue I cannot use the older version of spring,Can you please tell me an alternative solution,if not can you please specify that until which version of Spring is the Camunda supported.

Regards
Bikash

Did you add org.camunda.bpm:camunda-engine-spring to the dependencies as well?

Yes I have added the dependency

compile “org.camunda.bpm:camunda-engine-spring:${camundaVersion}”