Mendix Internal Workflow bug

0
We're getting issues when running the Workflow, the stack trace is as follows:   App_1  | ERROR - Workflow Engine: Error while executing workflow '51228445761416391': 'requirement failed'.App_1  | java.lang.IllegalArgumentException: requirement failedApp_1  |      at scala.Predef$.require(Predef.scala:324)App_1  |      at spray.json.BasicFormats$StringJsonFormat$.write(BasicFormats.scala:123)App_1  |      at spray.json.BasicFormats$StringJsonFormat$.write(BasicFormats.scala:121)App_1  |      at spray.json.RichAny.toJson(package.scala:44)App_1  |      at spray.json.StandardFormats$OptionFormat.write(StandardFormats.scala:34)App_1  |      at spray.json.StandardFormats$OptionFormat.write(StandardFormats.scala:32)App_1  |      at spray.json.ProductFormats.productElement2Field(ProductFormats.scala:47)App_1  | ERROR - TaskQueue: Failed to execute task 'MendixWorkflows-ExecuteWorkflow(51228445761416391,true)' from task queue 'System.MendixWorkflows-WorkflowExecution'.App_1  | com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"name":"MendixWorkflows-ExecuteWorkflow","type":"JavaAction"}', all database changes executed by this action were rolled backApp_1  |      at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:108)App_1  |App_1  | Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"name":"MendixWorkflows-ExecuteWorkflow","type":"JavaAction"}', all database changes executed by this action were rolled backApp_1  |      at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:23)App_1  |App_1  | Caused by: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"name":"MendixWorkflows-ExecuteWorkflow","type":"JavaAction"}', all database changes executed by this action were rolled backApp_1  |      at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.processErrorState(CoreActionHandlerImpl.scala:153)App_1  |App_1  | Caused by: java.lang.IllegalArgumentException: requirement failedApp_1  |      at scala.Predef$.require(Predef.scala:324)App_1  |      at spray.json.BasicFormats$StringJsonFormat$.write(BasicFormats.scala:123)App_1  |      at spray.json.BasicFormats$StringJsonFormat$.write(BasicFormats.scala:121)App_1  |      at spray.json.RichAny.toJson(package.scala:44)App_1  |      at spray.json.StandardFormats$OptionFormat.write(StandardFormats.scala:34)App_1  |      at spray.json.StandardFormats$OptionFormat.write(StandardFormats.scala:32)App_1  |      at spray.json.ProductFormats.productElement2Field(ProductFormats.scala:47)App_1  |      at spray.json.ProductFormats.productElement2Field$(ProductFormats.scala:42)App_1  |      at com.mendix.workflows.external.runtimeintegration.ActivityDetailsJsonProtocol$.productElement2Field(SprayJsonActivityDetailsJsonSerialization.scala:21)App_1  |      at spray.json.ProductFormatsInstances$$anon$6.write(ProductFormatsInstances.scala:155)App_1  |      at spray.json.ProductFormatsInstances$$anon$6.write(ProductFormatsInstances.scala:149)App_1  |      at spray.json.RichAny.toJson(package.scala:44)App_1  |      at com.mendix.workflows.external.runtimeintegration.SprayJsonActivityDetailsJsonSerialization.toJSON(SprayJsonActivityDetailsJsonSerialization.scala:15)App_1  |      at com.mendix.workflows.instance.WorkflowRepository.$anonfun$updateActivityEntity$3(WorkflowRepository.scala:219)   It seems this some mendix internal bug, has anyone ever had a problem with this? The Mendix Version is 10.6.2, but it doesn't let me select that.
asked
2 answers
0

Hi Stefan,

 

You can run into similar issues if you are setting the name or the description of the User Task (or workflow) to an empty value. It would be an idea to check if that is happening in the application.

 

 

answered
0

This error occurs when kicking off the workflow and initiating the first task?

Not sure but first thing to check, do you pass a valid object as context?

The entity type will be correct, but is the variable containing an object?

answered