Failed to save model

Hi
Using Apache Tomcat, MsSQL, and I am the only person that is updating the model.

Hitting this error very frequent when the model get complicated, why?
The problem get resolved itself if I close and re-open the model again.
But as it happen too frequent, it become really frustrating as the work might just gone if I didnt keep an eyes on the server console that warn about this. The modeler UI does not prompt any error in this case.

[com.mchange.v2.c3p0.impl.NewPooledConnection@2d5e6c4b] on CHECKIN.
04:06:02,536 [http-nio-8080-exec-7] DEBUG org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver - Resolving exception from handler [public org.flowable.app.model.editor.ModelRepresentation org.flowable.app.rest.editor.ModelResource.saveModel(java.lang.String,org.springframework.util.MultiValueMap<java.lang.String, java.lang.String>)]: org.flowable.app.service.exception.ConflictingRequestException: Process model was updated in the meantime
04:06:02,536 [http-nio-8080-exec-7] DEBUG org.springframework.web.servlet.mvc.annotation.ResponseStatusExceptionResolver - Resolving exception from handler [public org.flowable.app.model.editor.ModelRepresentation org.flowable.app.rest.editor.ModelResource.saveModel(java.lang.String,org.springframework.util.MultiValueMap<java.lang.String, java.lang.String>)]: org.flowable.app.service.exception.ConflictingRequestException: Process model was updated in the meantime
04:06:02,536 [http-nio-8080-exec-7] DEBUG org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver - Resolving exception from handler [public org.flowable.app.model.editor.ModelRepresentation org.flowable.app.rest.editor.ModelResource.saveModel(java.lang.String,org.springframework.util.MultiValueMap<java.lang.String, java.lang.String>)]: org.flowable.app.service.exception.ConflictingRequestException: Process model was updated in the meantime
04:06:02,536 [http-nio-8080-exec-7] DEBUG org.springframework.web.servlet.DispatcherServlet - Could not complete request
org.flowable.app.service.exception.ConflictingRequestException: Process model was updated in the meantime
at org.flowable.app.rest.editor.ModelResource.saveModel(ModelResource.java:221)
at sun.reflect.GeneratedMethodAccessor456.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205)
at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133)
at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827)
at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738)
at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)

Which version of MySQL are you using?

Regards
Paul.

It is Microsoft SQL Server 2016 , and hosted in Amazon.

Hi,

The same problem remains even though I use the local MsSQL DB.
Can please help to check on this, thanks a lot

Hi,
Found the flow in this .

org.flowable.app.rest.editor.ModelResource

String resolveAction = values.getFirst(“conflictResolveAction”);
→ this is NULL then will hit the following exception block.

And as I am editing the model, and save as current version. thus there will be no value for “newVersion” too, then exception kick in.

            String isNewVersionString = values.getFirst("newversion");
            if (currentUserIsOwner && "true".equals(isNewVersionString)) {
                return updateModel(model, values, true);
            } else {
                // Tried everything, this is really a conflict, return 409
                ConflictingRequestException exception = new ConflictingRequestException("Process model was updated in the meantime");
                exception.addCustomData("userFullName", model.getLastUpdatedBy());
                exception.addCustomData("newVersionAllowed", currentUserIsOwner);
                throw exception;
            }

Blockquote

You’ve indeed hit a bug. Fixed here: https://github.com/flowable/flowable-engine/commit/4b29300983c50eb5c53f2bd91c80cb7f4ec35978

Hi

Thanks a lot. It seems to be resolved now.