[SOLVED] HTMLFormEntry API Exception Searching for Person in Relationship

Module: HTML Form Entry

Module Version: 3.2

System Version: 11.7, Reference Application 2.4-SNAPSHOT, HTML Form Entry UI 1.5, HTML Form Entry 9 Extension 1.7

Issue or Question: I have a form for a child, and have entered the following relationship for the parent <relationship type="8d91a210-c2cc-11de-8d13-0010c6dffd0f" whoAmI="B" changeExistingRelationship="true" required="true"/>

The following error message displayed with a stacktrace is https://gist.github.com/ssmusoke/ba86eb39ae8e185ee6846b47b621b44b, and UI display is

@ssmusoke, from the error messages here it’s not clear what’s going on. Is there any additional (more specific) stack trace, a “caused by”?

@darius sorry looks like I missed this at the top of the stack trace

WARN - DispatcherServlet.noHandlerFound(1108) |2016-07-12 07:43:44,499| No mapping found for HTTP request with URI [/openmrs/htmlformentryui/htmlform/openmrs/module/htmlformentry/personSearch.form] in DispatcherServlet with name ‘openmrs’

The functionality also seems to be broken on demo.openmrs.org because I cloned the Admission form, added a relationship tag that shows a similar UI error

Can you share the entire tomcat log?

@dkayiwa OpenMRS Log https://www.dropbox.com/s/wq6fcl2d13nfrmo/openmrs.log?dl=0

Can you use one which does not require an account to access?

@dkayiwa corrected above

I see lots of errors in your logs and cant be sure which ones are for which. Is it possible for you to delete that log, reproduce the problem, and then send a new log?

@dkayiwa The only error in the logs is https://gist.github.com/ssmusoke/ba86eb39ae8e185ee6846b47b621b44b - I cleared the file and opened the form, then clicked the button.

Complete Tomcat startup log to the error for the relationship on the patient form https://www.dropbox.com/s/wq6fcl2d13nfrmo/openmrs.log?dl=0

What is the name of the log file that you are looking at?

@dkayiwa openmrs.log but I see the errors on my console since I use catalina run

openmrs.log does not have all error details. You need to check the actual tomcat log files.

@ssmusoke you can compile the latest htmlformentry module to get this fix: https://github.com/openmrs/openmrs-module-htmlformentry/commit/88dc674e0a3169e34a12e1d1ca6bb1f41fe9277f

Associated issue is https://issues.openmrs.org/browse/HTML-640