Stream: implementers
Topic: HAPI FHIR CLI
Md Nazrul Islam (Oct 10 2019 at 17:50):
Hi,
I am trying to run hapi server using cli
$ ./hapi-fhir-cli run-server -u jdbc:mysql://127.0.0.1:33069/hapidb -v r4
unfortunately getting error
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: HAPI_PU] Unable to build Hibernate SessionFactory; nested exception is java.lang.IllegalStateException: Connection factory returned null from createConnection
My question here, is my database URL format wrong? #hapi
Grahame Grieve (Oct 11 2019 at 02:21):
try #hapi
Azizul Lau (Dec 31 2020 at 02:50):
Hi, Im just set up a HAPI FHIR 5.2 server (R4 version) using Docker using hapiproject/hapi image. When I
m trying to upload terminology (LOINC v2.69) using HAPI FHIR CLI but its fail with error "Unknown file: hapi-fhir-cli5086905413546946611.zip". I include the process log below:
[root@locahost hapi-fhir-tools]# ./hapi-fhir-cli upload-terminology -d Loinc_2.69.zip -v r4 -t http://localhost/fhir -u http://loinc.org
:fire: HAPI FHIR 5.2.0 - Command Line Tool
Process ID : 4413@localhost
Max configured JVM memory (Xmx) : 6.9GB
Detected Java version : 1.8.0_275
2020-12-31 10:34:20.356 [main] INFO c.u.f.c.UploadTerminologyCommand Adding ZIP file: Loinc_2.69.zip
2020-12-31 10:34:21.668 [main] INFO c.u.f.c.UploadTerminologyCommand File size is greater than 10 MB - Going to use a local file reference instead of a direct HTTP transfer. Note that this will only work when executing this command on the same server as the FHIR server itself.
2020-12-31 10:34:22.378 [main] INFO c.u.f.c.UploadTerminologyCommand Beginning upload - This may take a while...
2020-12-31 10:34:23.217 [main] ERROR c.u.f.c.UploadTerminologyCommand Received the following response:
{
"resourceType": "OperationOutcome",
"text": {
"status": "generated",
"div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">ERROR</td><td>[]</td><td><pre>Unknown file: hapi-fhir-cli5086905413546946611.zip</pre></td>\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t</tr>\n\t\t</table>\n\t</div>"
},
"issue": [ {
"severity": "error",
"code": "processing",
"diagnostics": "Unknown file: hapi-fhir-cli5086905413546946611.zip"
} ]
}
2020-12-31 10:34:23.218 [main] ERROR ca.uhn.fhir.cli.App Error during execution:
ca.uhn.fhir.rest.server.exceptions.InvalidRequestException: HTTP 400 : Unknown file: hapi-fhir-cli5086905413546946611.zip
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at ca.uhn.fhir.rest.server.exceptions.BaseServerResponseException.newInstance(BaseServerResponseException.java:302)
at ca.uhn.fhir.rest.client.impl.BaseClient.invokeClient(BaseClient.java:351)
at ca.uhn.fhir.rest.client.impl.GenericClient$BaseClientExecutable.invoke(GenericClient.java:540)
at ca.uhn.fhir.rest.client.impl.GenericClient$OperationInternal.execute(GenericClient.java:1314)
at ca.uhn.fhir.cli.UploadTerminologyCommand.invokeOperation(UploadTerminologyCommand.java:204)
at ca.uhn.fhir.cli.UploadTerminologyCommand.run(UploadTerminologyCommand.java:113)
at ca.uhn.fhir.cli.BaseApp.run(BaseApp.java:268)
at ca.uhn.fhir.cli.App.main(App.java:43)
2020-12-31 10:34:23.220 [Thread-0] INFO ca.uhn.fhir.cli.App HAPI FHIR is shutting down...
I followed the instruction provide at https://hapifhir.io/hapi-fhir/docs/tools/hapi_fhir_cli.html. Till I still cannot figure out how file hapi-fhir-cli5086905413546946611.zip exist even theres is no such file in my working directory.
Eric Haas (Dec 31 2020 at 03:13):
try #hapi
Last updated: Apr 12 2022 at 19:14 UTC