ModelElementInstanceImpl cannot be cast to class BpmnModelElementInstance #5896
Labels
kind/bug
Categorizes an issue or PR as a bug
scope/broker
Marks an issue or PR to appear in the broker section of the changelog
Describe the bug
Found that in a production cluster log. Unfortunately the cluster was already delete and I cant say what kind of model caused that. I'm not sure whether we really need to log that as error or not. Ideally I would say we return a good error message to the client, but Idk whether this happened in this case.
Error log
Error group https://console.cloud.google.com/errors/CPLX0sCVkLWzugE?service=zeebe&time=P7D&project=camunda-cloud-240911&authuser=1
To Reproduce
I assume something like having multiple models in one? It seems model element registers for
""
https://github.com/camunda/camunda-bpm-platform/blob/master/model-api/xml-model/src/main/java/org/camunda/bpm/model/xml/impl/instance/ModelElementInstanceImpl.java#L58 not 100% sure what this means, see https://github.com/zeebe-io/zeebe/blob/develop/bpmn-model/src/main/java/io/zeebe/model/bpmn/Bpmn.java#L536.Expected behavior
Errors like this can be detected and catched. A good error message is returned to the client, which shows what the problem is.
Log/Stacktrace
If possible add the full stacktrace or Zeebe log which contains the issue.
Full Stacktrace
Environment:
The text was updated successfully, but these errors were encountered: