Admin/Manage Observations page fails to load: empty screen in shown. Also fails on dev.openmrs.org demo site. Steps to re-produce:
1. login as admin
2. navigate to administration/Manage Observations
Digging a bit, the error seems to be coming from: PortletController.java:
// add encounters if this user can view them
if (Context.hasPrivilege(OpenmrsConstants.PRIV_VIEW_ENCOUNTERS))
model.put("patientEncounters", Context.getEncounterService().getEncounters(p));
Star of the exception detail:
ERROR - ApplicationDispatcher.invoke(723) |2008-08-31 10:17:13,171| Servlet.service() for servlet openmrs threw excepti
n
java.lang.IllegalArgumentException: The 'patient' parameter is requred and cannot be null
at org.openmrs.api.impl.EncounterServiceImpl.getEncountersByPatient(EncounterServiceImpl.java:172)
at org.openmrs.api.impl.EncounterServiceImpl.getEncounters(EncounterServiceImpl.java:451)
at sun.reflect.GeneratedMethodAccessor1215.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java
182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy640.getEncounters(Unknown Source)
at sun.reflect.GeneratedMethodAccessor1215.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:301)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java