# API Katalon : org.codehaus.groovy.runtime.metaclass.MissingMethodExceptionNoStack: No signature of method

**URL:** <https://forum.katalon.com/t/api-katalon-org-codehaus-groovy-runtime-metaclass-missingmethodexceptionnostack-no-signature-of-method/19558>\
**Category:** API Testing\
**Tags:** api-testing, katalon-studio\
**Created:** [February 18, 2019, 1:17pm UTC](https://forum.katalon.com/t/api-katalon-org-codehaus-groovy-runtime-metaclass-missingmethodexceptionnostack-no-signature-of-method/19558 "2019-02-18T13:17:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajaramillog](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@ajaramillog](https://forum.katalon.com/u/ajaramillog)\
**Post date:** [February 18, 2019, 1:17pm UTC](https://forum.katalon.com/t/api-katalon-org-codehaus-groovy-runtime-metaclass-missingmethodexceptionnostack-no-signature-of-method/19558/1 "2019-02-18T13:17:29Z")

</div>

Hi, I am getting this issue when I try run Katalon API test with a Custom Keyword:

Test Cases/Workflow (WF)/Designer/GET Design FAILED.  
Reason:  
org.codehaus.groovy.runtime.metaclass.MissingMethodExceptionNoStack: No signature of method: jsonSchemaValidator.validator.verifyJsonSchema() is applicable for argument types: (groovy.json.internal.LazyMap) values: [[data:[[code:Test, rowVersion:null], [code:TEsting, rowVersion:null]], …]]  
Possible solutions: verifyJsonSchema(java.lang.String)

This is the Custom Keyword which I got from

> [@How to validate the JSON response with expected JSON schema](http://forum.katalon.com/t/how-to-validate-the-json-response-with-expected-json-schema/14029):
>
> I have swagger JSON schema URL, when I get JSON response from the server, I need to validate with the JSON schema to match with the expected schema. Is there any sample code? Something similar to this [https://docs.optimizory.com/display/vrest/Schema+Validation](https://docs.optimizory.com/display/vrest/Schema+Validation)

and I adapted to my needs

Custom Keyword:

class validator {  
/\*\* \* Send request and verify status code  
\* @param stringJson Json to validate  
\* @param stringSchema validation schema  
\*/  
@Keyword  
def verifyJsonSchema(String stringJson) {  
Schema schema = SchemaLoader.load(“Schemas/Workflow/GET\_Designer.json”)  
try {  
schema.validate(new JSONObject(stringJson))  
KeywordUtil.markPassed(“Valid schema”)  
} catch (ValidationException e) {  
StringBuffer outmessage = new StringBuffer()  
outmessage \<\< e.getMessage() \<\< “\n”  
e.getAllMessages().each { msg → outmessage \<\< “$msg \n” }  
KeywordUtil.markFailed(outmessage as String)  
}  
}  
}

An this is the Test case:

//parse text json  
response = CustomKeywords.‘com.response.parseResponse.responseParser’(response)

WS.comment(“Validate response schema”)  
CustomKeywords.‘jsonSchemaValidator.validator.verifyJsonSchema’(response)

Any idea to resolve this, please?

---

<div class="post-metadata">

**Author:** ![Andrej\_Podhajsky](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/andrej_podhajsky/32/1055_2.png) [@Andrej\_Podhajsky](https://forum.katalon.com/u/Andrej_Podhajsky)\
**Post date:** [February 18, 2019, 1:25pm UTC](https://forum.katalon.com/t/api-katalon-org-codehaus-groovy-runtime-metaclass-missingmethodexceptionnostack-no-signature-of-method/19558/2 "2019-02-18T13:25:10Z")

</div>

Hello,  
it’s allready written there:

> [@ajaramillog](#):
>
> org.codehaus.groovy.runtime.metaclass.MissingMethodExceptionNoStack: No signature of method: jsonSchemaValidator.validator.verifyJsonSchema() is applicable for argument types: (groovy.json.internal.LazyMap) values: [[data:[[code:Test, rowVersion:null], [code:TEsting, rowVersion:null]], …]]  
> Possible solutions: verifyJsonSchema(java.lang.String)

`Possible solutions: verifyJsonSchema(java.lang.String)`  
so, try instead of  
`CustomKeywords.‘jsonSchemaValidator.validator.verifyJsonSchema’(response)`  
where response is already parsed, use unparsed - raw response
