Cannot run this command because Java services are not enabled
When connecting to Sybase via jconn3 and Spring 2.0, you receive the error: <geshi> Cannot run this command because Java services are not enabled </geshi>
This can be caused by passing a char type as on of the arguments. Example:
<geshi lang="java5"> char gender = 'M'; jdbcTemplate.queryForObject(
"SELECT top 1 first_name from people where gender = ?", String.class, gender);
</geshi>
Fix: Simply convert the char to a String. I.e., String.valueOf(gender).