The issue is in your data service or the request you are sending I believe. Make sure the request contain the element 'limit'. It seems that Data Services Server thinks it could not find the value for your input mapping, 'limit', so it has assigned an empty string to it. But your sql query expects an integer. So, the string->int conversion has failed.
Also look in the lines of your query
section in the dbs with focus on the input mappings. Make sure the sqlType
attribute set in the input mapping is correct. Based on your description, it should be a INTEGER
.