# UIFramework Error on Active Visits Page Load

**URL:** <https://talk.openmrs.org/t/uiframework-error-on-active-visits-page-load/4623>\
**Category:** Development\
**Tags:** developers, developers-forum\
**Created:** [February 9, 2016, 6:13am UTC](https://talk.openmrs.org/t/uiframework-error-on-active-visits-page-load/4623 "2016-02-09T06:13:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![themoonraker13](https://talk.openmrs.org/user_avatar/talk.openmrs.org/themoonraker13/32/1607_2.png) [@themoonraker13](https://talk.openmrs.org/u/themoonraker13)\
**Post date:** [February 9, 2016, 6:13am UTC](https://talk.openmrs.org/t/uiframework-error-on-active-visits-page-load/4623/1 "2016-02-09T06:13:30Z")

</div>

Environment Details: Platform: 1.11.4 Reference Application: 2.3.1

Things were good until now and all of a sudden I’m running into the following **UIFrameworkError** when I try to access **‘Active Visits’** app from home page of reference application:( **org.openmrs.ui.framework.ViewException: Error rendering page view for activeVisits** )

[http://pastebin.com/DGZ8CVP3](http://pastebin.com/DGZ8CVP3)

---

<div class="post-metadata">

**Author:** ![darius](https://talk.openmrs.org/user_avatar/talk.openmrs.org/darius/32/8082_2.png) [@darius](https://talk.openmrs.org/u/darius)\
**Post date:** [February 9, 2016, 2:04pm UTC](https://talk.openmrs.org/t/uiframework-error-on-active-visits-page-load/4623/2 "2016-02-09T14:04:08Z")

</div>

The fact that this is caused by a NullPointerException hints that the GSP page presumes some property is always non-null, but now your database has an active visit in it with a null value for this property.

Unfortunately, rendering a groovy template doesn’t give any info about where it fails, so you may actually need to put a breakpoint in the groovy code itself to try to trace this. (Alternately, look at the active visits GSP and see what could possibly be null.)

---

<div class="post-metadata">

**Author:** ![mogoodrich](https://talk.openmrs.org/user_avatar/talk.openmrs.org/mogoodrich/32/3324_2.png) [@mogoodrich](https://talk.openmrs.org/u/mogoodrich)\
**Post date:** [February 9, 2016, 3:02pm UTC](https://talk.openmrs.org/t/uiframework-error-on-active-visits-page-load/4623/3 "2016-02-09T15:02:41Z")

</div>

Could you have possibly ended up with a visit without a patient somehow?

---

<div class="post-metadata">

**Author:** ![themoonraker13](https://talk.openmrs.org/user_avatar/talk.openmrs.org/themoonraker13/32/1607_2.png) [@themoonraker13](https://talk.openmrs.org/u/themoonraker13)\
**Post date:** [February 10, 2016, 4:51am UTC](https://talk.openmrs.org/t/uiframework-error-on-active-visits-page-load/4623/4 "2016-02-10T04:51:04Z")

</div>

Restarted tomcat this morning and I’m able to navigate to Active Visits page without running into any exceptions. That’s strange!! 😀
