I am receiving the following error:
HTTP Status 500 - Request processing failed; nested exception is org.springframework.jdbc.BadSqlGrammarException: Stateme
Check your SQL statement -- you need to include the category_id in the column list:
category_id
String sql = "SELECT id, name, category_id FROM track WHERE category_id = " + categoryId + " ORDER BY name";
It is failing because you're trying to extract category_id from the ResultSet and it isn't there.
ResultSet