Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModelElementInstanceImpl cannot be cast to class BpmnModelElementInstance #5896

Closed
Zelldon opened this issue Nov 23, 2020 · 2 comments
Closed
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

Comments

@Zelldon
Copy link
Member

Zelldon commented Nov 23, 2020

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

java.lang.ClassCastException: class org.camunda.bpm.model.xml.impl.instance.ModelElementInstanceImpl cannot be cast to class io.zeebe.model.bpmn.instance.BpmnModelElementInstance (org.camunda.bpm.model.xml.impl.instance.ModelElementInstanceImpl and io.zeebe.model.bpmn.instance.BpmnModelElementInstance are in unnamed module of loader 'app')
at java.util.ArrayList.forEach (Unknown Source)
at io.zeebe.model.bpmn.traversal.ModelWalker.walk (ModelWalker.java:62)
at io.zeebe.engine.processing.deployment.transform.BpmnValidator.validate (BpmnValidator.java:40)
at io.zeebe.engine.processing.deployment.transform.DeploymentTransformer.transformResource (DeploymentTransformer.java:104)
at io.zeebe.engine.processing.deployment.transform.DeploymentTransformer.transform (DeploymentTransformer.java:81)
at io.zeebe.engine.processing.deployment.TransformingDeploymentCreateProcessor.processRecord (TransformingDeploymentCreateProcessor.java:71)
at io.zeebe.engine.processing.streamprocessor.TypedRecordProcessor.processRecord (TypedRecordProcessor.java:51)
at io.zeebe.engine.processing.streamprocessor.ProcessingStateMachine.lambda$processInTransaction$2 (ProcessingStateMachine.java:267)
at io.zeebe.db.impl.rocksdb.transaction.ZeebeTransaction.run (ZeebeTransaction.java:79)
at io.zeebe.engine.processing.streamprocessor.ProcessingStateMachine.processInTransaction (ProcessingStateMachine.java:258)
at io.zeebe.engine.processing.streamprocessor.ProcessingStateMachine.processEvent (ProcessingStateMachine.java:227)
at io.zeebe.engine.processing.streamprocessor.ProcessingStateMachine.tryToReadNextEvent (ProcessingStateMachine.java:203)
at io.zeebe.engine.processing.streamprocessor.ProcessingStateMachine.readNextEvent (ProcessingStateMachine.java:194)
at io.zeebe.util.sched.ActorJob.invoke (ActorJob.java:76)
at io.zeebe.util.sched.ActorJob.execute (ActorJob.java:39)
at io.zeebe.util.sched.ActorTask.execute (ActorTask.java:122)
at io.zeebe.util.sched.ActorThread.executeCurrentTask (ActorThread.java:107)
at io.zeebe.util.sched.ActorThread.doWork (ActorThread.java:91)
at io.zeebe.util.sched.ActorThread.run (ActorThread.java:204)

Environment:

  • OS: k8s production
  • Zeebe Version: 0.25.1
  • Configuration: default
@Zelldon Zelldon added 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 Impact: Usability labels Nov 23, 2020
@npepinpe
Copy link
Member

npepinpe commented Nov 23, 2020

Is this a duplicate of #4817? @saig0 mentioned it may be related to #3278

@Zelldon
Copy link
Member Author

Zelldon commented Nov 23, 2020

Thanks haven't found that via the search 👀

@Zelldon Zelldon closed this as completed Nov 23, 2020
github-merge-queue bot pushed a commit that referenced this issue Mar 14, 2024
…#5896)

Bumps software.amazon.awssdk:auth from 2.21.21 to 2.21.23.

---
updated-dependencies:
- dependency-name: software.amazon.awssdk:auth
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants