UI Framework Error issues

my sdk has refused to run for the last two days… i have tried most of the possible ways of running it and it keeps throwing this error UI Framework ErrorRoot Errororg.openmrs.ui.framework.UiFrameworkException: v - Pastebin.com . this error comes when itry to ship openmrs modules with the sdk. Could anyone help me identify this problem because the sdk is blocking my progress.

am using Reference Application 2.11.0 (even the most recent brings the same error)

Apache Maven 3.6.3

5.7.34 MySQL Community Server (GPL)

cc @ibacher @dkayiwa @jwnasambu @kdaud @sharif

Are you able to share the output from running the SDK? Most likely you’re getting that error because the reference application module didn’t start on your local instance, which is likely because of an issue starting one of the modules it depends on.

If you want a really blind troubleshooting step you could try running mvn openmrs-sdk:reset to reset the state of your server, which might or might not help depending on what the underlying issue is. Note, however, that doing this will clear all of the data from you OMRS database.

2 Likes

Hey @ibacher hope this would be the referance application module… if so “i made sure i deployed it before running the sdk” This morning i tried to update my coreapps repo, created a new server and tried to run it with Reference Application 2.12SNAPSHOT but it gave me these errors r5.liquibasechangelogINFO - Slf4jLogger.info(42) |2021-07-01T11:23:40,582| Rea - Pastebin.com, INFO - Slf4jLogger.info(42) |2021-07-01T11:27:38,232| INSERT INTO server5.liquib - Pastebin.com.

This was what was in the browser

cc @ibacher @isears @jwnasambu @dkayiwa @kdaud @k.joseph

Share the server logs via pastebin.com

hey @kdaud did you check these out… the logs were too big so i created two pastebin links

u can check these too INFO - LoggingAdvice.invoke(117) |2021-07-01T12:15:04,544| In method Administrat - Pastebin.com

To share the finding of this issue after having a sync with @ndacyayisenga, we discovered he is running a different javac version compared the one that is on mvn path. To sort out this issue he has to stick on either java 8 or java 11. Besides that he is installing RefApp 2.11.0 which doesn’t support java 11 to be on the save side he has to install java 8.

1 Like

@jwnasambu @ndacyayisenga So I understand things: switching to Java 8 made this issue go away?

The reason I’m asking is that we’ve seen a number of reports for what looks like (from the logs @ndacyayisenga provided) the underlying issue, namely this:

WARN - AbstractApplicationContext.refresh(559) |2021-07-01T11:29:31,844| Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'initPathMatcher' defined in URL [jar:file:/home/ndacyayisenga/openmrs/server5/.openmrs-lib-cache/webservices.rest/lib/webservices.rest-omod-2.4-2.31.0.jar!/org/openmrs/module/webservices/rest/InitPathMatcher.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.openmrs.module.webservices.rest.InitPathMatcher] from ClassLoader [{ModuleClassLoader: uid=291332357; webservices.rest}]

But I don’t think we’ve yet worked out how to reproduce the issue, so any understanding of what might’ve caused it could be quite helpful.

You are right! and I stand to be corrected java 11 doesn’t support ReApp 2.11 which he is installing. though it supports Platform 2.4 which supports java 8 -java through 15. This is my thinking looking at the effect of having a different version of jdk11 and the other is jdk8 to use jdk11 to generate .class files, and then use jdk8 to execute, then there may be a problems. How can this be done, they must be consistent.

1 Like

So, with platform 2.4, we support running code on Java 9+, but we still compile the code into valid Java 8 bytecode.

@ibacher you were right on this. Though we were able to build an sdk instance successfully, he is still failing to watch coreapp module. Something I have also failed to do for quite long as reflected on this link https://talk.openmrs.org/t/build-failure-when-trying-to-watch-a-module-on-an-sdk-instance/31940/22.

True… @jwnasambu

I think it would be good if we find out whether there are other members of the community finding issues in watching OpenMRS Core Apps Module
any assistance on this will be highly appreciated.

cc @dev1 @dev2 @dev3 @dev4 @dev5 @ibacher @kdaud @dkayiwa @mozzy @mksd

It will be better to share your error logs using paste bin for failure was due to internet problem which may be different from yours.

UI Framework ErrorRoot Errororg.openmrs.ui.framework.UiFrameworkException: N - Pastebin.com i think anyone would also try to see if they can reproduce the error… i wouldnt think mine is internet coz mine is quit faster

cc @lumuchris256 @grace @dkayiwa

@ndacyayisenga Do things work if you unwatch the coreapps module? If they don’t, it might be necessary to try running the SDK’s reset command to reset your server to a clean state.

Hey @ibacher When i try to unwatch the coreapps module still the same error pops up. For other modules the sdk works fine though if i attempted to watch the coreapps module in the sdk instance exsisting then i have to setup the sdk again because it can’t work again even if i try to unwatch and reset the module

ie. the coreapps module is causing damage to my servers :grinning:

What’s the output of cat ~/openmrs/server5/openmrs-distro.properties? I can’t replicate this locally, so I’m trying to see if I can get your exact setup.

Hey @ibacher there its…

ndacyayisenga@ndacyayisenga-ThinkPad-S5-S540:~$ cat ~/openmrs/myserver/openmrs-distro.properties
#Tue Jul 06 13:43:18 EAT 2021
db.h2.supported=false
db.sql=classpath\://openmrs-distro.sql
name=Reference Application
omod.addresshierarchy=2.14.2
omod.adminui=1.4.0
omod.allergyui=1.8.3
omod.appframework=2.16.0
omod.appointmentscheduling=1.13.0
omod.appointmentschedulingui=1.9.0
omod.appui=1.13.0
omod.atlas=2.2.4
omod.atlas.type=omod
omod.attachments=2.4.0
omod.calculation=1.2.1
omod.coreapps=1.31.0
omod.dataexchange=1.3.6
omod.emrapi=1.30.0
omod.event=2.8.0
omod.event.groupId=org.openmrs
omod.fhir2=1.1.0
omod.formentryapp=1.4.2
omod.htmlformentry=3.12.0
omod.htmlformentryui=1.11.2
omod.htmlwidgets=1.10.0
omod.idgen=4.6.0
omod.legacyui=1.8.0
omod.metadatadeploy=1.12.1
omod.metadatamapping=1.3.5
omod.metadatasharing=1.7.0
omod.owa=1.12.0
omod.providermanagement=2.12.0
omod.referenceapplication=2.11.0
omod.referencedemodata=1.4.6
omod.referencemetadata=2.11.0
omod.registrationapp=1.20.0
omod.registrationcore=1.10.0
omod.reporting=1.21.0
omod.reportingcompatibility=2.0.7
omod.reportingrest=1.11.0
omod.reportingui=1.7.0
omod.serialization.xstream=0.2.14
omod.serialization.xstream.type=omod
omod.uicommons=2.15.0
omod.uiframework=3.19.0
omod.uilibrary=2.0.6
omod.webservices.rest=2.29.0
omod.xreports=1.10.2-SNAPSHOT
owa.openmrs-owa-sysadmin=1.2
version=2.11.0
war.openmrs=2.3.2

Hi @ibacher did yo see through this?