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

  1. ,
    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

  2. ,

    Make sure you are using InnoDB storage engine and READ-COMMITTED transaction isolation level and increase the database server innodb_lock_wait_timeout variable to about 500.

Solutions on the web

via ejbca by vuhoanganh
, 1 year ago
Got error 893 'Constraint violation e.g. duplicate value in unique index' from NDB
via Stack Overflow by Shashank Agarwal
, 1 year ago
Incorrect string value: '\xF0\x9D\x92\xA2 i...' for column 'text' at row 1
via tigase.org by Unknown author, 2 years ago
via Stack Overflow by Rickesh John
, 2 years ago
Incorrect string value: '\xF1\xA3\x87\xB9I\xEF...' for column 'dataSet' at row 1
via Stack Overflow by Unknown author, 2 years ago
Field 'PRIORITY' doesn't have a default value
via Stack Overflow by Josef Pfleger
, 2 years ago
Field 'x' doesn't have a default value
java.sql.SQLException: Got error 893 'Constraint violation e.g. duplicate value in unique index' from NDB  	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3536)	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3468)	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1957)	at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2107)	at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2648)	at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2086)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2371)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2289)	at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2274)	at org.jboss.resource.adapter.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:365)	at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.executeInsert(JDBCAbstractCreateCommand.java:366)	at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.performInsert(JDBCAbstractCreateCommand.java:322)	at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractCreateCommand.execute(JDBCAbstractCreateCommand.java:151)