Could not Execute JDBC Batch Update When Inserting a Comment

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The following error appears in the atlassian-fisheye*.log:

2012-09-17 22:56:36,254 WARN  [btpool0-12384] util.JDBCExceptionReporter JDBCExceptionReporter-logExceptions - SQL Error: 0, SQLState: 22P05
2012-09-17 22:56:36,254 ERROR [btpool0-12384] util.JDBCExceptionReporter JDBCExceptionReporter-logExceptions - ERROR: character 0xe28093 of encoding "UTF8" has no equivalent in "LATIN1"
2012-09-17 22:56:36,255 ERROR [btpool0-12384] def.AbstractFlushingEventListener AbstractFlushingEventListener-performExecutions - Could not synchronize database state with session
org.hibernate.exception.DataException: Could not execute JDBC batch update
	at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:102)
	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
…
Caused by: java.sql.BatchUpdateException: Batch entry 0 insert into cru_comment (cru_create_date, cru_updated_date, cru_message, cru_draft, cru_deleted, cru_defect_raised, cru_comment_issue_key, cru_defect_approved, cru_user_id, cru_review_id, cru_reply_to_comment_id, cru_comment_id) values ('1347918996249', '1347918996249', 'testing – set to 3, suggested set to 4', '0', '0', '0', NULL, '0', '358', '244', NULL, '2431') was aborted.  Call getNextException to see the cause.

Cause

This situation is likely to be happening because Fisheye/Crucible currently support database encoding 'UTF-8' only. 

Resolution

Convert your database encoding to 'UTF-8' as stated in this documentation.

Last modified on Nov 2, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.