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

HL7Converter Fails To Run On Windows #42

Closed
dixonwhitmire opened this issue Nov 13, 2020 · 0 comments · Fixed by #43
Closed

HL7Converter Fails To Run On Windows #42

dixonwhitmire opened this issue Nov 13, 2020 · 0 comments · Fixed by #43
Labels
bug Something isn't working

Comments

@dixonwhitmire
Copy link
Member

dixonwhitmire commented Nov 13, 2020

Related to #38 - The following code blocks

    public void startConverter() throws IOException {
        HL7ToFHIRConverter converter = new HL7ToFHIRConverter();
        String fhirMessage = converter.convert(hl7Message);
        System.out.println(fhirMessage);
    }


    public static void main(String[] args) throws Exception {
        App app = new App();
        app.startConverter();
    }

fail to run due to the following stack trace

Exception in thread "main" java.lang.NullPointerException
	at java.io.Reader.<init>(Reader.java:78)
	at java.io.InputStreamReader.<init>(InputStreamReader.java:113)
	at org.apache.commons.io.IOUtils.copy(IOUtils.java:2440)
	at org.apache.commons.io.IOUtils.toString(IOUtils.java:1084)
	at io.github.linuxforhealth.hl7.resource.ResourceReader.loadClassPathResource(ResourceReader.java:66)
	at io.github.linuxforhealth.hl7.resource.ResourceReader.getResource(ResourceReader.java:84)
	at io.github.linuxforhealth.hl7.resource.ResourceReader.getResourceInHl7Folder(ResourceReader.java:164)
	at io.github.linuxforhealth.hl7.resource.ResourceReader.getMessageModel(ResourceReader.java:111)
	at io.github.linuxforhealth.hl7.resource.ResourceReader.getMessageTemplates(ResourceReader.java:99)
	at io.github.linuxforhealth.hl7.HL7ToFHIRConverter.<init>(HL7ToFHIRConverter.java:49)
	at io.github.linuxforhealth.converter.App.startConverter(App.java:19)
	at io.github.linuxforhealth.converter.App.main(App.java:26)
@dixonwhitmire dixonwhitmire added the bug Something isn't working label Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant