ContributionsMost RecentMost LikesSolutionsRe: [SoapUI 5.2.1] mockRequest is NULL in REST MockService Thanks rupert_anderson for the quick replies! I was able to work out a solution from all the feedback provided by you. :) Re: [SoapUI 5.2.1] mockRequest is NULL in REST MockService I tried this approach too. And this gives the following error : com.eviware.soapui.impl.wsdl.mock.DispatchException: Failed to dispatch using script; java.lang.NullPointerException: Cannot invoke method getRequest() on null object Re: [SoapUI 5.2.1] mockRequest is NULL in REST MockService Hi, Yes, I'm trying to get the GET request parameters. [SoapUI 5.2.1] mockRequest is NULL in REST MockService I'm using SoapUI 5.2.1 and I have a REST MockService. Whenever I try to implement the following script, I get the NullPointerException . Script: def requestBody = mockRequest.getRequestContent() log.info "Request body: " + requestBody Error: com.eviware.soapui.impl.wsdl.mock.DispatchException: Failed to dispatch using script; java.lang.NullPointerException: Cannot invoke method getRequestContent() on null object This is a very frustating error that I'm continuously getting, and surprisingly there is no helpful solution anywhere. Please Help!!!! PS : I'm trying to get the content of a HTTP GET request. Solved