TypesIncompatibleInTermException

Description

Steps to reproduce:

  • create a stochastical expression "1+2^2"

Error message:

de.uka.ipd.sdq.simucomframework.variables.exceptions.TypesIncompatibleInTermException: Incompatible types in term expression. Expecting Integer!
at de.uka.ipd.sdq.simucomframework.variables.stoexvisitor.PCMStoExEvaluationVisitor.caseTermExpression(PCMStoExEvaluationVisitor.java:282)
at de.uka.ipd.sdq.stoex.util.StoexSwitch.doSwitch(StoexSwitch.java:291)
at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:53)
at de.uka.ipd.sdq.pcm.stochasticexpressions.PCMStoExSwitch.doSwitch(PCMStoExSwitch.java:17)
at org.eclipse.emf.ecore.util.Switch.doSwitch(Switch.java:69)
at de.uka.ipd.sdq.simucomframework.variables.StackContext.evaluateStatic(StackContext.java:157)
at de.uka.ipd.sdq.simucomframework.variables.StackContext.evaluateStatic(StackContext.java:216)
at de.uka.ipd.sdq.simucomframework.variables.StackContext.evaluate(StackContext.java:57)
at defaultrepository.impl.aName.action_jwxYIBf3EeWD_5fPtP8fbQ(aName.java:87)
at defaultrepository.impl.aName.aName_aName0(aName.java:68)
at defaultrepository.impl.ports.aName_aName.aName0(aName_aName.java:20)
at defaultsystem.impl.ports.aName_defaultSystem.aName0(aName_defaultSystem.java:22)
at defaultusagescenario.impl.defaultUsageScenario.scenarioRunner(defaultUsageScenario.java:59)
at de.uka.ipd.sdq.simucomframework.usage.ClosedWorkloadUser.scenarioRunner(ClosedWorkloadUser.java:119)
at de.uka.ipd.sdq.simucomframework.usage.ClosedWorkloadUser.internalLifeCycle(ClosedWorkloadUser.java:79)
at de.uka.ipd.sdq.simucomframework.SimuComSimProcess.lifeCycle(SimuComSimProcess.java:176)
at de.uka.ipd.sdq.simulation.abstractsimengine.processes.SimulatedProcess.actions(SimulatedProcess.java:66)
at de.uka.ipd.sdq.simulation.abstractsimengine.processes.SimulatedProcess$1.run(SimulatedProcess.java:49)
at java.lang.Thread.run(Unknown Source)

The add operation can't be performed because left (1, integer) and right (4.0, double) parts are of different types.

Workaround: multiply the integer part with 1.0: "1.0*1+2^2" works.

Environment

OS: Windows 7
Build: Palladio nightly of 01.06.2015

Activity

Show:
Max Scheerer
December 9, 2020, 11:40 AM
Edited

The bug no longer exists. It is fixed with the new stoex editor version.

Martina Rapp
October 19, 2020, 9:39 AM

Please confirm/invalid bug based on the available new stoex editor. If still a bug, fixing can be addressed in a follow-up step.

Martina Rapp
February 3, 2020, 1:23 PM

needs reconfirmation as soon as new stoex editor is available

Christian Stier
November 4, 2015, 2:59 PM

Does not occur with current (old) StoEx'es. Will need to be fixed for new StoEx version.

Cannot Reproduce

Assignee

Max Scheerer

Reporter

Christopher Jung

Labels

None

Requirement Category

None

External issue URL

None

Severity

None

Priority

None

Status Whiteboard

None

External issue ID

None

Components

Affects versions

Priority

Minor