Error when Event occurs

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
  • 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 Thank you in advance **

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