Uploaded image for project: 'Kogito'
  1. Kogito
  2. KOGITO-5731

Stunner - PropertyImpl cannot be cast to class DataOutput error

XMLWordPrintable

    • False
    • False
    • undefined

      Some processes can't be opened due to issue in marshallers.

      [main] ERROR org.kie.workbench.common.stunner.bpmn.backend.BaseDirectDiagramMarshaller - Marshalling error.
      java.lang.ClassCastException: class org.eclipse.bpmn2.impl.PropertyImpl cannot be cast to class org.eclipse.bpmn2.DataOutput (org.eclipse.bpmn2.impl.PropertyImpl and org.eclipse.bpmn2.DataOutput are in unnamed module of loader 'app')
      	at org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.properties.OutputAssignmentReader.fromAssociation(OutputAssignmentReader.java:39)
      	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
      	at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:720)
      	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
      	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
      	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
      	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      

      Issue can be solving by ignoring unknown element: https://github.com/hasys/kogito-editors-java/commit/a022e417364fea06261b2762dafe2428329eeefe

      See sample BPMN and build with applied fix: https://drive.google.com/drive/folders/1QwOsWSUtAWf0rQuK1Ct_o4gAUjl1NGKS

              romartin@redhat.com Roger Martinez
              kgaevski@redhat.com Kirill Gaevskii
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated: