Double-check the schema of your table and your use of any PreparedStatements. A common one-off is if you're binding too many values into a statement, e.g. You set 4 values but your SQL only expects 3
UPSERT INTO my_table VALUES(?,?,?);
Please update your question with the full stacktrace for that Exception to help elicit a better answer.