web console occurred an error after starting a process instance via restful http request api.

cancel
Showing results for 
Search instead for 
Did you mean: 
chicheng
Member II

web console occurred an error after starting a process instance via restful http request api.

Hi,
My web console occurred an error after starting a process instance via restful http request api (activiti-rest.war)

Btw,
1. Both of my activiti-app.war and activiti-rest.war access the same database.
2. I generated a form input (type = interger) for running the process instance.

Activiti 6.0.0
JDK1.8
Windows7 64bit
Jetty 9.3.16

thanks

1.

bpmn2 web editor

2.

4.

   call /runtime/process-instances api

   request body:

{
     "processDefinitionId" : "smapleKey:10:12571",
     "variables" : [{
               "name" : "_days",
               "value" : 5
          }
     ]
}

3.

4.bpmn2

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:activiti="http://activiti.org/bpmn" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:omgdi="http://www.omg.org/spec/DD/20100524/DI" typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath" targetNamespace="http://www.activiti.org/processdef">
  <process id="smapleKey" name="smaple" isExecutable="true">
    <startEvent id="Start" name="Start" activiti:formKey="daysKey"></startEvent>
    <userTask id="Supervisor" name="Supervisor" activiti:assignee="supervisor" activiti:formKey="approveKey">
      <extensionElements>
        <modeler:initiator-can-complete xmlns:modeler="http://activiti.com/modeler"><![CDATA[false]]></modeler:initiator-can-complete>
      </extensionElements>
    </userTask>
    <exclusiveGateway id="sid-965A9261-ED33-401C-A1F1-279B1199D228"></exclusiveGateway>
    <userTask id="Hrhead" name="Hrhead" activiti:assignee="hrhead" activiti:formKey="approveKey">
      <extensionElements>
        <modeler:initiator-can-complete xmlns:modeler="http://activiti.com/modeler"><![CDATA[false]]></modeler:initiator-can-complete>
      </extensionElements>
    </userTask>
    <endEvent id="End2" name="End2"></endEvent>
    <endEvent id="End1" name="End1"></endEvent>
    <sequenceFlow id="Flow5" name="Flow5" sourceRef="Hrhead" targetRef="End2"></sequenceFlow>
    <sequenceFlow id="Flow1" name="Flow1" sourceRef="Start" targetRef="Supervisor"></sequenceFlow>
    <sequenceFlow id="Flow2" name="Flow2" sourceRef="Supervisor" targetRef="sid-965A9261-ED33-401C-A1F1-279B1199D228"></sequenceFlow>
    <sequenceFlow id="Flow4" name="Flow4" sourceRef="sid-965A9261-ED33-401C-A1F1-279B1199D228" targetRef="End1">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${_days <= 5 || _approve ==  false}]]></conditionExpression>
    </sequenceFlow>
    <sequenceFlow id="Flow3" name="Flow3" sourceRef="sid-965A9261-ED33-401C-A1F1-279B1199D228" targetRef="Hrhead">
      <conditionExpression xsi:type="tFormalExpression"><![CDATA[${_days > 5 && _approve}]]></conditionExpression>
    </sequenceFlow>
  </process>
  <bpmndi:BPMNDiagram id="BPMNDiagram_smapleKey">
    <bpmndi:BPMNPlane bpmnElement="smapleKey" id="BPMNPlane_smapleKey">
      <bpmndi:BPMNShape bpmnElement="Start" id="BPMNShape_Start">
        <omgdc:Bounds height="30.0" width="30.0" x="75.0" y="145.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="Supervisor" id="BPMNShape_Supervisor">
        <omgdc:Bounds height="80.0" width="100.0" x="165.0" y="120.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="sid-965A9261-ED33-401C-A1F1-279B1199D228" id="BPMNShape_sid-965A9261-ED33-401C-A1F1-279B1199D228">
        <omgdc:Bounds height="40.0" width="40.0" x="315.0" y="140.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="Hrhead" id="BPMNShape_Hrhead">
        <omgdc:Bounds height="80.0" width="100.0" x="405.0" y="120.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="End2" id="BPMNShape_End2">
        <omgdc:Bounds height="28.0" width="28.0" x="555.0" y="146.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNShape bpmnElement="End1" id="BPMNShape_End1">
        <omgdc:Bounds height="28.0" width="28.0" x="321.0" y="225.0"></omgdc:Bounds>
      </bpmndi:BPMNShape>
      <bpmndi:BPMNEdge bpmnElement="Flow3" id="BPMNEdge_Flow3">
        <omgdi:waypoint x="354.5798319327731" y="160.42016806722688"></omgdi:waypoint>
        <omgdi:waypoint x="405.0" y="160.2092050209205"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="Flow2" id="BPMNEdge_Flow2">
        <omgdi:waypoint x="265.0" y="160.20746887966806"></omgdi:waypoint>
        <omgdi:waypoint x="315.4166666666667" y="160.41666666666666"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="Flow5" id="BPMNEdge_Flow5">
        <omgdi:waypoint x="505.0" y="160.0"></omgdi:waypoint>
        <omgdi:waypoint x="555.0" y="160.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="Flow4" id="BPMNEdge_Flow4">
        <omgdi:waypoint x="335.37820512820514" y="179.62179487179486"></omgdi:waypoint>
        <omgdi:waypoint x="335.0891701657418" y="225.00028397853936"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
      <bpmndi:BPMNEdge bpmnElement="Flow1" id="BPMNEdge_Flow1">
        <omgdi:waypoint x="105.0" y="160.0"></omgdi:waypoint>
        <omgdi:waypoint x="165.0" y="160.0"></omgdi:waypoint>
      </bpmndi:BPMNEdge>
    </bpmndi:BPMNPlane>
  </bpmndi:BPMNDiagram>
