Error on org.openmrs.module.htmlformentry.HtmlFormEntryService when open a from

Module: HTML Form Entry

Module Version: 3.10.0

System Version: OpenMRS version: 2.3.0 Build b3ade0

Operating System Information : Linux (Linux Mint), AMD 64, OS version: 4.15.0-48-generic ** Java Runtime Information : Java version: 1.8.0_212, Java Oracle, JVM version: 25.212-b01, Java runtime version: 1.8.0_212-8u212-b01-1~deb9u1-b01

Issue or Question: I have uploaded forms for patient uzing Muzima mobile app and Muzima core module. Then I try to open it in OpenMRS I get an error.

Here are screenshots:

Here are the logs: INFO - LoggingAdvice.invoke(116) |2020-06-26 07:14:55,455| In method UserService.saveUser. Arguments: User=admin, INFO - LoggingAdvice.invoke(156) |2020-06-26 07:14:56,442| Exiting method saveUser ERROR - FragmentFactory.invokeFragmentAction(522) |2020-06-26 07:14:58,671| Error invoking fragment action with parameters: 0: Expected: org.openmrs.module.htmlformentry.HtmlFormEntryService (cl: {ModuleClassLoader: uid=1009156642; htmlformentry}) | Actual: com.sun.proxy.$Proxy239 (cl: Openmrsorg.openmrs.util.OpenmrsClassLoader@17a20cc1) 1: Expected: org.openmrs.api.FormService (cl: WebappClassLoader context: /openmrs delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: java.net.URLClassLoader@4563e9ab ) | Actual: com.sun.proxy.$Proxy221 (cl: Openmrsorg.openmrs.util.OpenmrsClassLoader@17a20cc1) 2: Expected: org.openmrs.ui.framework.resource.ResourceFactory (cl: {ModuleClassLoader: uid=1324883264; uiframework}) | Actual: org.openmrs.ui.framework.resource.ResourceFactory (cl: {ModuleClassLoader: uid=1324883264; uiframework}) 3: Expected: org.openmrs.module.emrapi.EmrApiProperties (cl: {ModuleClassLoader: uid=414610296; emrapi}) | Actual: org.openmrs.module.emrapi.EmrApiProperties (cl: {ModuleClassLoader: uid=414610296; emrapi}) 4: Expected: org.openmrs.module.emrapi.disposition.DispositionService (cl: {ModuleClassLoader: uid=414610296; emrapi}) | Actual: com.sun.proxy.$Proxy184 (cl: Openmrsorg.openmrs.util.OpenmrsClassLoader@17a20cc1) 5: Expected: org.openmrs.module.appframework.feature.FeatureToggleProperties (cl: {ModuleClassLoader: uid=1719288286; appframework}) | Actual: org.openmrs.module.appframework.feature.FeatureToggleProperties (cl: {ModuleClassLoader: uid=1719288286; appframework}) 6: Expected: org.openmrs.Encounter (cl: WebappClassLoader context: /openmrs delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: java.net.URLClassLoader@4563e9ab ) | Actual: org.openmrs.Encounter (cl: WebappClassLoader context: /openmrs delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: java.net.URLClassLoader@4563e9ab ) 7: Expected: org.openmrs.module.htmlformentry.HtmlForm (cl: {ModuleClassLoader: uid=1009156642; htmlformentry}) | Actual: null 8: Expected: java.lang.String (cl: null) | Actual: java.lang.String (cl: null) 9: Expected: org.openmrs.ui.framework.UiUtils (cl: {ModuleClassLoader: uid=1324883264; uiframework}) | Actual: org.openmrs.ui.framework.fragment.FragmentActionUiUtils (cl: {ModuleClassLoader: uid=1324883264; uiframework}) 10: Expected: org.openmrs.module.appui.UiSessionContext (cl: {ModuleClassLoader: uid=1990671081; appui}) | Actual: org.openmrs.module.appui.UiSessionContext (cl: {ModuleClassLoader: uid=1990671081; appui}) 11: Expected: javax.servlet.http.HttpSession (cl: java.net.URLClassLoader@4563e9ab) | Actual: org.apache.catalina.session.StandardSessionFacade (cl: java.net.URLClassLoader@4563e9ab) ERROR - FragmentActionController.handlePath(162) |2020-06-26 07:14:58,671| error

And logs from Live Log Viewer:

  • [FragmentFactory.invokeFragmentAction(522)] - Error invoking fragment action with parameters: 0: Expected: org.openmrs.module.htmlformentry.HtmlFormEntryService (cl: {ModuleClassLoader: uid=1009156642; htmlformentry}) | Actual: com.sun.proxy.$Proxy239 (cl: Openmrsorg.openmrs.util.OpenmrsClassLoader@17a20cc1) 1: Expected: org.openmrs.api.FormService (cl: WebappClassLoader

  • ERROR

  • 2020-06-26 07:14:58

  • [FragmentActionController.handlePath(162)] - error

Can you share, via pastebin.com, the modules that you have on your equivalent of this page? https://qa-refapp.openmrs.org/openmrs/admin/maintenance/systemInfo.htm

Hi @dkayiwa Here it is: https://pastebin.com/myKU82Rv

Do you still get that error if you temporarily unload the Muzima Core Module?

Hi @dkayiwa I did unloaded the Muzima core Module and resturdet the app (stopped ad started it via docker-compose) but the issue is still there. Here is the system info: https://pastebin.com/S44pR5Ux

Here is the issue image: https://imgur.com/a/jWXw4bP

After removing that module, restart openmrs and share the new server side log when you get the error.

here is the logs https://pastebin.com/R13279ZZ

Is it possible to send the entire log?

Hi @dkayiwa Could you please let me know if this is enough? https://pastebin.com/EcUkYgTA

Thank you

Not very helpful. Do you have the steps to reproduce this if i set up a new instance of OpenMRS?

@dkayiwa I’ll try to reproduce the issue with a new installation and let you now the steps if it reproduces