java.sql.SQLException: Incorrect string value: '\xF0\x9F\x92\x94' for column 'bo dy' at row 1

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

MySQL doesn't support some types of characters (such as emojis) with the utf8 encoding. You need to be on MySQL 5.5+ and force utf8mb4 (everywhere, client and server). You can do this sending the query "SET NAMES utf8mb4". Check this https://goo.gl/3E2qzg

Solutions on the web

via igniterealtime.org by Unknown author, 1 year ago
via Stack Overflow by spathirana
, 2 years ago
via nabble.com by Unknown author, 1 year ago
Unknown system variable 'OPTION' > >>>      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
via osdir.com by Unknown author, 1 year ago
via Stack Overflow by user4926135
, 9 months ago
Incorrect integer value: 'hyderabad' for column 'id' at row 1**
via Stack Overflow by user2773890
, 2 years ago
Field 'PROJECT_MANAGER_ID' doesn't have a default value
java.sql.SQLException: Incorrect string value: '\xF0\x9F\x92\x94' for column 'bo dy' at row 1
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1084)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4232)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4164)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2615)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2776)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2838)

Users with the same issue

16 times, 3 days ago
Once, 3 days ago
Once, 5 days ago
Once, 6 days ago
116 times, 1 week ago
164 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.