</definitions>‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

5.

2017-07-04 14:01:06.195:WARN:oejs.ServletHandler:qtp231685785-85: 
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.activiti.form.engine.ActivitiFormException: No submitted form could be found
     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:978)
     at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
     at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)
     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1772)
     at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:205)
     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316)
     at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
     at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:122)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:149)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:168)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:48)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:205)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:120)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:64)
     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:53)
     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
     at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
     at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
     at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
     at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
     at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
     at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
     at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
     at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
     at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
     at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
     at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
     at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
     at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
     at org.eclipse.jetty.server.Server.handle(Server.java:534)
     at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
     at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
     at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)
     at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
     at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
     at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
     at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
     at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
     at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
     at java.lang.Thread.run(Unknown Source)
Caused by:
org.activiti.form.engine.ActivitiFormException: No submitted form could be found
     at org.activiti.form.engine.impl.cmd.GetCompletedFormDefinitionCmd.resolveSubmittedForm(GetCompletedFormDefinitionCmd.java:201)
     at org.activiti.form.engine.impl.cmd.GetCompletedFormDefinitionCmd.execute(GetCompletedFormDefinitionCmd.java:87)
     at org.activiti.form.engine.impl.cmd.GetCompletedFormDefinitionCmd.execute(GetCompletedFormDefinitionCmd.java:49)
     at org.activiti.form.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:29)
     at org.activiti.form.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:56)
     at org.activiti.form.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:29)
     at org.activiti.form.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:39)
     at org.activiti.form.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:34)
     at org.activiti.form.engine.impl.FormServiceImpl.getCompletedTaskFormDefinitionByKeyAndParentDeploymentId(FormServiceImpl.java:107)
     at org.activiti.app.rest.runtime.AbstractProcessInstanceResource.getStartFormDefinition(AbstractProcessInstanceResource.java:146)
     at org.activiti.app.rest.runtime.AbstractProcessInstanceResource.getProcessInstance(AbstractProcessInstanceResource.java:90)
     at org.activiti.app.rest.runtime.ProcessInstanceResource.getProcessInstance(ProcessInstanceResource.java:34)
     at sun.reflect.GeneratedMethodAccessor1003.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
     at java.lang.reflect.Method.invoke(Unknown Source)
     at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:221)
     at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)
     at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)
     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:776)
     at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:705)
     at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
     at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)
     at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)
     at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:966)
     at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:857)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
     at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:842)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
     at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848)
     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1772)
     at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:205)
     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:316)
     at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:126)
     at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:90)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:122)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:149)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:168)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:48)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:205)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:120)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:64)
     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:91)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:53)
     at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
     at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
     at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:213)
     at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
     at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
     at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1759)
     at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:582)
     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
     at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
     at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
     at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
     at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512)
     at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
     at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
     at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
     at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:119)
     at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
     at org.eclipse.jetty.server.Server.handle(Server.java:534)
     at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
     at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
     at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)
     at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
     at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
     at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
     at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
     at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
     at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
     at java.lang.Thread.run(Unknown Source)‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍
1 Reply
janv
Alfresco Employee

Re: web console occurred an error after starting a process instance via restful http request api.

Hi,

Thanks for the details. I haven't had a chance to setup and environment and try to repeat your issue but maybe someone else can confirm ?

Do you have the option to debug the process service, eg. add breakpoints to:

Caused by: 
org.activiti.form.engine.ActivitiFormException: No submitted form could be found
     at org.activiti.form.engine.impl.cmd.GetCompletedFormDefinitionCmd.resolveSubmittedForm(GetCompletedFormDefinitionCmd.java:201)
     at org.activiti.form.engine.impl.cmd.GetCompletedFormDefinitionCmd.execute(GetCompletedFormDefinitionCmd.java:87)
     at org.activiti.form.engine.impl.cmd.GetCompletedFormDefinitionCmd.execute(GetCompletedFormDefinitionCmd.java:49)
     ....
     at org.activiti.form.engine.impl.FormServiceImpl.getCompletedTaskFormDefinitionByKeyAndParentDeploymentId(FormServiceImpl.java:107)
     at org.activiti.app.rest.runtime.AbstractProcessInstanceResource.getStartFormDefinition(AbstractProcessInstanceResource.java:146)
     at org.activiti.app.rest.runtime.AbstractProcessInstanceResource.getProcessInstance(AbstractProcessInstanceResource.java:90)
     at org.activiti.app.rest.runtime.ProcessInstanceResource.getProcessInstance(ProcessInstanceResource.java:34)
     ....

You may also want to check what the client app is sending (eg. via browser developer tools &/or intermediate http proxy/analyser - eg. burpsuite, wireshark, fiddler).

Regards,

Jan