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

FI compilation fails #12

Open
mkoivi-ms opened this issue Mar 3, 2022 · 3 comments
Open

FI compilation fails #12

mkoivi-ms opened this issue Mar 3, 2022 · 3 comments

Comments

@mkoivi-ms
Copy link

FI module installation fails according to instructions fails immediately to compilation error:

AppTest > testApp FAILED
java.lang.ExceptionInInitializerError
at org.mitre.synthea.world.geography.Location.(Location.java:102)
at org.mitre.synthea.engine.Generator.init(Generator.java:226)
at org.mitre.synthea.engine.Generator.(Generator.java:209)
at org.mitre.synthea.engine.Generator.(Generator.java:186)
at App.main(App.java:227)
at AppTest.testApp(AppTest.java:46)

    Caused by:
    java.lang.Exception: The city Bedford was not found in the demographics file.
        at org.mitre.synthea.world.geography.Location.<init>(Location.java:75)
        ... 5 more
@jawalonoski
Copy link
Member

You probably need to change src/test/resources/test.properties to point at a location in FI.

Here is what Synthea normally contains:

https://github.com/synthetichealth/synthea/blob/d2e98b2a5353e4fb51e63074f06158f9a4c77b41/src/test/resources/test.properties#L10-L14

Here is what the FI file shows now:

test_state.default = %STATE_DEFAULT%
test_state.alternative = %STATE_ALTERNATIVE%
test_town.default = %TOWN_DEFAULT%
test_town.alternative = %TOWN_ALTERNATIVE%

It should probably be something like this (or whatever you want, picking locations from the FI demographics file):

test_state.default = Uusimaa
test_state.alternative = Pirkanmaa


test_town.default = Helsinki
test_town.alternative = Tampere

@jawalonoski
Copy link
Member

Let me know if that fixes it. Happy to take a pull request if that works.

@jawalonoski
Copy link
Member

In general, it may help to read this series of "Other Areas" articles on the main Synthea wiki to help troubleshoot. https://github.com/synthetichealth/synthea/wiki/Other-Areas

We may also need to update the instructions for Finland in particular, or Synthea International in general. Happy to have suggestions if you find they are incorrect.

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

2 participants