ClassCastException when using CompositeComponents

Description

Caused by: java.lang.ClassCastException: class org.palladiosimulator.pcm.core.composition.impl.AssemblyContextImpl cannot be cast to class org.palladiosimulator.pcm.repository.CompositeComponent (org.palladiosimulator.pcm.core.composition.impl.AssemblyContextImpl and org.palladiosimulator.pcm.repository.CompositeComponent are in unnamed module of loader org.eclipse.osgi.internal.loader.EquinoxClassLoader @65129349)

       at org.palladiosimulator.simulizar.modelobserver.AllocationLookupSyncer.addAssemblyAllocation(AllocationLookupSyncer.java:121)

       at org.palladiosimulator.simulizar.modelobserver.AllocationLookupSyncer.doAddAllocationContext(AllocationLookupSyncer.java:193)

       at java.base/java.lang.Iterable.forEach(Iterable.java:75)

       at org.palladiosimulator.simulizar.modelobserver.AllocationLookupSyncer.addInitialAllocations(AllocationLookupSyncer.java:90)

       at org.palladiosimulator.simulizar.modelobserver.AllocationLookupSyncer.initialize(AllocationLookupSyncer.java:67)

       at org.palladiosimulator.simulizar.runtimestate.AbstractSimuLizarRuntimeState.lambda$3(AbstractSimuLizarRuntimeState.java:296)

       at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)

       at org.palladiosimulator.simulizar.runtimestate.AbstractSimuLizarRuntimeState.initializeModelObservers(AbstractSimuLizarRuntimeState.java:296)

       at org.palladiosimulator.simulizar.runtimestate.AbstractSimuLizarRuntimeState.<init>(AbstractSimuLizarRuntimeState.java:109)

       at org.palladiosimulator.simulizar.runtimestate.SimuLizarRuntimeState.<init>(SimuLizarRuntimeState.java:34)

       at org.palladiosimulator.simulizar.launcher.jobs.PCMStartInterpretationJob.execute(PCMStartInterpretationJob.java:68)

       at de.uka.ipd.sdq.workflow.jobs.SequentialJob.executeWithDelayedCleanUp(SequentialJob.java:111)

       at de.uka.ipd.sdq.workflow.jobs.SequentialJob.execute(SequentialJob.java:79)

       at de.uka.ipd.sdq.workflow.jobs.SequentialBlackboardInteractingJob.execute(SequentialBlackboardInteractingJob.java:86)

       at de.uka.ipd.sdq.workflow.jobs.SequentialJob.executeWithImmediateCleanUp(SequentialJob.java:150)

Environment

None

Activity

Show:
Jörg Henß
May 13, 2020, 12:59 PM

Occured when using a CompositeComponent with Simulizar

Fixed

Assignee

Sebastian Krach

Reporter

Sebastian Krach

Requirement Category

Functional