-
Notifications
You must be signed in to change notification settings - Fork 4
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
Stacktrace when running the Portico compostion #211
Comments
I checked the exception and found out that the call to the method TextInternationalization.getString("etc_fra.purpose") is failing. This implies that the files lang_en_US.properties and lang_fr_FR.properties are not being found. These files have to made available to the application somehow: I don't have the answer to this problem. Does anyone have an idea? |
After some google research I found out the following:
Dockerfile additions are:
I propose to add these steps to the IVCT Runner Dockerfile. To list the locales (from a running image) use
If this fails, we need to change to another (but larger footprint) LRC base image such as Ubuntu. |
Although I believe the above is the solution, I wonder why this popped up just now. Are the (Pitch/MaK/Portico) container images ever used to run tests? Checking that these work has to be part of every release. Also puzzled why the issue does not show up with the Pitch image (also using Alpine Linux). |
I tested the above Dockerfile steps out and added them to the Portico base image Dockerfile for now. Also has to change to the OpenJDK as a sideline. On the end got still the same error for the runner on test case IR-SOM-0003:
There is something else going on (too). Have a look at: |
I've seen this problem before, when the HLA BASE test cases are not able to find their language files. The error is cause by the module
which is used as common library for the basic HLA test cases. The missing files shall be in the jar file
which is included on the test suites HLA-Verification, HLA-Object, HLA-Declaration and HLA-Service. However, in my configurations they are present. Also I do not see this exception when executing the test cases with the pRTI in my environment. Which compose file are you using? |
I use the docker compose files from the Composition repository. As far as I can determine the Pitch files include the resource bundle files (where in the JARs I cannot determine). When I use a docker image without the Pitch JAR files, I get exactly the same problem as wit the other RTI versions. So the issue is missing resource bundle files in the IVCT installation. Just instantiate the following class to reproduce the error:
|
Reran the test where I included the file |
What I do not understand is, why the lang properties are not found in you setup. I just checked the '/IVCT_Compositions/HelloWorld/docker-compose.yml' setup. Inside the tc-runner container I checked the content of the HLA-Declaration-2017 testsuite:
the lang propertie files are at the root level inside the ETC_FRA_Common-2.0.0.jar package, which is loaded by the classloader just before starting the testcase. The loading of the resource is done during runtime (not at startup time) based on the start test case command and should be independent from the rti version. It is even independent from the CLASSPATH which is used at startup time. I can not think of any reason, why these resouces are not included in the portico or mak distribution. Sorry, but I'm lost at this point. |
I just tested the ivct-portico/docker-compose.yml (sorry for not having this idea before ;-), and I have seen that indeed, inside the ETC_FRA_Common-2.0.0.jar there are no lang property files! That confuses me even more - I will have a closer look what going on here. |
I've found the problem: the .gitignore file in the TS_HLA_BASE project tricked my into missing to 'git add' the language property files. Now they should be included in the docker images (2.0.0, master-latest and development-latest). I was not able to test the GUI with this compose file, as windowes does not yet support network_mode:host (please make sure, your images are reloaded from the docker repo - I had to remove my copy manually before reload was done) |
The issue with Portico appears to be fixed, but now I cannot run the same test with either the Pitch or Mak RTI. I see the following error on the console when the Runner starts up:
This causes the execution of test cases to fail later on. |
The message here is not very good: the folder name should be given out as part of the error message. The problem is that the IVCT_BADGE_HOME_ID value being used is either a non existing folder or it is not a directory. |
I do not see the error in the latest build. So close. |
With the Portico composition I get the stacktrace below when I start a test case such as for hw_iosb, HLA-Declaration-2017, IR-SOM-00003.
The text was updated successfully, but these errors were encountered: