StoEx with NamespaceReferences broken

Description

When simulating the latest MediaStore_Example (throughput etc. disabled), SimuCom fails with the RuntimeException "Expression not parsable "request.requestedFiles.NUMBER_OF_ELEMENTS"" (see below for a stack trace ).

"request." is a NamespaceReference. Removing the NamespaceReference in the model would solve this issue.

Also the StoEx editor refuses to accept the expression "request.requestedFiles.NUMBER_OF_ELEMENTS", which worked in former PCM releases.

Caused by: java.lang.RuntimeException: Expression not parsable "request.requestedFiles.NUMBER_OF_ELEMENTS"
at de.uka.ipd.sdq.simucomframework.variables.cache.StoExCacheEntry.<init>(StoExCacheEntry.java:53)
at de.uka.ipd.sdq.simucomframework.variables.cache.StoExCache.getEntry(StoExCache.java:59)
at de.uka.ipd.sdq.simucomframework.variables.StackContext.evaluate(StackContext.java:84)
at mediastorerepository.impl.WebGUI.action_A___1YEg_Ed2v5eXKEbOQ9g(WebGUI.java:217)
at mediastorerepository.impl.WebGUI.iHTTP_HTTPDownload0(WebGUI.java:125)
at mediastorerepository.impl.ports.IHTTP_WebGUI.HTTPDownload0(IHTTP_WebGUI.java:20)
at defaultsystem.impl.ports.IHTTP_defaultSystem.HTTPDownload0(IHTTP_defaultSystem.java:22)
at defaultusagescenario.impl.defaultUsageScenario.scenarioRunner(defaultUsageScenario.java:104)
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)

Environment

None

Activity

Show:
Stephan Seifermann
January 25, 2021, 7:34 PM

I created the new issue and linked it. It is crucial to not just ignore such issues but report them.

Stephan Seifermann
December 1, 2020, 4:09 PM

I got that the issue could not be reproduced. However, there seems to be another issue. : Could you please create a new issue containing the problems you identified here and link it to this issue? We should definitely have a look at this problem because it breaks one of our most important examples.

Snigdhasingh
November 27, 2020, 5:48 PM

In the issue description, it is not clear which run configuration of the Simucom (In the Eclipse it is actually SimuBench) need to be run.

So, I have selected two random run configuration “ms cache all 10k” and “ms cache all 1k” to reproduce the error described in the issue. However, the error was not reproduced. Another observation was that (throughput etc. disabled): filed mentioned in the issue was not found in SimuBench run configuration settings.

Maybe the error is specific to the specific run configuration but it is not clear from the issue description which runs configuration.

Even I tried to search the “MediaStore Model v3” with the search string "request.requestedFiles.NUMBER_OF_ELEMENTS" but none of the models contains this specification. Maybe this has been fixed or newer version has managed this error.

However, with run configuration “ms cache all 10k” and “ms cache all 1k” it encountered a different set of errors. The stack trace of that has been posted above.

As this new error is different from the error mentioned in the issue, I could not conclude the status of the issue.

Snigdhasingh
November 27, 2020, 5:44 PM
  1. In the issue description, it is not clear which run configuration of the Simucom (In the Eclipse it is actually SimuBench) need to be run.

  2. So, I have selected two random run configuration “ms cache all 10k” and “ms cache all 1k” to reproduce the error described in the issue. However, the error was not reproduced. Another observation was that (throughput etc. disabled): filed mentioned in the issue was not found in SimuBench run configuration settings.

  3. Maybe the error is specific to the specific run configuration but it is not clear from the issue description which runs configuration.

  4. Even I tried to search the “MediaStore Model v3” with the search string "request.requestedFiles.NUMBER_OF_ELEMENTS" but none of the models contains this specification. Maybe this has been fixed or newer version has managed this error.

  5. However, with run configuration “ms cache all 10k” and “ms cache all 1k” it encountered a different set of errors. The stack trace of that has been posted above.

  6. As this new error is different from the error mentioned in the issue, I could not conclude the status of the issue.

