hello,i'm developing a spring java project, i have integrated activiti in the app using jpa and hibernate for the data access.i'm testing a simple process wich uses a service task using a java delegate to insert data using jpa manager.the code is :
public class TEST implements JavaDelegate {
@Override
public void execute(DelegateExecution execution) throws Exception {
// TODO Auto-generated method stub
ITicketManager tm=(ITicketManager) execution.getVariable("ticketManager");
Ticket ticket=ne ticket();
tm.save(ticket);
}
whene executing this code is this process:start event –> service task –> end eventi have no probleme, the code execute perfectlybut when i introduce a timer in my process (just to call the service task after 10 secondes):start event –> timer intermediate catch event –> service tasl –> end eventi have a exeption thrown in the :
tm.save(ticket);
the exeption is
ERROR: org.activiti.engine.impl.asyncexecutor.ExecuteAsyncRunnable - Job 97517 failed
org.springframework.aop.framework.adapter.UnknownAdviceTypeException: Advice object [null] is neither a supported subinterface of [org.aopalliance.aop.Advice] nor an [org.springframework.aop.Advisor]
at org.springframework.aop.framework.adapter.DefaultAdvisorAdapterRegistry.getInterceptors(DefaultAdvisorAdapterRegistry.java:91)
at org.springframework.aop.framework.DefaultAdvisorChainFactory.getInterceptorsAndDynamicInterceptionAdvice(DefaultAdvisorChainFactory.java:65)
at org.springframework.aop.framework.AdvisedSupport.getInterceptorsAndDynamicInterceptionAdvice(AdvisedSupport.java:489)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:193)
at com.sun.proxy.$Proxy63.doIt(Unknown Source)
at com.casaprestations.burs.acp.process.scripts.test.TEST.execute(TEST.java:19)
i have the job executore enabled.the activiti version is 5.18.0thakns for the helpfriendly