Hi all, Im running into a couple of issues when I try and install a local 2.x Distribution version of OpenMRS SDK (ubuntu 20, java 8) that Im hoping someone here might be able to help me with.
The first is that I find that when I select “Reference Application 2.13.0” then I fairly quickly see a failure after running mvn openmrs-sdk:setup
:
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 31.092 s
[INFO] Finished at: 2024-10-15T14:47:36+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:6.0.0:setup (default-cli) on project standalone-pom: Failed to setup server: Unable to find/resolve artifact. Could not find artifact org.openmrs.module:atlas-omod:omod:2.2.6 in openmrs-repo (https://mavenrepo.openmrs.org/public) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
However, if I choose the “Reference Application 2.14.0-SNAPSHOT” I do get all the way through the install (I selected the “MySQL 8.4.1 and above in SDK docker container” option for the database) and the demo data is setup successfully on startup but there are two issues with this install:
- I cant see a patient’s record: When I try and view my first patient I see an error page that says:
UI Framework Error
Root Error
java.lang.RuntimeException: Cannot find controller or view for fragment: miniPatientAppointments
at org.openmrs.ui.framework.fragment.FragmentFactory.processThisFragment(FragmentFactory.java:186)
at org.openmrs.ui.framework.fragment.FragmentFactory.process(FragmentFactory.java:124)
at org.openmrs.ui.framework.page.PageContext.includeFragment(PageContext.java:77)
at org.openmrs.ui.framework.UiUtils.includeFragment(UiUtils.java:170)
at org.openmrs.ui.framework.UiUtils$includeFragment$15.call(Unknown Source)
at SimpleTemplateScript43$_run_closure3.doCall(SimpleTemplateScript43.groovy:95)
at sun.reflect.GeneratedMethodAccessor1042.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
...
- When I click the Appointment Scheduling button I see an error page that says:
UI Framework Error
Root Error
org.openmrs.ui.framework.UiFrameworkException: viewProvider appointmentschedulingui does not have a view named home
at org.openmrs.ui.framework.page.PageFactory.getView(PageFactory.java:296)
at org.openmrs.ui.framework.page.PageFactory.processThisFragment(PageFactory.java:184)
at org.openmrs.ui.framework.page.PageFactory.process(PageFactory.java:117)
at org.openmrs.ui.framework.page.PageFactory.handle(PageFactory.java:86)
at org.openmrs.module.uiframework.PageController.handlePath(PageController.java:123)
at org.openmrs.module.uiframework.PageController.handleUrlWithDotPage(PageController.java:86)
at sun.reflect.GeneratedMethodAccessor713.invoke(Unknown Source)
...
I guess they are probably related. Also I see in the admin list of modules that the Appointment Scheduling UI Module is not started and fails to start when I try to start it. Some of the output I see in the terminal when I try and do this is:
...
INFO - RestfulServer.removeResourceMethods(1754) |2024-10-16T13:28:42,737| Removing RESTful methods for: class org.openmrs.module.fhir2.providers.r3.DiagnosticReportFhirResourceProvider
INFO - RestfulServer.removeResourceMethods(1754) |2024-10-16T13:28:42,738| Removing RESTful methods for: class org.openmrs.module.fhir2.providers.r3.ValueSetFhirResourceProvider
INFO - RestfulServer.removeResourceMethods(1754) |2024-10-16T13:28:42,738| Removing RESTful methods for: class org.openmrs.module.fhir2.providers.r3.AllergyIntoleranceFhirResourceProvider
WARN - ModuleUtil.refreshApplicationContext(901) |2024-10-16T13:28:46,609| Unable to invoke started() method on the module's activator
org.openmrs.api.db.DAOException: Unable to deserialize object: Serialized org.openmrs.module.appointmentscheduling.reporting.dataset.definition.AppointmentDataSetDefinition named <appointmentschedulingui.appointmentDataSetDefinition.dailyAppointments>
at org.openmrs.api.db.hibernate.HibernateSerializedObjectDAO.convertSerializedObject(HibernateSerializedObjectDAO.java:335) ~[openmrs-api-2.7.0-SNAPSHOT.jar:?]
at org.openmrs.module.reporting.definition.service.SerializedDefinitionServiceImpl.saveSerializedDefinition(SerializedDefinitionServiceImpl.java:278) ~[reporting-api-1.27.0-SNAPSHOT.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_422]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_422]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_422]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_422]
...
Thanks in advance,
Matt