MopeSWTP-SS21 / MopeSWTP

MIT License
1 stars 0 forks source link

Console client crashes when checkModel fails for HHmodelica #70

Open CSchoel opened 3 years ago

CSchoel commented 3 years ago

Steps to reproduce

Expected behavior

I would expect that HHmodelica can be loaded without issues. However, since there is a separate issue with that (https://github.com/CSchoel/hh-modelica/issues/1), which should be fixed separately, I will only report here how I suspect that the existing error should be handled:

Error should be reported on the console, but client should still be able to send other commands.

Actual behavior

The following exception is thrown, preventing the client from executing any further commands:

<Exception in thread "main" java.util.InputMismatchException
        at java.base/java.util.Scanner.throwFor(Scanner.java:939)
        at java.base/java.util.Scanner.next(Scanner.java:1594)
        at java.base/java.util.Scanner.nextInt(Scanner.java:2258)
        at java.base/java.util.Scanner.nextInt(Scanner.java:2212)
        at Client.ConsoleClientLauncher.ConsoleMenue(ConsoleClientLauncher.java:108)
        at Client.ConsoleClientLauncher.main(ConsoleClientLauncher.java:78)
manuEbg commented 3 years ago

Have you tried this in IntelliJ?

CSchoel commented 3 years ago

Nope, I performed all my tests directly from the bash. Do you think that IntelliJ would behave differently?