Start process fails because of Internal Server Error


#1

Hi there,

I am trying to use Built-In Process Engine Plugin, Process Application Event Listeners, however when I try to start the process and set a variable value I get the following exception. any ideas why? I am using wildfly11. My implementation looks like:

@ProcessApplication
public class CamundaBpmProcessApplication extends ServletProcessApplication {
	public TaskListener getTaskListener() {
	    return new TaskListener() {
	      public void notify(DelegateTask delegateTask) {    	    	  
	    	  delegateTask.setAssignee("TestUser");
	    };
	}
	
	public ExecutionListener getExecutionListener() {
	    return new ExecutionListener() {
	      public void notify(DelegateExecution execution) throws Exception {    	    	 
	      }
	    };
	  }

  @PostDeploy
  public void onDeploymentFinished(ProcessEngine processEngine) {
  }

}


 13:33:38,499 ERROR [io.undertow.request] (default task-49) UT005023: Exception handling request to /camunda/api/engine/engine/default/process-definition/reactor.bus:1:410b43c9-0fc2-11e9-bb8a-669abed5c30f/submit-form: org.jboss.resteasy.spi.UnhandledException: java.lang.StackOverflowError
        at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:78)
        at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:222)
        at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:179)
        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:422)
        at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:213)
        at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:228)
        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56)
        at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
        at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
        at org.camunda.bpm.engine.rest.filter.CacheControlFilter.doFilter(CacheControlFilter.java:41)
        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at org.camunda.bpm.engine.rest.filter.EmptyBodyFilter.doFilter(EmptyBodyFilter.java:95)
        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at org.camunda.bpm.webapp.impl.security.filter.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:132)
        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at org.camunda.bpm.webapp.impl.security.filter.SecurityFilter.doFilterSecure(SecurityFilter.java:67)
        at org.camunda.bpm.webapp.impl.security.filter.SecurityFilter.doFilter(SecurityFilter.java:51)
        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at org.camunda.bpm.webapp.impl.security.auth.AuthenticationFilter$1.execute(AuthenticationFilter.java:58)
        at org.camunda.bpm.webapp.impl.security.auth.AuthenticationFilter$1.execute(AuthenticationFilter.java:56)
        at org.camunda.bpm.webapp.impl.security.SecurityActions.runWithAuthentications(SecurityActions.java:40)
        at org.camunda.bpm.webapp.impl.security.auth.AuthenticationFilter.doFilter(AuthenticationFilter.java:56)
        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
        at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
        at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
        at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
        at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131)
        at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
        at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
        at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
        at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
        at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50)
        at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at org.wildfly.extension.undertow.deployment.GlobalRequestControllerHandler.handleRequest(GlobalRequestControllerHandler.java:68)
        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
        at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292)
        at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81)
        at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138)
        at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135)
        at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
        at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
        at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
        at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1508)
        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272)
        at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81)
        at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104)
        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:326)
        at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:812)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.StackOverflowError
        at java.lang.ThreadLocal.get(Unknown Source)
        at org.camunda.bpm.engine.impl.context.Context.getStack(Context.java:134)
        at org.camunda.bpm.engine.impl.context.Context.getProcessEngineConfiguration(Context.java:81)
        at org.camunda.bpm.engine.impl.context.ProcessApplicationContextUtil.getTargetProcessApplication(ProcessApplicationContextUtil.java:98)
        at org.camunda.bpm.engine.impl.context.ProcessApplicationContextUtil.getTargetProcessApplication(ProcessApplicationContextUtil.java:73)
        at org.camunda.bpm.engine.impl.context.ProcessApplicationContextUtil.getTargetProcessApplication(ProcessApplicationContextUtil.java:35)
        at org.camunda.bpm.engine.impl.context.ProcessApplicationContextUtil.getTargetProcessApplication(ProcessApplicationContextUtil.java:24)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.getProcessApplicationForInvocation(DefaultDelegateInterceptor.java:133)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:47)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.fireEvent(TaskEntity.java:956)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.setAssignee(TaskEntity.java:861)
        at org.camunda.test.reactor.bus.CamundaBpmProcessApplication$1.notify(CamundaBpmProcessApplication.java:28)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notifyTaskListener(ProcessApplicationEventListenerDelegate.java:125)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:70)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:68)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.performNotification(ProcessApplicationEventListenerDelegate.java:95)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notify(ProcessApplicationEventListenerDelegate.java:75)
        at org.camunda.bpm.engine.impl.task.delegate.TaskListenerInvocation.invoke(TaskListenerInvocation.java:41)
        at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:54)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocationInContext(DefaultDelegateInterceptor.java:87)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:59)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.fireEvent(TaskEntity.java:956)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.setAssignee(TaskEntity.java:861)
        at org.camunda.test.reactor.bus.CamundaBpmProcessApplication$1.notify(CamundaBpmProcessApplication.java:28)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notifyTaskListener(ProcessApplicationEventListenerDelegate.java:125)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:70)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:68)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.performNotification(ProcessApplicationEventListenerDelegate.java:95)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notify(ProcessApplicationEventListenerDelegate.java:75)
        at org.camunda.bpm.engine.impl.task.delegate.TaskListenerInvocation.invoke(TaskListenerInvocation.java:41)
        at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:54)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocationInContext(DefaultDelegateInterceptor.java:87)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:59)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.fireEvent(TaskEntity.java:956)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.setAssignee(TaskEntity.java:861)
        at org.camunda.test.reactor.bus.CamundaBpmProcessApplication$1.notify(CamundaBpmProcessApplication.java:28)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notifyTaskListener(ProcessApplicationEventListenerDelegate.java:125)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:70)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:68)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.performNotification(ProcessApplicationEventListenerDelegate.java:95)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notify(ProcessApplicationEventListenerDelegate.java:75)
        at org.camunda.bpm.engine.impl.task.delegate.TaskListenerInvocation.invoke(TaskListenerInvocation.java:41)
        at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:54)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocationInContext(DefaultDelegateInterceptor.java:87)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:59)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.fireEvent(TaskEntity.java:956)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.setAssignee(TaskEntity.java:861)
        at org.camunda.test.reactor.bus.CamundaBpmProcessApplication$1.notify(CamundaBpmProcessApplication.java:28)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notifyTaskListener(ProcessApplicationEventListenerDelegate.java:125)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:70)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:68)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.performNotification(ProcessApplicationEventListenerDelegate.java:95)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notify(ProcessApplicationEventListenerDelegate.java:75)
        at org.camunda.bpm.engine.impl.task.delegate.TaskListenerInvocation.invoke(TaskListenerInvocation.java:41)
        at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:54)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocationInContext(DefaultDelegateInterceptor.java:87)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:59)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.fireEvent(TaskEntity.java:956)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.setAssignee(TaskEntity.java:861)
        at org.camunda.test.reactor.bus.CamundaBpmProcessApplication$1.notify(CamundaBpmProcessApplication.java:28)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notifyTaskListener(ProcessApplicationEventListenerDelegate.java:125)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:70)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:68)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.performNotification(ProcessApplicationEventListenerDelegate.java:95)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notify(ProcessApplicationEventListenerDelegate.java:75)
        at org.camunda.bpm.engine.impl.task.delegate.TaskListenerInvocation.invoke(TaskListenerInvocation.java:41)
        at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:54)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocationInContext(DefaultDelegateInterceptor.java:87)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:59)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.fireEvent(TaskEntity.java:956)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.setAssignee(TaskEntity.java:861)
        at org.camunda.test.reactor.bus.CamundaBpmProcessApplication$1.notify(CamundaBpmProcessApplication.java:28)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notifyTaskListener(ProcessApplicationEventListenerDelegate.java:125)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:70)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:68)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.performNotification(ProcessApplicationEventListenerDelegate.java:95)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notify(ProcessApplicationEventListenerDelegate.java:75)
        at org.camunda.bpm.engine.impl.task.delegate.TaskListenerInvocation.invoke(TaskListenerInvocation.java:41)
        at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:54)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocationInContext(DefaultDelegateInterceptor.java:87)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:59)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.fireEvent(TaskEntity.java:956)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.setAssignee(TaskEntity.java:861)
        at org.camunda.test.reactor.bus.CamundaBpmProcessApplication$1.notify(CamundaBpmProcessApplication.java:28)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notifyTaskListener(ProcessApplicationEventListenerDelegate.java:125)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:70)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:68)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.performNotification(ProcessApplicationEventListenerDelegate.java:95)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notify(ProcessApplicationEventListenerDelegate.java:75)
        at org.camunda.bpm.engine.impl.task.delegate.TaskListenerInvocation.invoke(TaskListenerInvocation.java:41)
        at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:54)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocationInContext(DefaultDelegateInterceptor.java:87)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:59)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.fireEvent(TaskEntity.java:956)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.setAssignee(TaskEntity.java:861)
        at org.camunda.test.reactor.bus.CamundaBpmProcessApplication$1.notify(CamundaBpmProcessApplication.java:28)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notifyTaskListener(ProcessApplicationEventListenerDelegate.java:125)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:70)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:68)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.performNotification(ProcessApplicationEventListenerDelegate.java:95)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notify(ProcessApplicationEventListenerDelegate.java:75)
        at org.camunda.bpm.engine.impl.task.delegate.TaskListenerInvocation.invoke(TaskListenerInvocation.java:41)
        at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:54)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocationInContext(DefaultDelegateInterceptor.java:87)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:59)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.fireEvent(TaskEntity.java:956)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.setAssignee(TaskEntity.java:861)
        at org.camunda.test.reactor.bus.CamundaBpmProcessApplication$1.notify(CamundaBpmProcessApplication.java:28)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notifyTaskListener(ProcessApplicationEventListenerDelegate.java:125)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:70)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:68)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.performNotification(ProcessApplicationEventListenerDelegate.java:95)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notify(ProcessApplicationEventListenerDelegate.java:75)
        at org.camunda.bpm.engine.impl.task.delegate.TaskListenerInvocation.invoke(TaskListenerInvocation.java:41)
        at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:54)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocationInContext(DefaultDelegateInterceptor.java:87)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:59)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.fireEvent(TaskEntity.java:956)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.setAssignee(TaskEntity.java:861)
        at org.camunda.test.reactor.bus.CamundaBpmProcessApplication$1.notify(CamundaBpmProcessApplication.java:28)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notifyTaskListener(ProcessApplicationEventListenerDelegate.java:125)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:70)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:68)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.performNotification(ProcessApplicationEventListenerDelegate.java:95)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notify(ProcessApplicationEventListenerDelegate.java:75)
        at org.camunda.bpm.engine.impl.task.delegate.TaskListenerInvocation.invoke(TaskListenerInvocation.java:41)
        at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:54)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocationInContext(DefaultDelegateInterceptor.java:87)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:59)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.fireEvent(TaskEntity.java:956)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.setAssignee(TaskEntity.java:861)
        at org.camunda.test.reactor.bus.CamundaBpmProcessApplication$1.notify(CamundaBpmProcessApplication.java:28)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notifyTaskListener(ProcessApplicationEventListenerDelegate.java:125)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:70)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:68)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.performNotification(ProcessApplicationEventListenerDelegate.java:95)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notify(ProcessApplicationEventListenerDelegate.java:75)
        at org.camunda.bpm.engine.impl.task.delegate.TaskListenerInvocation.invoke(TaskListenerInvocation.java:41)
        at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:54)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocationInContext(DefaultDelegateInterceptor.java:87)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:59)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.fireEvent(TaskEntity.java:956)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.setAssignee(TaskEntity.java:861)
        at org.camunda.test.reactor.bus.CamundaBpmProcessApplication$1.notify(CamundaBpmProcessApplication.java:28)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notifyTaskListener(ProcessApplicationEventListenerDelegate.java:125)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:70)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:68)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.performNotification(ProcessApplicationEventListenerDelegate.java:95)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notify(ProcessApplicationEventListenerDelegate.java:75)
        at org.camunda.bpm.engine.impl.task.delegate.TaskListenerInvocation.invoke(TaskListenerInvocation.java:41)
        at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:54)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocationInContext(DefaultDelegateInterceptor.java:87)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:59)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.fireEvent(TaskEntity.java:956)
        at org.camunda.bpm.engine.impl.persistence.entity.TaskEntity.setAssignee(TaskEntity.java:861)
        at org.camunda.test.reactor.bus.CamundaBpmProcessApplication$1.notify(CamundaBpmProcessApplication.java:28)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notifyTaskListener(ProcessApplicationEventListenerDelegate.java:125)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:70)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate$2.call(ProcessApplicationEventListenerDelegate.java:68)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.performNotification(ProcessApplicationEventListenerDelegate.java:95)
        at org.camunda.bpm.application.impl.event.ProcessApplicationEventListenerDelegate.notify(ProcessApplicationEventListenerDelegate.java:75)
        at org.camunda.bpm.engine.impl.task.delegate.TaskListenerInvocation.invoke(TaskListenerInvocation.java:41)
        at org.camunda.bpm.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:54)
        at org.camunda.bpm.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocationInContext(DefaultDelegateInterceptor.java:87)

#2

It seems you are trying to set the assignee in every single task execution since you override getTaskListener of the entire application. I am not sure why this sends the application into an endless loop (StackOverflowError). But:

You do not need to create a listener to assign the initiator to a variable. In the modeler you can enter a variable name (e. g. starter) into the Initiator field of the start event, then that variable will be set to the user name of the initiator. In subsequent user tasks you can enter ${starter} into the Assignee field if you want that task to be assigned to the initiator automatically.


#3

Thanks for your reply. Basically what I want to do is to listen to a business process model and when a user task is created in Camunda task list, then I send an API call to another application. Here I just want to test if the listener works.