java.lang.IllegalArgumentException: object is not an instance of declaring class

Tags: #<Tag:0x00007f0769b4c8d8> #<Tag:0x00007f0769b4c770>

Application Name: Reference Application Version Number: 2.8.0

Question: I get an error after searching and selecting a patient.

java.lang.IllegalArgumentException: object is not an instance of declaring class

Full Error

org.openmrs.ui.framework.ViewException: Error rendering page view for clinicianfacing/patient. Model properties:

Caused by: org.openmrs.ui.framework.FragmentException: Error evaluating view: patientHeader

Caused by: org.openmrs.ui.framework.FragmentException: Error evaluating view: extensionPoint

Caused by: org.openmrs.ui.framework.FragmentException: Error evaluating view: extension

Caused by: com.github.jknack.handlebars.HandlebarsException: /inline@718de9c7.hbs:1:54: java.lang.IllegalArgumentException: object is not an instance of declaring class {{patient.patientId}}

Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class

Here is the full error from the logs:

https://pastebin.com/JNBeeN37

This is on OpenMRS Platform 2.1.4.2cb839.

I made sure my database is on UTF-8, and all modules are running.

This is a fresh installation. Please help. Thanks

Can you edit your post and replace the paste with a link to pastebin.com which has the paste?

I have done so. link is here https://pastebin.com/JNBeeN37

Can you use this? https://sourceforge.net/projects/openmrs/files/releases/OpenMRS_Reference_Application_2.9.0/

1 Like

Let me try…

@dkayiwa, Hi Daniel. I got past this error and then encountered one more error that I was able to fix (No encounter type with uuid 67a71486-1a54-468f-ac3e-7091a9a79584). The application is working now. Thanks.