java.sql.SQLException: Incorrect string value: '\xAC\xED\x00\x05sr...'

akuzma picture akuzma · Feb 25, 2013 · Viewed 10.2k times · Source

I have code looking like that:

    @Column(name = COLUMN_DESCRIPTION, columnDefinition = "LONGTEXT")
private Map<Locale, String> description = new HashMap<>();

after trying to add something to column i got

java.sql.SQLException: Incorrect string value: '\xAC\xED\x00\x05sr...' for column 'description' at row 1

Where's the problem?

Answer

Anurag Shukla picture Anurag Shukla · Feb 25, 2013

Surely it is a MYSQL Bug ... More can be seen at http://bugs.mysql.com/bug.php?id=59456