Stream: hapi
Topic: hard-coded dstu2 reference in GenericClient
Michael Lawley (May 11 2016 at 04:12):
Line 2309 of GenericClient.ValidateInternal refers to ValidateMethodBindingDstu2.createValidateInvocation which (I think) is why I'm getting a class cast exception on line 2311 when using dstu3 structures
James Agnew (May 12 2016 at 14:11):
Hi @Michael Lawley , what version of HAPI are you using? I believe we got rid of all of the hardcoded references to DSTU1/2 stuff in the GenericClient as of 1.5 but we may have missed one. Also, how are you invoking the client?
The following works for me in a unit test, using a DSTU3 Patient as input:
client.validate().resource(pt).execute();
Michael Lawley (May 12 2016 at 19:11):
Hi @James Agnew I'm using HAPI 1.5 with client.validate().resource(rawResource).encodedJson().execute();
I've just tested with the latest 1.6-SNAPSHOT and it now works.
James Agnew (May 12 2016 at 19:15):
Ahh ok good. Guess this was fixed more recently.. :)
Last updated: Apr 12 2022 at 19:14 UTC