error in delegate java service task when using timer
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2015 08:29 PM
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 :
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 :
the exeption is
i have the job executore enabled.
the activiti version is 5.18.0
thakns for the help
friendly
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 failedorg.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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2015 04:32 AM
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
https://forums.activiti.org/content/error-delegate-java-service-task-when-using-timer
