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

Parsing issue #1

Open
gitting-around opened this issue Nov 3, 2021 · 0 comments
Open

Parsing issue #1

gitting-around opened this issue Nov 3, 2021 · 0 comments

Comments

@gitting-around
Copy link

If I have a dot in the fmu output, it seems like it cannot be parsed. E.g. something like: RmqFmu_r.fields.heater_on, then I get:

15:47:46.316 [main] ERROR core.ScenarioLoader$ - Problem parsing connection string RmqFmu_r.fields.heater_on -> KalmanFilter_k.heater_on_in.
java.lang.IllegalArgumentException: Problem parsing connection string RmqFmu_r.fields.heater_on -> KalmanFilter_k.heater_on_in.
        at core.ScenarioLoader$.assert(ScenarioLoader.scala:319)
        at core.ScenarioLoader$.parseConnection(ScenarioLoader.scala:301)
        at core.ScenarioLoader$.$anonfun$parse$15(ScenarioLoader.scala:264)
        at scala.collection.immutable.List.map(List.scala:246)
        at core.ScenarioLoader$.parse(ScenarioLoader.scala:264)
        at core.ScenarioLoader$.parse(ScenarioLoader.scala:85)
        at core.ScenarioLoader$.load(ScenarioLoader.scala:47)
        at core.ScenarioLoader.load(ScenarioLoader.scala)
        at org.intocps.maestro.plugin.MasterModelMapper$Companion.scenarioToMasterModel(MasterModelMapper.kt:39)
        at org.intocps.maestro.cli.GenerateAlgorithmCmd.call(ScenarioVerifierCmd.java:163)
        at org.intocps.maestro.cli.GenerateAlgorithmCmd.call(ScenarioVerifierCmd.java:148)
        at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
        at picocli.CommandLine.access$1300(CommandLine.java:145)
        at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2352)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2346)
        at picocli.CommandLine$RunLast.handle(CommandLine.java:2311)
        at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
        at picocli.CommandLine.execute(CommandLine.java:2078)
        at org.intocps.maestro.Main.main(Main.java:19)
Traceback (most recent call last):
  File "C:\Users\gita_\Desktop\development\dt-tutorial-incubator\scenario_verifier\scenario_verifier_test\execute_algorithm_rabbitmq_3D\test.py", line 48, in <module>
    executeAlgorithm(False, utils.getMaestroJarPath())
  File "C:\Users\gita_\Desktop\development\dt-tutorial-incubator\scenario_verifier\scenario_verifier_test\execute_algorithm_rabbitmq_3D\test.py", line 28, in executeAlgorithm
    utils.testCliCommandWithFunc(cmd, func)
  File "C:\Users\gita_\Desktop\development\dt-tutorial-incubator\scenario_verifier\scenario_verifier_test\execute_algorithm_rabbitmq_3D\..\utils.py", line 140, in testCliCommandWithFunc
    raise Exception(f"Error executing {cmd}")
Exception: Error 

The error message is a result of running the rabbitmq scenario for the dt tutorial. We worked around it for now by simplifying the names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant