AnsweredAssumed Answered

Activiti and Spring Batch

Question asked by danielbreitner on Dec 21, 2011
Latest reply on Dec 21, 2011 by danielbreitner
Hi Folks,

lots and lots of problems with activiti in our project.

What I am currently trying to do is to launch a spring batch job from within activiti.

But whenever I start the spring batch job I get the exception you can see down here.

One question: Is there anything that I need to think of, when using spring batch together with activiti?

java.lang.IllegalStateException: Existing transaction detected in JobRepository. Please fix this and try again (e.g. remove @Transactional annotations from client).
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(
        at $Proxy55.createJobExecution(Unknown Source)
        at org.springframework.batch.test.JobLauncherTestUtils.launchJob(
        at de.isb.leo.dataimport.tasks.SpringBatchTask.execute(
        at de.isb.leo.dataimport.tasks.SpringBatchTask.start(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke([/size]