Stream: hapi
Topic: CLI
Josh Mandel (Jun 23 2016 at 22:25):
Does the CLI need (or allow) some configuration setting to accept resources with "broken" references? (I mean, relative references to resources not currently on this server.)
Grahame Grieve (Jun 23 2016 at 22:38):
(deleted)
David Hay (Jun 23 2016 at 23:33):
+1 :)
James Agnew (Jun 24 2016 at 02:14):
It doesn't have such an option, but we did add support for "broken" references to the JPA server recently (as well as support for ignoring unknown search params... I've had enough of this argument :) ). Might as well add flags for these things to CLI.
James Agnew (Jun 24 2016 at 02:35):
Although.. looking at this, even that mode only allows references it doesn't know about if they are external. I.e. "Patient/1" would be rejected if the server doesn't have a patient by that ID, whereas "http://foo.com/Patient/1" would be accepted.
Would that meet your needs, or are you looking for a mode where there is no checking at all?
Md Nazrul Islam (Oct 11 2019 at 05:17):
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
Chandan PR (May 11 2020 at 08:21):
Hi,
I am also facing the error with jdbc url on the CLI:
./hapi-fhir-cli run-server -p 8002 -v dstu3 -u jdbc:mysql://127.0.0.1:3306/gacs_hapi_fhir4?user=root&password=root
Caused by: java.lang.IllegalStateException: Connection factory returned null from createConnection
at org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:357)
Anything wrong with the url format? please advise.
Last updated: Apr 12 2022 at 19:14 UTC