LazyInitializationException in patient registration workflow

My development environment consists of the following:

  1. OpenMRS 1.11.5
  2. Reference Application: 2.3.1 and the bundled modules

I’m getting the following exception in patient registration workflow:

What steps do you take to reproduce this?

I can reproduce the above exception from the patient registration workflow initiated using ‘Register Patient’ app from reference application home page.

That normally happens when a certain exception has been thrown, you might want to look closely or lower the log level because there must be another exception getting thrown which is causing hibernate to close the session but it might be getting masked.

1 Like

Thanks @wyclif for pointing me in the right direction. I changed the log level to ‘debug’ and found the actual cause of the exception. A ‘missing privilege’ was knocking on the door.