cancel
Showing results for 
Search instead for 
Did you mean: 

error in delegate java service task when using timer

idr_mdi
Champ in-the-making
Champ in-the-making
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 event
i have no probleme, the code execute perfectly
but 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 event
i 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.0
thakns for the help
friendly
1 REPLY 1

vasile_dirla
Star Contributor
Star Contributor
I already saw this issue in another post, if you agree we should talk about an issue only on a single thread.
https://forums.activiti.org/content/error-delegate-java-service-task-when-using-timer