I got this problem too and I found that it may be related to the use of Server-side Prepared Statements in the JDBC Driver.
After I disable the use of server-side prepared statements, it works fine.
Here is the way to disable it, simple add ‘‘useServerPrepStmts=false’’ to the end of the ‘‘DB Connection URL’’ when you configure the server, and it should looks like
jdbc:mysql://xxx.xxx.xx.xxx:3306/wildfire?useServerPrepStmts=false