Snigdhasingh
November 27, 2020, 1:31 PM

Couldn't convert 'null' to EDouble.
mismatched input '36050000000' expecting RULE_DOUBLE
Couldn't convert 'null' to EDouble.
mismatched input '18050000000' expecting RULE_DOUBLE
mismatched input '0' expecting RULE_DOUBLE
at org.palladiosimulator.commons.stoex.api.impl.StoExParserImpl.assertNoSyntaxErrorException(StoExParserImpl.java:63)
at org.palladiosimulator.commons.stoex.api.impl.StoExParserImpl.parse(StoExParserImpl.java:34)
at de.uka.ipd.sdq.simucomframework.variables.cache.StoExCacheEntry.<init>(StoExCacheEntry.java:43)
at de.uka.ipd.sdq.simucomframework.variables.cache.StoExCache.getEntry(StoExCache.java:59)
at de.uka.ipd.sdq.simucomframework.variables.StackContext.evaluateStatic(StackContext.java:153)
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.Reencoding.action_PKKfkLzpEeSAHuL4ItXOLQ(Reencoding.java:359)
at defaultrepository.impl.Reencoding.iDownload_download0(Reencoding.java:101)
at defaultrepository.impl.ports.IDownload_Reencoding.download0(IDownload_Reencoding.java:20)
at defaultrepository.impl.Cache.action___MFj8MHBEeSIWsmXhQZfeA(Cache.java:585)
at defaultrepository.impl.Cache.action_3OYkQMG8EeSIWsmXhQZfeA(Cache.java:197)
at defaultrepository.impl.Cache.iDownload_download0(Cache.java:129)
at defaultrepository.impl.ports.IDownload_Cache.download0(IDownload_Cache.java:20)
at defaultrepository.impl.TagWatermarking.action_BVVtgLzYEeSAHuL4ItXOLQ(TagWatermarking.java:217)
at defaultrepository.impl.TagWatermarking.iDownload_download0(TagWatermarking.java:100)
at defaultrepository.impl.ports.IDownload_TagWatermarking.download0(IDownload_TagWatermarking.java:20)
at defaultrepository.impl.MediaManagement.action_2I7hMHQiEeSabL89DKH5bQ(MediaManagement.java:563)
at defaultrepository.impl.MediaManagement.iMediaManagement_download1(MediaManagement.java:446)
at defaultrepository.impl.ports.IMediaManagement_MediaManagement.download1(IMediaManagement_MediaManagement.java:27)
at defaultrepository.impl.Facade.action_dCXscHQiEeSabL89DKH5bQ(Facade.java:1365)
at defaultrepository.impl.Facade.iFacade_download4(Facade.java:1250)
at defaultrepository.impl.ports.IFacade_Facade.download4(IFacade_Facade.java:48)
at defaultsystem.impl.ports.IFacade_defaultSystem.download4(IFacade_defaultSystem.java:58)
at defaultusagescenario.impl.defaultUsageScenario.scenarioRunner(defaultUsageScenario.java:145)
at de.uka.ipd.sdq.simucomframework.usage.ClosedWorkloadUser.scenarioRunner(ClosedWorkloadUser.java:119)
at de.uka.ipd.sdq.simucomframework.usage.ClosedWorkloadUser.internalLifeCycle(ClosedWorkloadUser.java:80)
at de.uka.ipd.sdq.simucomframework.SimuComSimProcess.lifeCycle(SimuComSimProcess.java:177)
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.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

Cannot Reproduce

Assignee

Snigdhasingh

Reporter

Philipp Merkle

Labels

None

Requirement Category

Functional

External issue URL

None

Severity

None

Priority

None

Status Whiteboard

None

External issue ID

None

Time remaining

0m

Components

Priority

Major