Getting "Failed to Instantiate org.module.openmrs.MyResource" when i send a request..

I am writing web services for the pharmacy module get request was working fine. Now i am stuck with this error can’t understand what gone wrong. Here’s the tomcat log attached [Log]https://paste.ee/p/73jAM

Is your code publicly available for us to have a look?

Thanks for the response @dkayiwa . I figured it out. Can you help me i in saving the self crafted object in db . I am able to get the JSON obj of request body but not being able to post after operating on the data could you be able to look at it…

Location of the controller in my code is : omod/src.main.java/rest.controller/drugordersrestController.java

Repo Link : https://bitbucket.org/_Siqlain/pharmacy-drugorders-rest/overview