13 years ago
mockRequest is NULL
Hi,
I have a problem with mockRequest object. It suddenly stopped working, throwing NullPointerException.
I'm using a script to switch between responses:
It was working fine and suddenly it stopped. The only answer on Google I found was suggesting the above code.
Error message:
Any ideas what could happen and how can I fix this?
Thanks,
Bart
[EDIT] it happens on soapUI 4.0.0, soapUI 4.0.1 and soapUI 4.5.
I have a problem with mockRequest object. It suddenly stopped working, throwing NullPointerException.
I'm using a script to switch between responses:
def request = new XmlSlurper().parseText(mockRequest.requestContent)
def username = request.Body.LoginCustomer2.username
It was working fine and suddenly it stopped. The only answer on Google I found was suggesting the above code.
Error message:
com.eviware.soapui.impl.wsdl.mock.DispatchException: Failed to dispatch using script; java.lang.NullPointerException: Cannot get property 'requestContent' on null object
Any ideas what could happen and how can I fix this?
Thanks,
Bart
[EDIT] it happens on soapUI 4.0.0, soapUI 4.0.1 and soapUI 4.5.