# UI Framework Error issues

**URL:** <https://talk.openmrs.org/t/ui-framework-error-issues/33923>\
**Category:** Development\
**Created:** [June 30, 2021, 2:57pm UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923 "2021-06-30T14:57:08Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndacyayisenga](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ndacyayisenga/32/20176_2.png) [@ndacyayisenga](https://talk.openmrs.org/u/ndacyayisenga)\
**Post date:** [June 30, 2021, 2:57pm UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923/1 "2021-06-30T14:57:09Z")

</div>

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](https://pastebin.com/AFFBjsDT) . 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

---

<div class="post-metadata">

**Author:** ![ibacher](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ibacher/32/19751_2.png) [@ibacher](https://talk.openmrs.org/u/ibacher)\
**Post date:** [June 30, 2021, 3:28pm UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923/2 "2021-06-30T15:28:44Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ndacyayisenga](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ndacyayisenga/32/20176_2.png) [@ndacyayisenga](https://talk.openmrs.org/u/ndacyayisenga)\
**Post date:** [July 1, 2021, 8:59am UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923/3 "2021-07-01T08:59:18Z")

</div>

> [@ibacher](#):
>
> 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.

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](https://pastebin.com/DRdPnm6s), [INFO - Slf4jLogger.info(42) |2021-07-01T11:27:38,232| INSERT INTO server5.liquib - Pastebin.com](https://pastebin.com/SR7FY1H2).

This was what was in the browser

 ![Screenshot from 2021-07-01 11-55-40](https://talk.openmrs.org/uploads/default/original/2X/5/5572a5e38e6825bf151168a88e1d9b6d082e59d7.png)cc @ibacher@isears @jwnasambu @dkayiwa @kdaud @k.joseph

---

<div class="post-metadata">

**Author:** ![kdaud](https://talk.openmrs.org/user_avatar/talk.openmrs.org/kdaud/32/13346_2.png) [@kdaud](https://talk.openmrs.org/u/kdaud)\
**Post date:** [July 1, 2021, 9:01am UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923/4 "2021-07-01T09:01:02Z")

</div>

Share the server logs via [pastebin.com](http://pastebin.com)

---

<div class="post-metadata">

**Author:** ![ndacyayisenga](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ndacyayisenga/32/20176_2.png) [@ndacyayisenga](https://talk.openmrs.org/u/ndacyayisenga)\
**Post date:** [July 1, 2021, 9:08am UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923/5 "2021-07-01T09:08:12Z")

</div>

> [@ndacyayisenga](#):
>
> [r5.liquibasechangelogINFO - Slf4jLogger.info(42) |2021-07-01T11:23:40,582| Rea - Pastebin.com](https://pastebin.com/DRdPnm6s), [INFO - Slf4jLogger.info(42) |2021-07-01T11:27:38,232| INSERT INTO server5.liquib - Pastebin.com](https://pastebin.com/SR7FY1H2).

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

> [@kdaud](#):
>
> Share the server logs via [pastebin.com](http://pastebin.com)

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

---

<div class="post-metadata">

**Author:** ![jwnasambu](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jwnasambu/32/13543_2.png) [@jwnasambu](https://talk.openmrs.org/u/jwnasambu)\
**Post date:** [July 1, 2021, 12:13pm UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923/6 "2021-07-01T12:13:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ibacher](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ibacher/32/19751_2.png) [@ibacher](https://talk.openmrs.org/u/ibacher)\
**Post date:** [July 1, 2021, 12:38pm UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923/7 "2021-07-01T12:38:07Z")

</div>

@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:

```auto
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.

---

<div class="post-metadata">

**Author:** ![jwnasambu](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jwnasambu/32/13543_2.png) [@jwnasambu](https://talk.openmrs.org/u/jwnasambu)\
**Post date:** [July 1, 2021, 12:55pm UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923/8 "2021-07-01T12:55:48Z")

</div>

> [@ibacher](#):
>
> 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.

---

<div class="post-metadata">

**Author:** ![ibacher](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ibacher/32/19751_2.png) [@ibacher](https://talk.openmrs.org/u/ibacher)\
**Post date:** [July 1, 2021, 3:03pm UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923/9 "2021-07-01T15:03:28Z")

</div>

> [@jwnasambu](#):
>
> How can this be done, they must be consistent.

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

---

<div class="post-metadata">

**Author:** ![jwnasambu](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jwnasambu/32/13543_2.png) [@jwnasambu](https://talk.openmrs.org/u/jwnasambu)\
**Post date:** [July 2, 2021, 12:23pm UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923/10 "2021-07-02T12:23:55Z")

</div>

> [@ibacher](#):
>
> @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:
> 
> ```auto
> 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.

@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](https://talk.openmrs.org/t/build-failure-when-trying-to-watch-a-module-on-an-sdk-instance/31940/22).

---

<div class="post-metadata">

**Author:** ![ndacyayisenga](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ndacyayisenga/32/20176_2.png) [@ndacyayisenga](https://talk.openmrs.org/u/ndacyayisenga)\
**Post date:** [July 4, 2021, 12:14pm UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923/11 "2021-07-04T12:14:45Z")

</div>

> [@jwnasambu](#):
>
> @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 [Build failure when trying to watch a module on an SDK instance. - #22 by jwnasambu](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](https://talk.openmrs.org/groups/dev1)[@dev2](https://talk.openmrs.org/groups/dev2) [@dev3](https://talk.openmrs.org/groups/dev3) [@dev4](https://talk.openmrs.org/groups/dev4)[@dev5](https://talk.openmrs.org/groups/dev5)@ibacher@kdaud@dkayiwa@mozzy@mksd

---

<div class="post-metadata">

**Author:** ![jwnasambu](https://talk.openmrs.org/user_avatar/talk.openmrs.org/jwnasambu/32/13543_2.png) [@jwnasambu](https://talk.openmrs.org/u/jwnasambu)\
**Post date:** [July 4, 2021, 5:46pm UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923/12 "2021-07-04T17:46:35Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ndacyayisenga](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ndacyayisenga/32/20176_2.png) [@ndacyayisenga](https://talk.openmrs.org/u/ndacyayisenga)\
**Post date:** [July 5, 2021, 9:26am UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923/13 "2021-07-05T09:26:50Z")

</div>

> [@jwnasambu](#):
>
> 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](https://pastebin.com/xLphrmub) 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

---

<div class="post-metadata">

**Author:** ![ibacher](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ibacher/32/19751_2.png) [@ibacher](https://talk.openmrs.org/u/ibacher)\
**Post date:** [July 6, 2021, 1:11pm UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923/14 "2021-07-06T13:11:22Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![ndacyayisenga](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ndacyayisenga/32/20176_2.png) [@ndacyayisenga](https://talk.openmrs.org/u/ndacyayisenga)\
**Post date:** [July 7, 2021, 6:32am UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923/15 "2021-07-07T06:32:25Z")

</div>

Hey @ibacherWhen 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 😀

---

<div class="post-metadata">

**Author:** ![ibacher](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ibacher/32/19751_2.png) [@ibacher](https://talk.openmrs.org/u/ibacher)\
**Post date:** [July 8, 2021, 1:22pm UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923/16 "2021-07-08T13:22:01Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ndacyayisenga](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ndacyayisenga/32/20176_2.png) [@ndacyayisenga](https://talk.openmrs.org/u/ndacyayisenga)\
**Post date:** [July 8, 2021, 5:27pm UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923/17 "2021-07-08T17:27:35Z")

</div>

> [@ibacher](#):
>
> 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…

```auto
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

```

---

<div class="post-metadata">

**Author:** ![ndacyayisenga](https://talk.openmrs.org/user_avatar/talk.openmrs.org/ndacyayisenga/32/20176_2.png) [@ndacyayisenga](https://talk.openmrs.org/u/ndacyayisenga)\
**Post date:** [July 27, 2021, 8:20am UTC](https://talk.openmrs.org/t/ui-framework-error-issues/33923/18 "2021-07-27T08:20:43Z")

</div>

> [@ndacyayisenga](#):
>
> ```auto
> 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?
