Stream: implementers
Topic: omoponfhir
Mareike Przysucha (Mar 25 2022 at 08:48):
Hi there,
I start working with omoponfhir and achieved to set it up.
When I send a patient resource, which I can successfully send to hapi-server, I get an java.lang.StringIndexOutOfBoundsException: String index out of range: 0
. I use the same code, I just change the endpoint.
Is there anyone here familiar with omoponfhir, which uses / is based on hapi?
Thanks in advance
Mareike
PS: Here is the stack trace:
Exception in thread "main" ca.uhn.fhir.rest.server.exceptions.InternalErrorException: HTTP 500 : Failed to call access method:
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
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:305)
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$CreateInternal.execute(GenericClient.java:692)
at ca.uhn.fhir.rest.client.impl.GenericClient$CreateInternal.execute(GenericClient.java:647)
at functions.PatientGenerator.createPatient(PatientGenerator.java:60)
at functions.PatientGenerator.main(PatientGenerator.java:66)
PatientGenerator is the class that I use to create my patient.
Last updated: Apr 12 2022 at 19:14 UTC