-
Notifications
You must be signed in to change notification settings - Fork 46
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
Cannot create CognitivePedestrian2D and HeterogeneousPedestrian2D if Alchemist is executed via jar #459
Comments
@paagamelo any hint? |
This is the kind of error you get when you forget to put Looking at the stack trace, it seems to me that the simulator is unable to use pedestrians' secondary constructors for some reason. It says:
Whilst there's a secondary constructor taking in a @Placu95 Did you check that the issue was present in the commit previous to 9e92d2c? I can't see how upgrading spotbugs could solve it. |
@Placu95 this bug smells. Why do you say that Github doesn't allow YAML? That's blatantly false, we got a ton of .yml files around. |
@paagamelo well I'd have some problems converting |
@paagamelo I tried with Alchemist at version 9.3.0, commits 9e92d2c and 1f70c89. The bug is present in all the versions. @DanySK Github doesn't allow to attach YAML file in issue. The file log.txt contains the complete stacktrace printed by the simulator. I can add that if you run Alchemist via Gradle downloading it from maven, all work fine. (I tested this only with Alchemist v9.3.0) |
@paagamelo can we add the source to the test suite and verify that the bug is reproducibile? This constructor Then this one: The system then tries
This is the problem |
@Placu95 how do you get the jar? And: is this class included (use jar -tf) |
And also kotlin.reflect.jvm.internal.impl.serialization.deserialization.builtins.BuiltInsLoaderImpl We maybe are stripping kotlin-reflect from the jar file. But it's very very strange |
@Placu95 also please try to use the jar you're currently using + the kotlin.reflect 1.3.71 jar and launch the application with
|
@DanySK the jar contains the two classes. |
@DanySK I tried also |
No do not use Alchemist 9.3.0. Use the latest development version. |
9.3.0 is no longer supported, unless the bug also affects the current development version. We need to release 10.0.0 asap |
@Placu95 Ah sorry, I thought the bug disappeared in commit 9e92d2c.
@DanySK We already test pedestrians' loading using that constructor, and everything works via Gradle. Or you meant adding a test launching the full jar? |
@DanySK also
|
Can you list the content of the |
the directory |
what-the-fuck. And is the command accurate? If so, you mistaken the reflect jar name (dash, not dot). Use the autocompletion! |
Ok. I tried this |
YEAH!!!! |
try with fc6172a and let me know @Placu95 |
It works |
Closing |
Tested on
Environment
OS: Windows 10
Java: 11.0.2 (OpenJDK)
Alchemist: 9.3.0 and later until commit 9e92d2c
What happens
Launching a simple simulation via the jar file, with the following command:
java -jar alchemist-redist-9.3.0.jar -y configuration.yml
will fail with the following exception (short version):
The complete stacktrace is in the file log.txt
The simulation file used is here configuration.yml.txt (there is the final extension
.txt
because Github doesn't allow YAML extension).The same happens also with
HeterogeneousPedestrian2D
.The text was updated successfully, but these errors were encountered: