Error when Event occurs

Tags: #<Tag:0x00007f2994894a58>

Application Name: Openmrs Version Number: 1.9.11

Question: Hi Guys, I’m facing an issue developing a module. this is the summary:

  • I’m using Openmrs sdk with a H2 database
  • I’m developing a platform module for openmrs 1.9.11
  • I’m using event module https://wiki.openmrs.org/display/docs/Event+Module
  • I subscribed to the event api with Event.subscribe(EVENT_TOPIC_NAME_PATIENT_VIEWED, eventListener); But when i got to the openmrs instace to view a patient in order to trigger the onMessage method of my EventListener , i got an error. Here is the pastebin https://pastebin.com/aKZDiqwT Thank you in advance **

How are you doing this? Could you give us some more details?